This projects starts at https://github.com/bethesque/pact_broker please read those docs first.
-
Latest stable docker
-
STUPS AWS ecosystem with OAuth2 solution. You can use DiUS pact broker instead if you don't have STUPS tools.
Make user ${USER}
returns the same user as LDAP/AD one, e.g. elgalu
export SHOST="https://pacts.myteam-test.example.org" \
OAUTH2_ACCESS_TOKEN_URL="https://token.example.com/access_token" \
OAUTH2_ACCESS_TOKEN_PARAMS="?realm=/employees"
export OAUTH2_ACCESS_TOKEN_URL_PARAMS="${OAUTH2_ACCESS_TOKEN_URL}${OAUTH2_ACCESS_TOKEN_PARAMS}"
token=$(zign token --user elgalu --url $OAUTH2_ACCESS_TOKEN_URL_PARAMS -n pact)
PACT="{\"provider\": {\"name\": \"prov3\"}, \"consumer\": {\"name\": \"${USER}\"} }"
curl -H "Authorization: Bearer $token" -H 'Content-Type: application/json' -X PUT -d"${PACT}" \
"$SHOST/pacts/provider/prov3/consumer/${USER}/version/1.0.0"
Now open staging
-
To curl the service see curl.md
-
To have a postgres docker running see postgres.md
-
For the docker build & docker run flow see local-build-run.md
-
For the docker build & push flow see CONTRIBUTING.md
-
To see the service on your browser see Chrome OAuth Bearer Plugin
-
To run in in the host machine see on-host.md
-
How the team etcd cluster was deployed: etcd.md
-
How PostgreSQL was deployed to AWS using Spilo: spilo.md
-
How the app was deployed to AWS: pacts.md
-
Monitoring through New Relic newrelic.md