File tree Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 3
3
build :
4
4
machine : true
5
5
working_directory : ~/apache
6
+ parallelism : 3
6
7
steps :
7
8
- checkout
8
9
@@ -12,30 +13,46 @@ jobs:
12
13
echo "Building Docker Image"
13
14
docker build -t htmlgraphic/apache:envoyer .
14
15
15
- # WORKS TO HERE
16
+
17
+ # DEV Build
16
18
17
19
- run :
18
- name : Start Container & Verify
20
+ name : Start DEV Container
19
21
command : |
20
22
set -x
21
23
ls -la
22
24
pwd
23
25
make run
24
26
docker ps -a
25
27
26
-
27
-
28
28
- run :
29
- name : Build Tests
29
+ name : DEV Build Tests
30
30
command : |
31
- bash -c /opt/tests/build_tests.sh
31
+ docker exec -it apache_web_1 /bin/bash /opt/tests/build_tests.sh
32
32
33
33
- run : |
34
34
docker logs apache_web_1 > log_output
35
35
mv log_output $CIRCLE_ARTIFACTS/log_output.txt
36
36
37
+ - run :
38
+ name : Kill running containers
39
+ command : |
40
+ make stop && make rm
41
+
42
+
43
+ # LIVE Build
44
+
45
+ - run :
46
+ name : Start LIVE Container
47
+ command : |
48
+ docker-compose up -d
49
+ docker ps -a
50
+
51
+ - run :
52
+ name : LIVE Build Tests
53
+ command : |
54
+ docker exec -it apache_web_1 /bin/bash /opt/tests/build_tests.sh
55
+
37
56
- run : |
38
- docker-compose up -d; sleep 5
39
- docker run -d --name apache_web_1
40
- bash -c /opt/tests/build_tests.sh
41
- docker ps -a
57
+ docker logs apache_web_1 > log_output
58
+ mv log_output $CIRCLE_ARTIFACTS/log_output-LIVE.txt
Original file line number Diff line number Diff line change 35
35
docker push $(IMAGE_NAME ) :$(VERSION )
36
36
37
37
run :
38
- [ ! -f .env ] && echo ' .env2 file does not exist, copy a base env template' && cp .env.example .env || echo " env file exists"
38
+ [ ! -f .env ] && echo ' .env2 file does not exist, copy env template' && cp .env.example .env || echo " env file exists"
39
39
docker-compose -f docker-compose.local.yml up -d
40
40
41
41
start : run
You can’t perform that action at this time.
0 commit comments