You'll need to have Docker installed.
After being sure you have Docker properly settup, simple run the following commands:
docker build . -t acelera-devops
docker run -d -e PORT=8888 -p 8888:8888 acelera-devops
If it works, you'll be able to check it with
echo $(curl -s http://localhost:8888/ping/$RANDOM)
You should see pong: followed by a random number as the output.
- Google Run
- Google Build
- Google Artefacts Registry
- Install Python
- Install GCloud CLI
- Initializing the gcloud sdk
gcloud init
- Creating new Docker repository
gcloud artifacts repositories create acelera-repo --repository-format=docker --location=us-central1 --description="Acelera Docker Repository"
- Retrieving the project id
gcloud config get-value project
- "acelera-308720"
- Create yaml pipeline
- Verify cloudbuild.yaml file.
- Send the yaml to google build.
gcloud builds submit --config cloudbuild.yaml
- Install Cloud Build in GitHub
- Using connect to repository from Google build dashboard.
- Create google run to read from the artifacts and configure the continuous delivery.
Force build.