Commit Graph

25 Commits

Author SHA1 Message Date
Chris Hill-Scott
4fc98127ca Add config to deploy a prototype version of admin
Sometimes we want to make changes to the admin app for doing user
research that we don’t want all users to see (because we’re not sure if
they’re the right changes to be making).

Previously this meant doing the research using a team member’s computer,
with the app running locally. This was bad for three reasons:

- requires the time of someone who has the code running locally
- requires the participant to use an unfamiliar computer
- means the participant doesn’t have access to their own Notify account
  (or an account that we’ve set up for doing user research with)

The dream* would be to have two versions of the frontend app running
side by side in production. This commit makes the dream real – the two
versions of admin are:

- the normal admin app, accessible on
  `www.notifications.service.gov.uk`
- a prototype version meant to be pushed to from a developer’s local
  machine**, on a `cloudapps.digital` subdomain

Both of these apps share the same backing services, eg config, API
instance, queues, etc, etc. Which means that the prototype version can
be logged into with the same username and password, and the user will
see their service and all their templates when they do so.

Ideally this wouldn’t mean creating a separate base manifest. However
it’s a feature of Cloud Foundry that you can override the application
name. Which means a separate base manifest and a bit of duplication. 😞

* actually the real dream would be to have a version of admin deployed
for each branch of the admin app, but this might get a bit resource
intensive.

** by running `CF_SPACE=preview make preview cf-deploy-prototype`, where
`preview` is the name of the space you want to deploy to
2017-05-08 16:54:44 +01:00
bandesz
71b4d9eb6e Fix PaaS scaling at deploy 2017-03-23 12:29:36 +00:00
bandesz
973b6621df PaaS rollback: check if the rollback app is in a started state 2017-03-16 12:29:16 +00:00
bandesz
d3b7d1aeee Remove Docker commands for CF, clean up artifact creation 2017-02-28 12:31:56 +00:00
bandesz
16a40e526b Remove Jenkinsfiles, add PaaS artifact tasks 2017-02-27 17:04:19 +00:00
Chris Hill-Scott
d043536aaf Merge pull request #1141 from alphagov/fix-codedeploy-artifact
Remove old target directory and include any dotfiles in the zip
2017-02-20 15:25:30 +00:00
bandesz
41210a9d2b Add cf-rollback-with-docker Make task 2017-02-20 13:23:55 +00:00
Imdad Ahad
f355e7e50b Remove old target directory and include any dotfiles in the zip 2017-02-20 11:38:08 +00:00
bandesz
b148a0a6a0 Add awslogs logging for PaaS 2017-02-16 14:19:37 +00:00
bandesz
ddf657fa2b Add Jenkinsfile for PaaS deployment 2017-02-01 15:44:10 +00:00
bandesz
ed17b68330 Jenkinsfile: retry functional tests 2017-01-17 11:44:42 +00:00
bandesz
536d9a975d Don't build wheelhouse files for PAAS 2017-01-17 11:44:42 +00:00
bandesz
7eab0f411f Run Docker container with host user and group 2017-01-17 11:44:42 +00:00
bandesz
54af97767f Add quotes around Docker volume definitions 2017-01-17 11:44:42 +00:00
bandesz
10950bb8a6 Run on Paas 2017-01-17 11:44:42 +00:00
bandesz
d523ccf0d6 Fix typo: procecces -> processes 2017-01-16 17:51:46 +00:00
bandesz
568032bd28 Add Makefile commands to control autoscaling processes 2017-01-16 17:29:35 +00:00
bandesz
f43ba1fbb9 Enable SSE for S3 upload 2016-12-05 16:53:15 +00:00
bandesz
b7d1a10e2d Use http proxy for Docker 2016-11-30 15:57:20 +00:00
bandesz
b512c7980b Add variables to Makefile for codedeploy app name and s3 prefix 2016-11-22 12:24:26 +00:00
Imdad Ahad
75854d91fc Use python wheels to speed up deployments 2016-11-07 17:56:08 +00:00
bandesz
69180b2d47 Finish coveralls task 2016-08-30 12:06:21 +01:00
bandesz
ca8ad56be9 Rename development env to preview 2016-08-24 15:55:54 +01:00
bandesz
d7324136ae Fix version file generation, remove master deploys from travis 2016-08-23 13:44:20 +01:00
bandesz
26ff449b77 Create Docker build image, build project with Docker 2016-08-22 17:25:05 +01:00