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
50d6791a
Commit
50d6791a
authored
Mar 31, 2020
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build individual images
parent
ee159e16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
build.py
bin/build.py
+8
-3
No files found.
bin/build.py
View file @
50d6791a
...
@@ -2,14 +2,16 @@ import os
...
@@ -2,14 +2,16 @@ import os
import
shutil
import
shutil
import
sys
import
sys
# if len(sys.argv) != 2:
# raise Exception("Push to Docker Hub will not work, please provide username as argument")
DOCKER_COMPOSE_NAME
=
"Dockerfile"
DOCKER_COMPOSE_NAME
=
"Dockerfile"
ROOT
=
'./'
ROOT
=
'./'
SOURCEPATH
=
f
'{ROOT}src/'
SOURCEPATH
=
f
'{ROOT}src/'
DOCKER_USERNAME
=
"alexx882"
DOCKER_USERNAME
=
"alexx882"
p_image_name
=
None
if
len
(
sys
.
argv
)
==
2
:
# parameter contains image to build
p_image_name
=
sys
.
argv
[
1
]
paths
=
[]
paths
=
[]
for
r
,
_
,
f
in
os
.
walk
(
SOURCEPATH
):
for
r
,
_
,
f
in
os
.
walk
(
SOURCEPATH
):
for
filename
in
f
:
for
filename
in
f
:
...
@@ -21,6 +23,9 @@ command_args = [{'path': path,
...
@@ -21,6 +23,9 @@ command_args = [{'path': path,
for
path
for
path
in
paths
]
in
paths
]
if
p_image_name
is
not
None
:
command_args
=
[
x
for
x
in
command_args
if
x
[
'name'
]
==
p_image_name
]
error
:
int
=
0
error
:
int
=
0
res_str
=
[]
res_str
=
[]
for
command_arg
in
command_args
:
for
command_arg
in
command_args
:
...
...
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