Skip to content

Repository to hold custom Dockerfile's for various purposes & are stored in docker hub

License

Notifications You must be signed in to change notification settings

abhisheksr01/docker-files

Repository files navigation

Docker-Files

Collection of custom Dockerfile's for various purposes and are hosted on Docker Hub with a pattern abhisheksr01/[IMAGE-NAME]

Multi-Platform Docker Images

Docker images can support multiple platforms, which means that a single image may contain variants for different architectures, and sometimes for different operating systems, such as Windows.

When you run an image with multi-platform support, Docker automatically selects the image that matches your OS and architecture.

This is one of the most common issues we will find when using Macbook Intel vs Macbook M series chipset. To learn more about it click here

Before you begin ensure you have enabled containerd image store. Click here to see the instructions

List of Dockerfiles

The repo contains below docker files, click on the individual link to learn more.

Building an image

The below command performs 3 key operations:

  • Performs Dockerfile linting using hadolint
  • Creates the docker image with the given tag
  • Locally scan the docker image vulnerabilities using Trivy
  • Push the image to the registry

Note:

Before executing the command you must have Docker running and logged in to the registry (Docker Hub, JFrog etc).
If a vulnerability has been identified than the image won't be pushed to the registry.

Execute below command from the root of the directory:

./build-scan-push-image.sh [DOCKER_HUB_USERNAME] [DIRECTORY_NAME] [TAG]

Here your directory name is going to be the Docker Image Name.

Example execution of the command:

./build-scan-push-image.sh abhisheksr01 eks-helm 0.0.1

About

Repository to hold custom Dockerfile's for various purposes & are stored in docker hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published