Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ma_code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven-Ove Hänsel
ma_code
Commits
aec03312
Commit
aec03312
authored
7 months ago
by
julian
Browse files
Options
Downloads
Patches
Plain Diff
added -v flag to compose down to avoid disk being filled with anonymous volumes.
parent
6f3605c0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
insert_tests.py
+2
-2
2 additions, 2 deletions
insert_tests.py
with
2 additions
and
2 deletions
insert_tests.py
+
2
−
2
View file @
aec03312
...
...
@@ -9,7 +9,7 @@ def run_experiment(name: str, compose_files: Sequence[str], env: dict = {}):
for
key
,
val
in
env
.
items
():
environ
[
key
]
=
str
(
val
)
run
((
"
docker
"
,
"
compose
"
,
"
down
"
))
run
((
"
docker
"
,
"
compose
"
,
"
down
"
,
"
-v
"
))
f
=
[
"
-f
"
]
*
len
(
compose_files
)
interleaved
=
(
val
for
pair
in
zip
(
f
,
compose_files
)
for
val
in
pair
)
info
(
f
"
Starting compose environment for
{
name
}
"
)
...
...
@@ -20,7 +20,7 @@ def run_experiment(name: str, compose_files: Sequence[str], env: dict = {}):
info
(
f
"
{
name
}
finished, saving result
"
)
run
((
"
docker
"
,
"
compose
"
,
"
cp
"
,
"
pg_query:/app/log/data.csv
"
,
f
"
result/
{
name
}
.csv
"
))
run
((
"
docker
"
,
"
compose
"
,
"
down
"
))
run
((
"
docker
"
,
"
compose
"
,
"
down
"
,
"
-v
"
))
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment