Sign inSign up

jeffdecola/go-gcloud-packer

By jeffdecola

•Updated over 3 years ago

Using docker to build a docker image containing the ubuntu 22.04 OS (with go, gcloud and packer).

Image
0

496

jeffdecola/go-gcloud-packer repository overview

⁠go-gcloud-packer

Docker Pulls MIT License jeffdecola.com

Using docker to build a docker image containing the ubuntu 22.04 OS (with go, gcloud and packer).

GitHub Repo⁠

⁠DOCKERFILE

  • Using docker to build a docker image containing the ubuntu 22.04 OS (with go, gcloud and packer)
  • 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 IMAGE AND PUSH TO DOCKERHUB

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.

⁠DEPLOY IMAGE

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

Tag summary

Content type

Image

Digest

sha256:fbaa70355…

Size

1.3 GB

Last updated

over 3 years ago

docker pull jeffdecola/go-gcloud-packer