Commit de28566b authored by daidekun's avatar daidekun

fix

parent e6e759ca
......@@ -24,7 +24,7 @@ RUN apt-get update \
WORKDIR /home/quant_group/rabbitmq
# COPY docker-entrypoint.sh .
# RUN chmod +x ./docker-entrypoint.sh
#
# CMD ["./docker-entrypoint.sh"]
\ No newline at end of file
COPY docker-entrypoint.sh .
RUN chmod +x ./docker-entrypoint.sh
ENTRYPOINT ["./docker-entrypoint.sh"]
\ No newline at end of file
#!/bin/sh
response=$(curl -X GET -H "Authorization: Basic cWE6cWF0ZXN0" "http://192.168.4.15:15672/api/definitions")
echo $response
sleep 10
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://localhost:15672/api/definitions"
\ 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