forked from sandialabs/scot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
29 lines (29 loc) · 865 Bytes
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
box: wercker-labs/docker
build:
steps:
# - script:
# name: pip install
# code: |
# sudo apt-get update
# sudo apt-get install -y python-pip
# sudo pip install -r requirements.txt
- script:
name: docker version
code: sudo docker -v
- script:
name: build container
code: sudo docker build -t sandialabs/scot .
- script:
name: test container
code: sudo docker run sandialabs/scot /bin/bash -c "/tests.sh; exit $?"
- script:
name: run container
code: sudo docker run -d -p 80:80 -p 443:443 sandialabs/scot; sleep 40
- script:
name: curl scot web app
code: curl --retry 10 --retry-delay 5 -v -k https://localhost:443
deploy:
steps:
- script:
name: deploy to DockerHUB
code: $DEPLOY