Skip to content

SykesCottages/docker-base

Repository files navigation

Sykes Cottages Base Docker Image

About

This is a foundation image we at Sykes Cottages use for almost all of our docker images. We use a hierarchy of images for each of our containers to minimise maintenance and reduce build times. This is the top level of our own hierarchy which inherits from the official Docker Ubuntu and Scratch images in turn.

Architecture Support

All our images have support for:

  • linux/amd64
  • linux/arm64/v8

Obtaining platform specific architectures:

docker pull --platform=<ARCHITECTURE> sykescottages/base:<VERSION>

Testing you have the right architecture:

docker run -it --platform=<ARCHITECTURE> sykescottages/base:<VERSION> arch

Supported versions and available tags

  • Ubuntu 20.04.6 (LTS Current EOL 2030-04-02) - sykescottages/base:ubuntu-20-04
  • Ubuntu 22.04.3 (LTS Current EOL 2032-04-09) - sykescottages/base:ubuntu-22-04

Image Itinerary

For better visibility of packages there is now an included aptitude itinerary with each tag, this is located in the corresponding folder to the tag. This will give better clarity on package version changes and be reflected in the git history.

Usage

Pulling the image:

docker pull sykescottages/base:latest

Running a container:

docker run -it sykescottages/base:latest

Building from this image simply reference it as part of your Dockerfile:

FROM sykescottages/base:latest

# ... Your configuration

Tagging

Please ensure that every modification to Dockerfile is appropriately tagged using SemVer e.g. 1.0.0 or 2.0.14

Testing

Testing is done in the form of a SUT container which is run by the Docker Hub (see Automated repository tests for more information) and runs a simple shell test set in run_tests.sh.

Contributions

Contributions are welcome, but please adhere to the CONTRIBUTION.MD. Also, if you could ensure that there are tests with every modification of the Dockerfile to verify that your changes work.