Skip to content

Builds a Loc-OS Base Container Image with buildah, wget and shell scripting

License

Notifications You must be signed in to change notification settings

linuxeroagrio/loc-os-23-base-container-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

loc-os-23-base-container-image

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.

Podman Run loc-os

Why?

  • 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.

Build With

made-with-bash

Dependencies

  • debootstrap
  • dpkg
  • buildah
  • wget
  • A container runtime like podman or docker

Installation

Build From Source

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

Create the Image

On Fedora >= 39

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

Use the pre-builded image

Pull the image

Podman

$ podman pull quay.io/linuxeroagrio/loc-os:23

Docker

$ docker pull quay.io/linuxeroagrio/loc-os:23

Create a container

Podman

$ podman run -ti --rm quay.io/linuxeroagrio/loc-os:23

Docker

$ docker run -ti quay.io/linuxeroagrio/loc-os:23

References

Licence

GPL v3

About

Builds a Loc-OS Base Container Image with buildah, wget and shell scripting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages