MaxPeal / container-demo

This repository contains a couple of container demos for authoring effective docker images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Container Demo


Table of Contents generated with DocToc


About

This repository contains a couple of container demos meant for consumption by 3Pillar Global's internal DevOps Community of Practice.

Usage

For building this Docker image, the following will do:

docker build . -t devops-cop-container-demo

For added benefit, export DOCKER_BUILDKIT=1 before the build to use buildkit, the new build backend.

For installing pre-commit hooks, run:

pre-commit install

For running hadolint, dockle, and trivy, the scripts directory contains wrapper bash scripts to all three, e.g.

scripts/trivy_wrapper.sh devops-cop-container-demo

As CICD good practices,

Enabling Docker Content Trust is normally recommended, but as mentioned in this open issue it does not work with locally built images.

Misc

Always clean up after yourself:

docker system prune -a

(Note: be mindful about running this on production systems, though.)

About

This repository contains a couple of container demos for authoring effective docker images.


Languages

Language:Shell 60.0%Language:Dockerfile 28.0%Language:Python 12.0%