Skip to content

Instantly share code, notes, and snippets.

View gmrandazzo's full-sized avatar
💥
Creativity mode: ON

Giuseppe Marco Randazzo gmrandazzo

💥
Creativity mode: ON
View GitHub Profile
@gmrandazzo
gmrandazzo / centos7_make_docker_image.bash
Last active November 21, 2023 22:36
CentOS7 Docker Image from Debian 12
#!/usr/bin/env bash
#
# Tested with altarch - armv7l
# If you want to build for other arch please change the
# mirror.centos.org/altarch/ with the appropriate architecture
#
if [ "$(id -u)" -ne 0 ]; then echo "Please run as root." >&2; exit 1; fi
apt-get install rpm dnf -y
export centos_root='/opt/centos_image/rootfs'
mkdir -p $centos_root