Skip to content

Commit b428440

Browse files
committed
Merge branch 'chore/docker_non_linux_os' into gaurav-bhardwaj-ind-master
2 parents 2240ebf + d3397b7 commit b428440

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

MANIFEST

+6-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ pact/pact.py
2121
pact/provider.py
2222
pact/verifier.py
2323
pact/verify_wrapper.py
24-
pact/bin/pact-3.1.2.2-alpha-linux-arm64.tar.gz
25-
pact/bin/pact-3.1.2.2-alpha-linux-x86_64.tar.gz
26-
pact/bin/pact-3.1.2.2-alpha-osx-arm64.tar.gz
27-
pact/bin/pact-3.1.2.2-alpha-osx-x86_64.tar.gz
28-
pact/bin/pact-3.1.2.2-alpha-windows-x86_64.zip
24+
pact/bin/pact-2.0.3-linux-arm64.tar.gz
25+
pact/bin/pact-2.0.3-linux-x86_64.tar.gz
26+
pact/bin/pact-2.0.3-osx-arm64.tar.gz
27+
pact/bin/pact-2.0.3-osx-x86_64.tar.gz
28+
pact/bin/pact-2.0.3-windows-x86.zip
29+
pact/bin/pact-2.0.3-windows-x86_64.zip
2930
pact/cli/__init__.py
3031
pact/cli/verify.py

examples/broker/docker-compose.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ services:
2020
#
2121
# As well as changing the image, the destination port will need to be changed
2222
# from 9292 below, and in the nginx.conf proxy_pass section
23-
image: pactfoundation/pact-broker
23+
image: pactfoundation/pact-broker:latest-multi
2424
ports:
2525
- "80:9292"
26+
depends_on:
27+
- postgres
2628
links:
2729
- postgres
2830
environment:
@@ -32,6 +34,7 @@ services:
3234
PACT_BROKER_DATABASE_NAME: postgres
3335
PACT_BROKER_BASIC_AUTH_USERNAME: pactbroker
3436
PACT_BROKER_BASIC_AUTH_PASSWORD: pactbroker
37+
PACT_BROKER_DATABASE_CONNECT_MAX_RETRIES: "5"
3538
# The Pact Broker provides a healthcheck endpoint which we will use to wait
3639
# for it to become available before starting up
3740
healthcheck:
@@ -55,3 +58,4 @@ services:
5558
depends_on:
5659
broker_app:
5760
condition: service_healthy
61+

examples/common/sharedfixtures.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import platform
12
import pathlib
23

34
import docker
@@ -65,14 +66,19 @@ def publish_existing_pact(broker):
6566
"PACT_BROKER_PASSWORD": "pactbroker",
6667
}
6768

69+
target_platform = platform.platform().lower()
70+
71+
if 'macos' in target_platform or 'windows' in target_platform:
72+
envs["PACT_BROKER_BASE_URL"] = "http://host.docker.internal:80"
73+
6874
client = docker.from_env()
6975

7076
print("Publishing existing Pact")
7177
client.containers.run(
7278
remove=True,
7379
network="broker_default",
7480
volumes=pacts,
75-
image="pactfoundation/pact-cli:latest",
81+
image="pactfoundation/pact-cli:latest-multi",
7682
environment=envs,
7783
command="publish /pacts --consumer-app-version 1",
7884
)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
IS_64 = sys.maxsize > 2 ** 32
18-
PACT_STANDALONE_VERSION = '2.0.2'
18+
PACT_STANDALONE_VERSION = '2.0.3'
1919
PACT_STANDALONE_SUFFIXES = ['osx-x86_64.tar.gz',
2020
'osx-arm64.tar.gz',
2121
'linux-x86_64.tar.gz',

0 commit comments

Comments
 (0)