Skip to content

Commit

Permalink
Better CI lifecycle support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 9, 2016
1 parent e15f1bd commit 9282d01
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node {
node('docker') {

stage 'Checkout'

Expand Down
6 changes: 6 additions & 0 deletions bin/ci-run.sh
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 $maintainer/$imagename
9 changes: 9 additions & 0 deletions bin/ci-stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/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
exit 0

0 comments on commit 9282d01

Please sign in to comment.