File tree Expand file tree Collapse file tree 4 files changed +34
-27
lines changed Expand file tree Collapse file tree 4 files changed +34
-27
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ working_directory : /dockerapp
5
+ docker :
6
+ - image : docker:17.05.0-ce-git
7
+ steps :
8
+ - checkout
9
+ - setup_remote_docker
10
+ - run :
11
+ name : Install dependencies
12
+ command : |
13
+ apk add --no-cache \
14
+ py-pip=9.0.0-r1
15
+ pip install \
16
+ docker-compose==1.15.0
17
+ - run :
18
+ name : Run tests
19
+ command : |
20
+ docker-compose up -d
21
+ docker-compose run dockerapp python test.py
22
+ - deploy :
23
+ name : Push application Docker image
24
+ command : |
25
+ docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_USER_ID -p $DOCKER_HUB_PWD
26
+ docker tag dockerapp_dockerapp $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1
27
+ docker tag dockerapp_dockerapp $DOCKER_HUB_USER_ID/dockerapp:latest
28
+ docker push $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1
29
+ docker push $DOCKER_HUB_USER_ID/dockerapp:latest
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- version : ' 2 '
1
+ version : " 3.0 "
2
2
services :
3
3
dockerapp :
4
4
extends :
5
5
file : common.yml
6
6
service : dockerapp
7
7
build : .
8
-
8
+ depends_on :
9
+ - redis
9
10
redis :
10
11
extends :
11
12
file : common.yml
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ services:
5
5
file : common.yml
6
6
service : dockerapp
7
7
image : jleetutorial/dockerapp
8
-
8
+ depends_on :
9
+ - redis
9
10
redis :
10
11
extends :
11
12
file : common.yml
You can’t perform that action at this time.
0 commit comments