Skip to content

Commit 43dd8ac

Browse files
committed
Install local docker-compose to /home/circleci/bin
1 parent c90f942 commit 43dd8ac

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.circleci/config.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
22
version: 2.1
3-
# Use a package of configuration called an orb.
43
# Orchestrate or schedule a set of jobs
54
workflows:
65
docker-compose:
7-
# Run the welcome/run job in its own container
86
jobs:
97
- build-and-test
108
jobs:
@@ -16,8 +14,9 @@ jobs:
1614
name: Install Docker Compose
1715
command: |
1816
set -x
19-
curl -L https://github.com/docker/compose/releases/download/1.26.2/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
20-
sudo chmod +x ~/docker-compose
17+
curl -L https://github.com/docker/compose/releases/download/1.26.2/docker-compose-`uname -s`-`uname -m` > /home/circleci/bin/docker-compose
18+
sudo chmod +x /home/circleci/bin/docker-compose
19+
which docker-compose
2120
docker-compose --version
2221
- run:
2322
command: |
@@ -37,13 +36,13 @@ jobs:
3736
- run:
3837
command: |
3938
pushd metacpan-docker
40-
~/docker-compose build --build-arg CPM_ARGS='--with-test' api_test
39+
docker-compose build --build-arg CPM_ARGS='--with-test' api_test
4140
name: compose build
4241
- run:
4342
command: |
4443
pushd metacpan-docker
4544
./bin/metacpan-docker init
46-
~/docker-compose --verbose up -d api_test
45+
docker-compose --verbose up -d api_test
4746
name: compose up
4847
- run:
4948
command: |
@@ -53,11 +52,11 @@ jobs:
5352
- run:
5453
command: |
5554
pushd metacpan-docker
56-
~/docker-compose exec -T api_test prove -lr --jobs 2 t
55+
docker-compose exec -T api_test prove -lr --jobs 2 t
5756
- run:
5857
command: |
5958
pushd metacpan-docker
60-
~/docker-compose logs
59+
docker-compose logs
6160
docker stats --no-stream
6261
docker ps -a | head
6362
name: docker-compose logs

0 commit comments

Comments
 (0)