Skip to content

Instantly share code, notes, and snippets.

@azakordonets
Created July 23, 2019 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azakordonets/e7785cdb3d87399d3ede7e03e9a02290 to your computer and use it in GitHub Desktop.
Save azakordonets/e7785cdb3d87399d3ede7e03e9a02290 to your computer and use it in GitHub Desktop.
Standalone Pact running in alpine Docker image
FROM alpine:3.9
RUN apk --no-cache add ca-certificates wget bash \
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-2.29-r0.apk \
&& apk add glibc-2.29-r0.apk
RUN wget https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.69.0/pact-1.69.0-linux-x86_64.tar.gz \
&& tar xzf pact-1.69.0-linux-x86_64.tar.gz \
&& rm -rf pact-1.69.0-linux-x86_64.tar.gz
RUN ln -s /pact/bin/pact /usr/local/bin \
&& ln -s /pact/bin/pact-broker /usr/local/bin \
&& ln -s /pact/bin/pact-message /usr/local/bin \
&& ln -s /pact/bin/pact-mock-service /usr/local/bin \
&& ln -s /pact/bin/pact-provider-verifier /usr/local/bin \
&& ln -s /pact/bin/pact-publish /usr/local/bin \
&& ln -s /pact/bin/pact-stub-service /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment