Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
Starting and stopping container as part of tests
Jim Van Fleet
committed
Aug 24, 2016
1 parent
6f1f28d
commit 3ab869f
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# This file will run a container in the background | ||
source common.bash . | ||
|
||
docker run -d --name=$imagename -p 80:80 -p 443:443 $maintainer/$imagename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# This file will run a container in the background | ||
source common.bash . | ||
|
||
echo "Cleaning up Docker image($maintainer/$imagename)" | ||
docker stop $imagename >> /dev/null | ||
docker rm $imagename |