Skip to content

alvistack/docker-almalinux

Repository files navigation

Docker Image Packaging for AlmaLinux

AlviStack

GitLab pipeline status GitHub tag GitHub license Docker Pulls

AlmaLinux OS is an open-source, community-driven Linux operating system that fills the gap left by the discontinuation of the CentOS Linux stable release. AlmaLinux OS is an Enterprise Linux distro, binary compatible with RHEL®, and guided and built by the community.

As a standalone, completely free OS, AlmaLinux OS enjoys $1M in annual sponsorship from CloudLinux Inc. and support from more than 25 other sponsors. Ongoing development efforts are governed by the members of the community.

Learn more about AlmaLinux: https://almalinux.org/

Supported Tags and Respective Packer Template Links

Overview

This Docker container makes it easy to get an instance of SSHD up and running with AlmaLinux.

Based on Official AlmaLinux Docker Image with some minor hack:

  • Packaging by Packer Docker builder and Ansible provisioner in single layer
  • Handle ENTRYPOINT with catatonit
  • Handle CMD with SSHD

Quick Start

Start SSHD:

# Pull latest image
docker pull alvistack/almalinux-8

# Run as detach
docker run \
    -itd \
    --name almalinux \
    --publish 2222:22 \
    alvistack/almalinux-8

Success. SSHD is now available on port 2222.

Because this container DIDN'T handle the generation of root password, so you should set it up manually with pwgen by:

# Generate password with pwgen
PASSWORD=$(docker exec -i almalinux pwgen -cnyB1); echo $PASSWORD

# Inject the generated password
echo "root:$PASSWORD" | docker exec -i almalinux chpasswd

Alternatively, you could inject your own SSH public key into container's authorized_keys by:

# Inject your own SSH public key
(docker exec -i almalinux sh -c "cat >> /root/.ssh/authorized_keys") < ~/.ssh/id_rsa.pub

Now you could SSH to it as normal:

ssh root@localhost -p 2222

Versioning

YYYYMMDD.Y.Z

Release tags could be find from GitHub Release of this repository. Thus using these tags will ensure you are running the most up to date stable version of this image.

YYYYMMDD.0.0

Version tags ended with .0.0 are rolling release rebuild by GitLab pipeline in weekly basis. Thus using these tags will ensure you are running the latest packages provided by the base image project.

License

Author Information