This repository helps to build a loc-os 23 Operating System Base Container Image Using Buildah.
Based on the instructions in https://gitlab.com/loc-os_linux/debian12-to-loc-os23 git repo.
- Create a container image from scratch using buildah.
- To demonstrate the capability of buildah to create images via CLI.
- Because the official container image for loc-os does not exists in any public Container Registry.
debootstrap
dpkg
buildah
wget
- A container runtime like
podman
ordocker
Clone this git repository
$ git clone https://github.com/linuxeroagrio/loc-os-23-base-container-image.git
Change to work directory
$ cd loc-os-23-base-container-image
Run bin/loc-os-23-container-base-image.fedora.sh
script
$ bin/loc-os-23-container-base-image.fedora.sh
Unfortunately in this moment it's not possible to confirm the installation of sysvinit
lpkg
package at the command call. You need to type Y
or y
and press Enter
key to confirm the update of SysV init package.
Instalando sysvinit-3.08
--2023-12-15 00:25:20-- https://gitlab.com/loc-os_linux/lpkgbuild/-//raw/main/64/sysvinit-3.08.tar.gz
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 308 Permanent Redirect
Location: https://gitlab.com/loc-os_linux/lpkgbuild/-/raw/main/64/sysvinit-3.08.tar.gz [following]
--2023-12-15 00:25:21-- https://gitlab.com/loc-os_linux/lpkgbuild/-/raw/main/64/sysvinit-3.08.tar.gz
Reusing existing connection to gitlab.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 276480 (270K) [application/octet-stream]
Saving to: '/tmp/sysvinit-3.08.tar.gz'
sysvinit-3.08.tar.gz 100%[========================================================================================================================================>] 270.00K --.-KB/s in 0.04s
2023-12-15 00:25:21 (7.47 MB/s) - '/tmp/sysvinit-3.08.tar.gz' saved [276480/276480]
sysvinit-3.08/
sysvinit-3.08/sysvinit-3.08.tar.xz
sysvinit-3.08/install.sh
Estás a punto de compilar SysV init 3.08, deseas continuar? (y/n): y
Pull the image
$ podman pull quay.io/linuxeroagrio/loc-os:23
$ docker pull quay.io/linuxeroagrio/loc-os:23
$ podman run -ti --rm quay.io/linuxeroagrio/loc-os:23
$ docker run -ti quay.io/linuxeroagrio/loc-os:23