Building SVR4 and dumb-init Devuan images

spoiler: here’s the image!

and here’s the SVR4 flavor!

Evaluate the best HTTPS mirror

let’s rely on ping response, not bandwidth nor traceroute for once

wget https://pkgmaster.devuan.org/mirror_list.txt
grep ^FQDN mirror_list.txt  | awk '{print $NF}' > mirrors
for mirror in `cat mirrors`; do ping -c3 $mirror; done; unset mirror

for FRANCE, best mirrors are – in order of preference

pkgmaster.devuan.org
sledjhamr.org
mirror.vpgrp.io

Setup

grab the latest release / tag

# those are out-of-date
# https://gitlab.com/paddy-hack/devuan - registry.gitlab.com/paddy-hack/devuan
# https://hub.docker.com/r/vpgrp/devuan/tags

# this one is maintained
# https://hub.docker.com/r/dyne/devuan/tags

docker pull dyne/devuan:chimaera

dumb-init

mkdir -p ~/images/devuan/
cd ~/images/devuan/
wget https://pub.nethence.com/bin/docker/devuan/Dockerfile.txt
wget https://pub.nethence.com/bin/docker/devuan/install.bash.txt
    for f in *.txt; do mv $f ${f%\.txt}; done; unset f
chmod +x install.bash
time nice docker build -t pbraun9/devuan ./
# 6m16.011s on xc

SVR4

mkdir -p ~/images/devuan-svr4/
cd ~/images/devuan-svr4/
wget https://pub.nethence.com/bin/docker/devuan-svr4/Dockerfile.txt
wget https://pub.nethence.com/bin/docker/devuan-svr4/install.bash.txt
    for f in *.txt; do mv $f ${f%\.txt}; done; unset f
chmod +x install.bash
time nice docker build -t pbraun9/devuan-svr4 ./
# 7m7.371s on xc

Acceptance

works for both SVR4 and dumb-init

docker rm -f devuan
docker run -d --name devuan --hostname devuan --workdir /root pbraun9/devuan
docker logs devuan
docker exec -ti devuan /bin/bash

docker rm -f devuan-svr4
docker run -d --name devuan-svr4 --hostname devuan-svr4 --workdir /root pbraun9/devuan-svr4
docker logs devuan-svr4
docker exec -ti devuan-svr4 /bin/bash

echo $DEBIAN_FRONTEND
    echo $container
    echo $HOME
echo $TERM # you get the interactive one from bash.bashrc

ps auxfw
dpkg -l | grep exim # nope
dpkg -l | grep vim # nope
    tail -30 /etc/bash.bashrc
    echo $MAKEFLAGS
service uuidd status
^D

docker rm -f devuan
docker rm -f devuan-svr4

see operations

Results on Docker Hub

docker login -u pbraun9
docker push pbraun9/devuan
docker push pbraun9/devuan-svr4

Devuan bare-system image with dumb-init https://hub.docker.com/r/pbraun9/devuan

Devuan bare-system image with an SVR4 init https://hub.docker.com/r/pbraun9/devuan-svr4

TODO

Resources

happy hacking ;^) https://devuan.unetresgrossebite.com/README.txt

Devuan Release Archive Mirrors https://devuan.unetresgrossebite.com/MIRRORS.txt

Package Repositories https://www.devuan.org/os/packages

Is there a way to suppress “update-alternatives: warning: skip creation” warnings when building a Docker image? https://stackoverflow.com/questions/56757169/is-there-a-way-to-suppress-update-alternatives-warning-skip-creation-warning –> nice Dockerfile there


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun