Commit 7633c838 authored by kalvin's avatar kalvin

增加rabbitmq插件

parent 4d6fddfc
...@@ -30,9 +30,6 @@ ADD scripts /scripts ...@@ -30,9 +30,6 @@ ADD scripts /scripts
RUN chmod +x /scripts/*.sh RUN chmod +x /scripts/*.sh
RUN touch /.firstrun RUN touch /.firstrun
CMD ["/scripts/docker-entrypoint.sh"] ADD rabbitmq_delayed_message_exchange-0.0.1.ez /usr/lib/rabbitmq/lib/rabbitmq_server-*/plugins/
EXPOSE 5672 CMD ["/scripts/docker-entrypoint.sh"]
EXPOSE 15672 \ No newline at end of file
VOLUME ["/var/log/rabbitmq"]
\ No newline at end of file
...@@ -13,13 +13,13 @@ nohup /usr/sbin/rabbitmq-server > /tmp/rabbitmq.out & ...@@ -13,13 +13,13 @@ nohup /usr/sbin/rabbitmq-server > /tmp/rabbitmq.out &
echo "sleep 15" echo "sleep 15"
sleep 15 sleep 15
echo 'wget -c -O rabbitmq_delayed_message_exchange-0.0.1.ez "https://bintray.com/rabbitmq/community-plugins/download_file?file_path=rabbitmq_delayed_message_exchange-0.0.1.ez"'
wget -c -O rabbitmq_delayed_message_exchange-0.0.1.ez "https://bintray.com/rabbitmq/community-plugins/download_file?file_path=rabbitmq_delayed_message_exchange-0.0.1.ez"
echo "mv /home/quant_group/rabbitmq/rabbitmq_delayed_message_exchange-0.0.1.ez /usr/lib/rabbitmq/lib/rabbitmq_server-*/plugins/"
mv /home/quant_group/rabbitmq/rabbitmq_delayed_message_exchange-0.0.1.ez /usr/lib/rabbitmq/lib/rabbitmq_server-*/plugins/
echo "rabbitmq-plugins enable rabbitmq_delayed_message_exchange" echo "rabbitmq-plugins enable rabbitmq_delayed_message_exchange"
rabbitmq-plugins enable rabbitmq_delayed_message_exchange rabbitmq-plugins enable rabbitmq_delayed_message_exchange
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://localhost:15672/api/definitions"
tail -f /tmp/rabbitmq.out tail -f /tmp/rabbitmq.out
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment