Coder Social home page Coder Social logo

concourse-deployment's Introduction

concourse-deployment

Use this repo to deploy a standalone concourse instance to Google Cloud Platform.

  1. Create google service account with the owner role if you do not already have one. The deploy script will expect the service account's key to be in gcp_credentials.json.

    gcloud config set compute/zone us-central1-b
    gcloud config set compute/region us-central1
    gcloud iam service-accounts create concourse-service-account
    gcloud projects add-iam-policy-binding <SERVICE_ACCOUNT_NAME> \
          --member serviceAccount:<SERVICE_ACCOUNT_NAME>@<PROJECT_ID>.iam.gserviceaccount.com \
          --role roles/owner
    gcloud iam service-accounts keys create gcp_credentials.json \
        --iam-account <SERVICE_ACCOUNT_NAME>@<PROJECT_ID>.iam.gserviceaccount.com
  2. The deploy script will expect the following environment variables to be set.

    • GITHUB_CLIENT_ID (for github oauth)
    • GITHUB_CLIENT_SECRET (for github oauth)
    • GITHUB_ORG (for github oauth)
    • GITHUB_TEAM (for github oauth)
    • GCP_PROJECT_ID
    • GCP_SERVICE_ACCOUNT
  3. Create a terraform.tfvars file, providing values for the following

    region = "us-central1"
    projectid = <PROJECT_ID>
    
  4. Run ./terraform plan to make sure all the variables have been provided, and then ./terraform apply to create the infrastructure.

  5. Rune ./deploy.sh to deploy concourse.

concourse-deployment's People

Contributors

trevorwhitney avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.