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
0a8e758d
Commit
0a8e758d
authored
Nov 07, 2017
by
张 斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给rabbitmq装rabbitmq_delayed_message_exchange 插件
parent
e3de5266
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Dockerfile
baseimg/rabbit_mq/Dockerfile
+1
-0
docker-entrypoint.sh
baseimg/rabbit_mq/scripts/docker-entrypoint.sh
+6
-0
No files found.
baseimg/rabbit_mq/Dockerfile
View file @
0a8e758d
...
...
@@ -20,6 +20,7 @@ RUN apt-get update \
&&
apt-get
install
-y
telnet
\
&&
apt-get
install
-y
openssh-server
\
&&
apt-get
install
-y
curl
\
&&
apt-get
install
-y
wget
\
&&
/etc/init.d/ssh start
WORKDIR
/home/quant_group/rabbitmq
...
...
baseimg/rabbit_mq/scripts/docker-entrypoint.sh
View file @
0a8e758d
...
...
@@ -13,8 +13,14 @@ nohup /usr/sbin/rabbitmq-server > /tmp/rabbitmq.out &
echo
"sleep 15"
sleep
15
wget
-c
"https://bintray.com/rabbitmq/community-plugins/download_file?file_path=rabbitmq_delayed_message_exchange-0.0.1.ez"
-O
rabbitmq_delayed_message_exchange-0.0.1.ez
-P
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.11/plugins
rabbitmq-plugins
enable
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.11/plugins/rabbitmq_delayed_message_exchange
echo
"get definitions from 172.16.3.111"
response
=
$(
curl
-X
GET
-H
"Authorization: Basic cWE6cWF0ZXN0"
"http://172.16.3.111:15672/api/definitions"
)
curl
-X
POST
-H
"Content-Type: application/json"
-H
"Authorization: Basic cWE6cWF0ZXN0"
-d
$response
"http://localhost:15672/api/definitions"
tail
-f
/tmp/rabbitmq.out
\ 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