Slackbot
07/12/2022, 8:24 AMMatt (pactflow.io / pact-js / pact-go)
Ravindra Dhaka
07/13/2022, 6:05 AMRavindra Dhaka
07/13/2022, 6:07 AMFROM alpine:3.5 AS base
RUN apk update && \
apk add --no-cache \
bc \
ruby \
ruby-bigdecimal \
ruby-bundler \
ruby-io-console \
libressl \
ca-certificates \
python3 \
g++ \
curl \
git \
make \
gcc \
nodejs \
openssl \
tzdata
RUN rm -rf /var/lib/apt/lists/*
RUN mkdir -p /srv/app
RUN mkdir -p $GOPATH/bin/pact
WORKDIR /srv/app
FROM golang:1.16.6-alpine3.13 AS build-env
RUN apk add --no-cache \
bc \
ca-certificates \
python3 \
g++ \
curl \
git \
make \
less \
groff \
gcc \
bash \
nodejs \
nodejs-npm \
openssl \
tzdata \
openssl \
tzdata
RUN curl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | sh -s -- -b $(GOPATH)/bin
# RUN curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.88.78/pact-1.88.78-linux-x86_64.tar.gz>; \
# tar xzf pact-1.88.78-linux-x86_64.tar.gz; \
# rm pact-1.88.78-linux-x86_64.tar.gz
RUN apk add --no-cache openssh
RUN apk add --no-cache --virtual build-dependencies build-base
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
SHELL ["/bin/bash", "-c"]
RUN go get <http://golang.org/x/tools/cmd/cover|golang.org/x/tools/cmd/cover>
ENV CGO_ENABLED=0
ENV GO111MODULE=on
RUN curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.88.78/pact-1.88.78-linux-x86_64.tar.gz>; \
tar -C /usr/local -xzf pact-1.88.78-linux-x86_64.tar.gz; \
rm pact-1.88.78-linux-x86_64.tar.gz
ENV PATH /usr/local/pact/bin:$PATH
Ravindra Dhaka
07/13/2022, 6:07 AMRavindra Dhaka
07/13/2022, 6:09 AM$ go version
go version go1.13.1 linux/amd64
$ uname -a
Linux runner-zq4mqcga-project-21507-concurrent-0 4.15.0-1057-aws #59-Ubuntu SMP Wed Dec 4 10:02:00 UTC 2019 x86_64 Linux
$ go mod vendor
$ echo $GOPATH
/go
$ echo $pwd
Ravindra Dhaka
07/13/2022, 6:10 AMLinux runner-zq4mqcga-project-21507-concurrent-0 4.15.0-1057-aws #59-Ubuntu SMP Wed Dec 4 10:02:00 UTC 2019 x86_64 Linux
Matt (pactflow.io / pact-js / pact-go)
docker run -it --rm --entrypoint bash test-pact
bash-5.1# /usr/local/pact/bin/pact-broker
/usr/local/pact/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /go/bin in PATH, mode 040777
Commands:
pact-broker can-i-deploy -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL #
pact-broker create-environment --name=NAME -b, --broker-base-url=BROKER_BASE_URL # Create an environment resource in the Pact Broker to represent a real world deployment o...
pact-broker create-or-update-pacticipant --name=NAME -b, --broker-base-url=BROKER_BASE_URL # Create or update pacticipant by name
pact-broker create-or-update-webhook URL --uuid=UUID -X, --request=METHOD -b, --broker-base-url=BROKER_BASE_URL # Creates or updates a webhook with a provided uuid and using the same switches as a curl ...
pact-broker create-version-tag -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL -e, --version=VERSION # Add a tag to a pacticipant version
pact-broker create-webhook URL -X, --request=METHOD -b, --broker-base-url=BROKER_BASE_URL # Creates a webhook using the same switches as a curl request.
pact-broker delete-environment --uuid=UUID -b, --broker-base-url=BROKER_BASE_URL # Delete an environment
pact-broker describe-environment --uuid=UUID -b, --broker-base-url=BROKER_BASE_URL # Describe an environment
pact-broker describe-pacticipant --name=NAME -b, --broker-base-url=BROKER_BASE_URL # Describe a pacticipant
pact-broker describe-version -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL # Describes a pacticipant version. If no version or tag is specified, the latest version i...
pact-broker generate-uuid # Generate a UUID for use when calling create-or-update-webhook
pact-broker help [COMMAND] # Describe available commands or one specific command
pact-broker list-environments -b, --broker-base-url=BROKER_BASE_URL # List environments
pact-broker list-latest-pact-versions -b, --broker-base-url=BROKER_BASE_URL # List the latest pact for each integration
pact-broker list-pacticipants -b, --broker-base-url=BROKER_BASE_URL # List pacticipants
pact-broker publish PACT_DIRS_OR_FILES ... -a, --consumer-app-version=CONSUMER_APP_VERSION -b, --broker-base-url=BROKER_BASE_URL # Publish pacts to a Pact Broker.
pact-broker record-deployment --environment=ENVIRONMENT -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL -e, --version=VERSION # Record deployment of a pacticipant version to an environment. See <https://docs.pact.io/g>...
pact-broker record-release --environment=ENVIRONMENT -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL -e, --version=VERSION # Record release of a pacticipant version to an environment. See See <https://docs.pact.io/>...
pact-broker record-support-ended --environment=ENVIRONMENT -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL -e, --version=VERSION # Record the end of support for a pacticipant version in an environment. See <https://docs>....
pact-broker record-undeployment --environment=ENVIRONMENT -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL # Record undeployment of a pacticipant from an environment.
pact-broker test-webhook --uuid=UUID -b, --broker-base-url=BROKER_BASE_URL # Test the execution of a webhook
pact-broker update-environment --uuid=UUID -b, --broker-base-url=BROKER_BASE_URL # Update an environment resource in the Pact Broker.
pact-broker version # Show the pact_broker-client gem version
Matt (pactflow.io / pact-js / pact-go)
@
any body unless prior requested. We monitor the channels as best we can, an additional notification is not going to get a faster response