This repository contains the necessary files to build a custom Docker image for the Atlantis tool using Docker Buildx. It supports building multi-platform images and pushing them to Docker Hub.
Before you begin, ensure you have the following installed:
- Docker with Buildx enabled
- Make sure you are logged into Docker Hub or have the credentials available for login
To push the image to Docker Hub, the following environment variables should be set:
DOCKER_USERNAME
: Your Docker Hub usernameDOCKER_PASSWORD
: Your Docker Hub password or access token
The Makefile accepts the following optional variables:
ATLANTIS_VERSION
: The version of Atlantis to include in the Docker image. Defaults tov0.27.3
.MATTERMOST_ATLANTIS_IMAGE
: The name of the Docker image to build. Defaults tomattermost/atlantis:test
.PLATFORMS
: The platforms for which to build the image. Defaults tolinux/amd64,linux/arm64
.MATTERMOST_ATLANTIS_REPO
: The Docker repository where the image will be pushed. Defaults tomattermost/atlantis
.
This command builds the Docker image and pushes it to the Docker repository specified by MATTERMOST_ATLANTIS_IMAGE
.
make build-image