Skip to content

ministryofjustice/cloud-platform-tools-image

MoJ Cloud Platform 'tools' image

Releases

A docker image with a set of useful software tools installed, for managing the cloud platform.

The image includes:

  • aws
  • docker-cli
  • git
  • git-crypt
  • helm
  • kops
  • kubectl
  • openssh-keygen
  • pingdom-terraform
  • postgresql-client
  • ruby
  • terraform
  • aws-iam-authenticator
  • setup-kube-auth
  • tag-and-push-docker-image
  • jq

Building and tagging the tools image

A github action builds the tools image and pushes it to DockerHub whenever a new release is defined in github.

The image is tagged with the release number.

setup-kube-auth

This is a bash script that automates the process of authenticating to the cloud platform, for use in automated build pipelines.

For each "environment" (kuberenetes context) that's required in your build pipeline, the script expects to find the following environment variables:

  • KUBE_ENV_XYZ_NAME, the name of the cluster (which also determines its host)
  • KUBE_ENV_XYZ_NAMESPACE, the namespace to target in that cluster
  • KUBE_ENV_XYZ_CACERT andKUBE_ENV_XYZ_TOKEN, from ServiceAccount

It will configure kubectl with a context named xyz.

tag-and-push-docker-image

This is a script to simplify the process of pushing a service team's docker image to DockerHub, and tagging it with the SHA1 of the latest commit.

About

Docker image containing all the tooling used by pipelines.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 21