Rails app for managing the transition of websites to GOV.UK. Specifically, it's for the production of and handling of mappings for use with Bouncer.
bundle exec rake db:setup
FactoryBot will seed some dummy data to get started with.
bundle exec rake db:seed
The web application itself is run like any other Rails app, for example:
script/rails s
In development, you can run sidekiq to process background jobs:
bundle exec sidekiq -C config/sidekiq.yml
Available at /style, the guide documents how transition is using bootstrap, where the app has diverged from default styles and any custom styles needed to fill in the gaps.
This service is hosted on dxw's container platform called Dalmatian.
Deployments from this application's point of view are done by merging new code into either the develop branch for staging or the master branch for production. Once pushed DockerHub will build a new Docker Image.
Once complete, the deployment process to provision this new container hands over to Dalmatian.
This application has a separate private GitHub repository that is responsible for provisioning the required infrastructure. This includes the Bouncer service and is done using Terraform.
The way to deploy new containers is manual and involves downtime:
To access a Rails console or run a rake task on a live environment:
sudo sudocker psdocker exec -ti <container-id> /bin/basheval $(AWS_ENV_PATH=/ukri-transition-0-staging/$SSM_PATH_SUFFIX/ AWS_REGION=eu-west-2 ./aws-env) to load the environment variablesrails c or rake as normalContent type
Image
Digest
Size
596.5 MB
Last updated
over 6 years ago
docker pull thedxw/transition