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
38049999
Commit
38049999
authored
Mar 27, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit rabbit-job
parent
59f1b43d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
docker-entrypoint.sh
job/rabbitmq-sync/docker-entrypoint.sh
+7
-4
No files found.
job/rabbitmq-sync/docker-entrypoint.sh
View file @
38049999
...
...
@@ -30,10 +30,13 @@ done
if
[[
$is_running
-eq
1
]]
then
echo
"rabbitmq is running!!! start execution sync job"
echo
"get definitions from 172.16.1.231"
response
=
$(
curl
-X
GET
-H
"Authorization: Basic cmFiYml0X2FkbWluOmFiYzEyMzQ="
"http://172.16.1.231:15672/api/definitions"
)
curl
-X
POST
-H
"Content-Type: application/json"
-H
"Authorization: Basic cWE6cWF0ZXN0"
-d
$response
"http://rabbitmq:15672/api/definitions"
else
echo
"init rabbit with eos server"
# echo "get definitions from 172.16.1.231"
# response=$(curl -X GET -H "Authorization: Basic cmFiYml0X2FkbWluOmFiYzEyMzQ=" "http://172.16.1.231:15672/api/definitions")
# curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://rabbitmq:15672/api/definitions"
response
=
$(
curl
-X
POST
-H
"Content-Type: application/json"
-d
"{
\"
namespace
\"
:
\"
$NAMESPACE
\"
}"
"http://eos.quantgroups.com/api/etcd/init_env_rabbitmq_config"
)
echo
$response
else
echo
"rabbitmq is not running!!! Do not execution sync job"
fi
...
...
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