Skip to content

Commit 2a63a60

Browse files
committedJun 25, 2024··
fix(ci): docker-compose possibly causing issues
ERROR: for pact-broker 'ContainerConfig' KeyError: 'ContainerConfig'
1 parent f17f6bc commit 2a63a60

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ If you are running more than one Pact Broker Docker container at a time for the
157157
You can see a working example in the [docker-compose-clean.yml](./docker-compose-clean.yml) file. To run the example locally, run:
158158

159159
```
160-
docker-compose -f docker-compose-clean.yml up pact-broker
160+
docker compose -f docker-compose-clean.yml up pact-broker
161161
162162
# in another console
163-
docker-compose -f docker-compose-clean.yml up clean
163+
docker compose -f docker-compose-clean.yml up clean
164164
```
165165

166166
### Known issues with the data clean up task
@@ -173,8 +173,8 @@ For a quick start with the Pact Broker and Postgres, we have an example
173173
[Docker Compose][docker-compose] setup you can use:
174174

175175
1. Modify the `docker-compose.yml` file as required.
176-
2. Run `docker-compose build` to build the pact_broker container locally.
177-
3. Run `docker-compose up` to get a running Pact Broker and a clean Postgres database.
176+
2. Run `docker compose build` to build the pact_broker container locally.
177+
3. Run `docker compose up` to get a running Pact Broker and a clean Postgres database.
178178

179179
Now you can access your local broker:
180180

‎example-k8s-deployment/infrastructure/deploy_cfn.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
stack=$1
44
env=$2
55

6-
docker-compose run --rm stackup-"$env" pact-broker-"$stack" up \
6+
docker compose run --rm stackup-"$env" pact-broker-"$stack" up \
77
-t infrastructure/"$stack"/template.yaml \
88
-p infrastructure/"$stack"/envs/common.yaml \
99
-p infrastructure/"$stack"/envs/"$env".yaml

‎script/test.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ for file in $docker_compose_files; do
1212
done
1313

1414
cleanup() {
15-
docker-compose -f docker-compose-tests.yml rm -fv || true
16-
docker-compose -f docker-compose-test-different-env-var-names.yml rm -fv || true
15+
docker compose -f docker-compose-tests.yml rm -fv || true
16+
docker compose -f docker-compose-test-different-env-var-names.yml rm -fv || true
1717
}
1818
trap cleanup EXIT
1919

2020
cleanup
2121

22-
docker-compose -f docker-compose-tests.yml up --build --abort-on-container-exit --exit-code-from sut --remove-orphans
22+
docker compose -f docker-compose-tests.yml up --build --abort-on-container-exit --exit-code-from sut --remove-orphans
2323
cleanup
2424

2525
export PACT_BROKER_BASIC_AUTH_USERNAME=foo
2626
export PACT_BROKER_BASIC_AUTH_PASSWORD=bar
2727
export PACT_BROKER_PUBLIC_HEARTBEAT=true
28-
docker-compose -f docker-compose-tests.yml up --build --abort-on-container-exit --exit-code-from sut --remove-orphans
28+
docker compose -f docker-compose-tests.yml up --build --abort-on-container-exit --exit-code-from sut --remove-orphans
2929

3030
unset PACT_BROKER_BASIC_AUTH_USERNAME
3131
unset PACT_BROKER_BASIC_AUTH_PASSWORD
3232
unset PACT_BROKER_PUBLIC_HEARTBEAT
3333

34-
docker-compose -f docker-compose-test-different-env-var-names.yml up --build --abort-on-container-exit --exit-code-from sut --remove-orphans
34+
docker compose -f docker-compose-test-different-env-var-names.yml up --build --abort-on-container-exit --exit-code-from sut --remove-orphans

0 commit comments

Comments
 (0)
Please sign in to comment.