Tagdocker

Use Bash to wait for Docker container to start by tag

If you run a container in the background and want to wait until it has started up before doing anything else, you can use a combination of docker ps and docker inspect to check within a Bash loop whether it is finally running. This can be useful if you want to run tests checking if the container is responding on a specific port for example. You can remove the --all option for docker ps and the...

Access GCR Docker images from other Google Cloud Projects using Terraform

If you have multiple Google Cloud Projects and want to pull Container Registry images from other projects, you will need to grant each project access by adding a role to the a few service accounts specific to each Project. For Kubernetes Engine or Compute Engine you will need to add the role to the Compute Engine default service accountFor Cloud Build you will need to add the role to the Cloud...