Using docker to build a docker image containing the ubuntu 22.04 OS (with go, gcloud and packer).
Table of Contents
- Dockerfile
- Dockerhub image
- Size: ~4.13GB
- Source Image: docker
- "ubuntu:22.04" for docker on linux
- Custom Image: docker
- ubuntu 22.04 for docker on linux
- Contains:
- go 1.20.1
- gcloud SDK 419.0.0
- Installed app-engine-go component 1.9.72
- packer 1.8.6
build-push.sh contains,
DOCKER_BUILDKIT=0 docker build -t jeffdecola/go-gcloud-packer .
docker push jeffdecola/go-gcloud-packer
Obviously, you will have to edit and create an account at dockerhub.
To run on your machine, I suggest,
docker pull jeffdecola/go-gcloud-packer
docker run --name go-gcloud-packer -dit jeffdecola/go-gcloud-packer
To bash shell into the container and check versions,
docker exec -i -t go-gcloud-packer /bin/bash
lsb_release -a
gcloud version
gcloud components list --show-versions
To see the output,
docker logs -f go-gcloud-packer