Skip to content

Commit

Permalink
Remove now-redundant PaaS-related things
Browse files Browse the repository at this point in the history
Our Pact Broker instance has now been fully migrated to Heroku, so we can remove the old wrapper script that was used to run it on PaaS.

Some notes:

- The documentation about versioning is no longer valid because our new instance no longer uses a custom version parser
- The documentation related to deployment has been moved into the README
- Dependabot's bundler-related config has been removed because we no longer use Ruby in this repo
- Similarly, I have removed CodeQL SAST scanning because this repo no longer contains any code
  • Loading branch information
robinjam committed Nov 9, 2023
1 parent 0f5d426 commit c67673a
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 432 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
version: 2
updates:
- package-ecosystem: bundler
directory: /
schedule:
interval: daily
- package-ecosystem: docker
directory: /
schedule:
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,9 @@ on:
push:
branches:
- main
paths-ignore:
- "Jenkinsfile"
- ".git**"
pull_request:

pull_request:

jobs:
codeql-sast:
name: CodeQL SAST scan
uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
permissions:
security-events: write

dependency-review:
name: Dependency Review scan
uses: alphagov/govuk-infrastructure/.github/workflows/dependency-review.yml@main
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

8 changes: 0 additions & 8 deletions Gemfile

This file was deleted.

165 changes: 0 additions & 165 deletions Gemfile.lock

This file was deleted.

1 change: 0 additions & 1 deletion Procfile

This file was deleted.

52 changes: 3 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,12 @@
# GOV.UK Pact Broker

This repo is a thin wrapper around the [Pact Broker Gem][pact-broker-gem] that
allows Pact Broker to be run on unicorn server on the
[GOV.UK PAAS][government-paas].

As PaaS is being decommissioned later this year, we are currently migrating
Pact Broker to Heroku, and so this repo also contains a `Dockerfile` and
associated `heroku.yml` file to allow it to run there. After the migration is
complete, the leftover pieces of the old wrapper (`config.ru`, `Gemfile`,
`Procfile`, etc.) will be removed from this repo.
This repo contains a minimal configuration to allow the
[pactfoundation/pact-broker](https://hub.docker.com/r/pactfoundation/pact-broker)
Docker image to run on Heroku.

Pact Broker is used by projects such as [Publishing API][publishing-api],
[GDS API Adapters][gds-api-adapters] and [Content Store][content-store] for
contract testing.

## Getting started (legacy version)

### Install dependencies

```
$ bundle install
```

### Create a PostgreSQL database

```
$ psql postgres
> create database pact_broker;
> CREATE USER pact_broker WITH PASSWORD 'pact_broker';
> GRANT ALL PRIVILEGES ON DATABASE pact_broker to pact_broker;
```

### Set up environment variables

```
$ export AUTH_USERNAME=username
$ export AUTH_PASSWORD=password
$ export DATABASE_URL=postgresql://pact_broker@localhost/pact_broker
```

### Run the app

```
$ bundle exec unicorn
```

## Further documentation

- [Infrastructure](docs/infrastructure.md)
- [Deployment](docs/deployment.md)
- [Versioning](docs/versioning.md)

[pact-broker-gem]: https://github.com/bethesque/pact_broker
[government-paas]: https://docs.cloud.service.gov.uk/
[publishing-api]: https://github.com/alphagov/publishing-api
[gds-api-adapters]: https://github.com/alphagov/gds-api-adapters
[content-store]: https://github.com/alphagov/content-store
Expand Down
69 changes: 0 additions & 69 deletions config.ru

This file was deleted.

25 changes: 0 additions & 25 deletions docs/deployment.md

This file was deleted.

Loading

0 comments on commit c67673a

Please sign in to comment.