All Projects → AlmaLinux → docker-images

AlmaLinux / docker-images

Licence: MIT License
AlmaLinux Docker image sources and build tools.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to docker-images

developer-workstation-setup-script
Post-install script for Fedora and RHEL 8 clones to create your ultimate development environment
Stars: ✭ 69 (+60.47%)
Mutual labels:  almalinux
packer-kvm
Create VM templates with Packer for usage with Libvirt/KVM virtualization : CentOS 7, CentOS 8, CentOS 8 Stream, Alma Linux, Rocky Linux, Bionic (Ubuntu 1804), Focal (Ubuntu 2004), Debian 11 (stable), Kali Linux, Fedora 33 and Fedora 34.
Stars: ✭ 99 (+130.23%)
Mutual labels:  almalinux
ansible-role-docker-ce
Ansible role to install Docker CE on AlmaLinux/Rocky/CentOS/Fedora/RHEL(Redhat)/Ubuntu/Debian/Mint/Raspbian
Stars: ✭ 73 (+69.77%)
Mutual labels:  almalinux
insaneworks-packer-template
CentOS 7-8 8Stream / AlmaLinux 8 / FreeBSD 12 - 13 x64 + VirtualBox / VMWare for Packer Template + FreeBSD 13 / AlmaLinux 9 + Parallels
Stars: ✭ 38 (-11.63%)
Mutual labels:  almalinux
wsl-distrod
Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
Stars: ✭ 1,637 (+3706.98%)
Mutual labels:  almalinux
distrobox
Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
Stars: ✭ 4,371 (+10065.12%)
Mutual labels:  almalinux
Openvpn Install
OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
Stars: ✭ 14,199 (+32920.93%)
Mutual labels:  almalinux

AlmaLinux Docker Images

This project contains sources and tools for building Official AlmaLinux Docker images.

Build Requirements

Docker images are created using AlmaLinux rootfs images. These images can be created from customized kickstart sources.

Using an AlmaLinux system

You need an AlmaLinux system with following RPM packages installed to run the build.sh script to create rootfs file.

  • anaconda-tui
  • lorax
  • subscription-manager (make sure the rhsm service is running, see rhbz#1872902)
  • jq
./build.sh -h
Generates an AlmaLinux OS rootfs and Dockerfile
Usage: build.sh [OPTION]...
  -h        show this message and exit
  -o        output directory path. Default is "./result"
  -t        build type. Possible options are base, default, init, micro and minimal

Use command below to create default docker files for almalinux:8container image

./build.sh -o default -t default

Use command below to create minimal docker files for almalinux:minimalcontainer image

./build.sh -o minimal -t minimal

Use command below to create base docker files for almalinux:basecontainer image

./build.sh -o base -t base

Use command below to create micro docker files for almalinux:microcontainer image

./build.sh -o micro -t micro

Use command below to create init docker files for almalinux:initcontainer image

./build.sh -o init -t init

Use command below to create all type of docker images

for type in default minimal base micro init; do ./build.sh -o $type -t $type; done

Known issues

You may see the following message in the output:

2021-02-05 20:28:10,554: Error in atexit._run_exitfuncs:
2021-02-05 20:28:10,555: Traceback (most recent call last):
2021-02-05 20:28:10,555: File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
2021-02-05 20:28:10,557: return self._handle_method_error(error)
2021-02-05 20:28:10,559: File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
2021-02-05 20:28:10,560: raise exception from None
2021-02-05 20:28:10,562: dasbus.error.DBusError: umount of /mnt/sysimage/run failed (32)

This happens because we need to unmount /run in the kickstart file. It doesn't affect the result, see rhbz#1904008 for details.

Using Docker

You need a system with docker installed for this approach. This uses almalinux/ks2rootfs build utility using docker.

Use command below to create default docker files

docker run --rm --privileged -v "$PWD:/build:z" \
    -e KICKSTART_FILE=kickstarts/almalinux-8-default.ks \
    -e IMAGE_NAME=almalinux-8-docker-default.x86_64.tar.gz \
    -e OUTPUT_DIR=default \
    -e BUILD_TYPE=default \
    almalinux/ks2rootfs

Use command below to create base docker files

docker run --rm --privileged -v "$PWD:/build:z" \
    -e KICKSTART_FILE=kickstarts/almalinux-8-base.ks \
    -e IMAGE_NAME=almalinux-8-docker-base.x86_64.tar.gz \
    -e OUTPUT_DIR=base \
    -e BUILD_TYPE=base \
    almalinux/ks2rootfs

Use command below to create init docker files

docker run --rm --privileged -v "$PWD:/build:z" \
    -e KICKSTART_FILE=kickstarts/almalinux-8-init.ks \
    -e IMAGE_NAME=almalinux-8-docker-init.x86_64.tar.gz \
    -e OUTPUT_DIR=init \
    -e BUILD_TYPE=init \
    almalinux/ks2rootfs

Please make note docker utility cannot be used to generate micro and minimal packages. Work in progress to resolve it.

References

License

Licensed under the MIT license, see the LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].