Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Added Docker and Docker Compose configuration for AWS Health Exporter #60

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nstankov-bg
Copy link

@nstankov-bg nstankov-bg commented Jul 24, 2023

Description

This PR introduces a set of changes aimed at optimizing the Docker configuration for the AWS Health Exporter. The focus of these changes is to enable the use of Docker Compose for easier management of the AWS Health Exporter service, as well as to streamline the process of passing AWS credentials to the Docker container.

Maintainer Tag:

@smon, @kdomanski, @jadolg

Key changes:

  1. Dockerfile: The Dockerfile has been updated to use a two-stage build process. The application is built in the first stage using the golang:1.20-alpine3.18 image, and the resulting binary is then copied to the final image, which is based on gcr.io/distroless/base. This ensures that the final image is optimized and contains only the bare essentials needed to run the application.

  2. docker-compose.yaml: A new Docker Compose configuration has been introduced. This configuration makes it easy to build and run the AWS Health Exporter service. It also allows AWS credentials to be passed to the service via environment variables, which are sourced from an .env file.

  3. .env.example: An example .env file has been added to guide users in setting up their own .env file with their AWS credentials.

  4. .gitignore: The .gitignore file has been updated to prevent the .env file, which may contain sensitive AWS credentials, from being committed to the repository.

Note:

My take: Do not use docker-compose on production. Use it to test.
There are better technologies out there for container orchestration.

nstankov-bg and others added 2 commits July 24, 2023 08:16
Added a Dockerfile using a Distroless base image for a highly optimized container image.
Created a docker-compose.yml file to simplify the running of the service and the passing of AWS credentials.
Included instructions for building and running the Docker image in the documentation."
@nstankov-bg nstankov-bg changed the title "Added Docker and Docker Compose configuration for AWS Health Exporter Added Docker and Docker Compose configuration for AWS Health Exporter Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant