Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PMCV force field correction web
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vladimír Višňovský
PMCV force field correction web
Commits
2e230fdd
Commit
2e230fdd
authored
3 years ago
by
Vladimír Višňovský
Browse files
Options
Downloads
Patches
Plain Diff
run running container option
parent
bf5b9b3c
No related branches found
No related tags found
2 merge requests
!8
Development
,
!7
Remodule (v1.0 -> v1.1)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
development/run.sh
+8
-1
8 additions, 1 deletion
development/run.sh
with
8 additions
and
1 deletion
development/run.sh
+
8
−
1
View file @
2e230fdd
...
...
@@ -2,6 +2,7 @@
id
=
"latest"
application
=
"docker"
container_name
=
"pipeline-web"
while
getopts
":pi:"
opt
;
do
case
$opt
in
...
...
@@ -26,5 +27,11 @@ done
name
=
"localhost/magic-pipeline-web-test:
${
id
}
"
${
application
}
run
-p
5000:5000
--entrypoint
'/bin/bash'
-d
-ti
${
name
}
-c
'while true; do sleep 10; done'
if
$application
ps |
grep
"
$container_name
"
>
/dev/null
;
then
$application
exec
-it
$container_name
bash
else
$application
run
-p
5000:5000
--name
$container_name
--entrypoint
'/bin/bash'
-d
-ti
$name
-c
'while true; do sleep 10; done'
fi
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