diff --git a/README.md b/README.md index 5b010a52..9373af3a 100644 --- a/README.md +++ b/README.md @@ -54,37 +54,6 @@ Now run Go launcher and navigate to "http://localhost:8000/quick-launch?url=" pa e.g."http://localhost:8000/quick-launch?url=http://localhost:7777/1_0001.json" ``` -### Deploying - -For deploying with Concourse see the [CI README](./ci/README.md). - -### Deployment with [gcloud](https://cloud.google.com/sdk/gcloud) - -To deploy this application with gcloud, you must be logged in using `gcloud auth login` and `gcloud auth application-default login`. - -Make sure the required [environment variables](./README.md#environment-variables) are set. - -Then call the following command with environment variables set: -```sh -./ci/deploy_app.sh -``` -## Environment Variables - -The following environment variables must be set when deploying the app: -- PROJECT_ID -- DOCKER_REGISTRY -- RUNNER_URL - -The following are optional variables that can also be set if needed: -- SERVICE_ACCOUNT_JSON -- REGION -- IMAGE_TAG -- CONCURRENCY -- MIN_INSTANCES -- MAX_INSTANCES -- CPU -- MEMORY - ### Notes * There are no unit tests yet * JWT spec based on http://ons-schema-definitions.readthedocs.io/en/latest/jwt_profile.html diff --git a/ci/README.md b/ci/README.md deleted file mode 100644 index 008a1526..00000000 --- a/ci/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Deployment with [Concourse](https://concourse-ci.org/) - -To deploy this application with Concourse, you must be logged in to a Concourse instance. - ---- - -Make sure the required [environment variables](../README.md#environment-variables) are set. -IMAGE_TAG can be passed as an environment variable or as a file input located at `./image-tag/tag`. - -To deploy the app via Concourse, use the following task command: - -```sh -PROJECT_ID= \ -DOCKER_REGISTRY= \ -RUNNER_URL= \ -fly -t execute \ - --config ci/deploy.yaml -``` diff --git a/ci/deploy.yaml b/ci/deploy.yaml deleted file mode 100644 index 091cee41..00000000 --- a/ci/deploy.yaml +++ /dev/null @@ -1,36 +0,0 @@ -platform: linux -image_resource: - type: docker-image - source: - repository: gcr.io/google.com/cloudsdktool/cloud-sdk - tag: slim -params: - SERVICE_ACCOUNT_JSON: ((gcp.service_account_json)) - PROJECT_ID: - REGION: - DOCKER_REGISTRY: - IMAGE_TAG: - RUNNER_URL: - MIN_INSTANCES: - MAX_INSTANCES: -inputs: - - name: eq-questionnaire-launcher - - name: image-tag - optional: true -run: - path: bash - args: - - -exc - - | - export GOOGLE_APPLICATION_CREDENTIALS=/root/gcloud-service-key.json - cat >$GOOGLE_APPLICATION_CREDENTIALS < - until wget -qO- https://${LAUNCHER_FQDN}/status 2>&1 | grep "OK"; - do sleep 5; done