Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
80b9056f
Commit
80b9056f
authored
Jun 21, 2017
by
Rurik Bugdanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker-run.sh: remove container and volumes on exit
parent
0563cb76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
run.sh
docker/run.sh
+28
-0
No files found.
docker/run.sh
0 → 100755
View file @
80b9056f
#!/bin/bash
# start the container in the background
CONTAINER
=
$(
docker run
-i
\
-d
\
-v
$(
pwd
)
/models:/home/elphel/x3domlet/models
\
-v
$(
pwd
)
/kml:/home/elphel/x3domlet/kml
\
-p
8080:8080
\
-p
35729:35729
\
x3domlet
\
gulp connect
)
||
exit
echo
$CONTAINER
# temporize
sleep
5
# open in browser
xdg-open http://127.0.0.1:8080/index.html
# display container startup log
docker logs
--since
0
$CONTAINER
&
# attach to container
docker attach
$CONTAINER
# on exit remove the container and its associated volumes
docker
rm
-f
-v
$CONTAINER
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