Before we deploy our first pod, we need to build the Docker production image and push it to the Docker registry. Our pod definition will then point to the pushed image.
We first need to configure docker to use gcloud when pushing images to gcr.io, Google's private Docker registry. To add gcloud as a Docker credentials helper, simply run gcloud auth configure-docker and follow the instructions.
To build the image, we will run the docker-compose.test.yml compose file and in the end, we'll have the gcr.io/intense-talent-188323/elixir-drip-prod:manual_build image ready to be published:
$ PROJECT_ID=intense-talent-188323 BUILD_TAG=manual_build docker-compose -f docker-compose.test.yml run appBuilding releaseStep ...