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
3c431769
Commit
3c431769
authored
Jul 23, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added build and deploy automation-scripts
parent
ddd2bf50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
build.py
build.py
+21
-0
deploy.py
deploy.py
+14
-0
No files found.
build.py
0 → 100644
View file @
3c431769
import
os
docker_reg
=
'localhost:5000'
paths
=
[]
for
r
,
_
,
f
in
os
.
walk
(
'./'
):
for
file
in
f
:
if
'Dockerfile'
==
file
:
paths
.
append
(
os
.
path
.
join
(
r
,
''
))
command_args
=
[{
'path'
:
path
,
# ./transaction-hub-out/tokenized-decision-making-microservice/Dockerfile
# -> tokenized-decision-making
'name'
:
'-'
.
join
(
str
(
path
)
.
split
(
'/'
)[
2
]
.
split
(
'-'
)[:
-
1
])}
for
path
in
paths
]
for
command_arg
in
command_args
:
image_name
=
f
"{docker_reg}/{command_arg['name']}"
os
.
system
(
f
"docker image build -t {image_name} {command_arg['path']}"
)
os
.
system
(
f
"docker push {image_name}"
)
deploy.py
0 → 100644
View file @
3c431769
import
os
docker_reg
=
'localhost:5000'
paths
=
[]
for
r
,
_
,
f
in
os
.
walk
(
'./'
):
for
file
in
f
:
if
'deployment.yml'
==
file
:
paths
.
append
(
os
.
path
.
join
(
r
,
''
))
for
path
in
paths
:
os
.
system
(
f
"kubectl apply -f {path}deployment.yml"
)
os
.
system
(
f
"kubectl apply -f {path}loadbalancer.yml"
)
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