Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
067ea2ee
Commit
067ea2ee
authored
Aug 13, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed deployment scripts; rest-gateway correct rabbit address
parent
75bcb354
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
build.py
build.py
+3
-2
deploy.py
deploy.py
+1
-1
main.py
rest-gateway/app/main.py
+1
-1
No files found.
build.py
View file @
067ea2ee
...
...
@@ -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
deploy.py
View file @
067ea2ee
import
os
docker_reg
=
'
localhost
:5000'
docker_reg
=
'
172.16.1.20
:5000'
paths
=
[]
for
r
,
_
,
f
in
os
.
walk
(
'./'
):
...
...
rest-gateway/app/main.py
View file @
067ea2ee
...
...
@@ -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
)
...
...
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