Syndication Icon
Published March 28, 2021 Updated October 21, 2021
Docker Alpine Base Icon

Docker Alpine Base

Git Badge
Circle CI Status

Provides a base Alpine Linux Docker image with a minimal set of tooling. Great for being used as a foundational image for building on top of like, for example, the Docker Alpine Ruby image.

Features

  • Installs CA Certificates.

  • Installs Bash.

  • Installs Curl.

  • Installs GnuPG.

  • Installs and configures Git (including default branch).

  • Installs OpenSSL.

  • Installs OpenSSH.

  • Installs and configures Vim as default editor.

  • Sets xterm as default terminal.

Requirements

Setup

To set up the project, run:

git clone https://github.com/bkuhlmann/docker-alpine-base.git
cd docker-alpine-base
git checkout 0.4.4

Usage

All versions of this image can be found on Docker Hub. The image can be pulled as follows:

docker pull bkuhlmann/alpine-base:latest  # <= Pull latest version.
docker pull bkuhlmann/alpine-base:0.4.4   # <= Pull specific version.

You can also build on top of this image via your Dockerfile:

FROM bkuhlmann/alpine-base:latest  # <= Latest version.
FROM bkuhlmann/alpine-base:0.4.4   # <= Specific version.

Development

To contribute, run:

git clone https://github.com/bkuhlmann/docker-alpine-base.git
cd docker-alpine-base

To build, run:

bin/build

To use the console, run:

bin/console

To release a new version (i.e. 1.2.3), run:

bin/release 1.2.3

Releasing without specifying a version will default to tagging the image as the latest image. Best practice is to release both the specific tag and update the latest tag as well. Example:

bin/release
bin/release 1.2.3

Tests

To test, run:

bin/console
bash --version
curl --version
git --version
gpg --version
openssl version
ssh -V
vim --version

Versioning

Read Semantic Versioning for details. Briefly, it means:

  • Major (X.y.z) - Incremented for any backwards incompatible public API changes.

  • Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.

  • Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.

Code of Conduct

Read Code of Conduct for details.

Contributions

Read Contributions for details.

License

Read License for details.

History

Read Changes for details.

Credits

Engineered by Brooke Kuhlmann.