Commit 067ea2ee authored by Alexander Lercher's avatar Alexander Lercher

Fixed deployment scripts; rest-gateway correct rabbit address

parent 75bcb354
......@@ -11,7 +11,7 @@ for r, _, f in os.walk('./'):
paths.append(os.path.join(r, ''))
command_args = [{'path': path,
'name': str(path).split('/')[2]}
'name': str(path).split('/')[-2]}
for path
in paths]
......@@ -25,4 +25,5 @@ for command_arg in command_args:
os.remove(DOCKER_COMPOSE_NAME)
os.system(f"docker push {image_name}")
print(f"Finished {image_name}")
\ No newline at end of file
print(f"Found {len(command_args)} images")
\ No newline at end of file
import os
docker_reg = 'localhost:5000'
docker_reg = '172.16.1.20:5000'
paths = []
for r, _, f in os.walk('./'):
......
......@@ -47,7 +47,7 @@ def run_flask():
# start app
if __name__ == '__main__':
message_rec = MessageReceiver(
#rabbit_mq_ip=RABBIT_MQ_DNS_NAME, rabbit_mq_port=RABBIT_MQ_PORT,
rabbit_mq_ip=RABBIT_MQ_DNS_NAME, rabbit_mq_port=RABBIT_MQ_PORT,
exchange_name='rest-gateway', exchange_type='direct', queue_name='rest-gateway', auto_ack=True)
message_rec.start(message_received_callback, pika_error_callback)
......
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