Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
a8509766
Commit
a8509766
authored
Mar 20, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
2963eb2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
docker-entrypoint.sh
baseimg/tools/rabbit_mq/scripts/docker-entrypoint.sh
+18
-6
No files found.
baseimg/tools/rabbit_mq/scripts/docker-entrypoint.sh
View file @
a8509766
...
@@ -10,10 +10,22 @@ touch nohup.out
...
@@ -10,10 +10,22 @@ touch nohup.out
echo
"Starting RabbitMQ..."
echo
"Starting RabbitMQ..."
nohup
/usr/sbin/rabbitmq-server
>
/tmp/rabbitmq.out &
nohup
/usr/sbin/rabbitmq-server
>
/tmp/rabbitmq.out &
echo
"sleep 15"
count
=
1
sleep
15
echo
"rabbitmq-plugins enable rabbitmq_delayed_message_exchange"
until
[[
$count
-eq
300
]]
||
[[
$is_running
-eq
1
]]
rabbitmq-plugins
enable
rabbitmq_delayed_message_exchange
do
let
count+
=
1
tail
-f
/tmp/rabbitmq.out
echo
"count is
$count
"
\ No newline at end of file
curl
-X
GET
-H
"Authorization: Basic cWE6cWF0ZXN0"
"http://rabbitmq:15672/api/definitions"
if
[
$?
-eq
0
]
then
echo
"rabbitmq is running rabbitmq-plugins enable rabbitmq_delayed_message_exchange"
rabbitmq-plugins
enable
rabbitmq_delayed_message_exchange
tail
-f
/tmp/rabbitmq.out
else
echo
"rabbitmq is not running"
sleep
1
fi
done
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment