This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Bala Raman <srbala@gmail.com>
- Loading branch information
Showing
4 changed files
with
230 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# AlmaLinux 8 kickstart file for x86_64 base Docker image | ||
|
||
# install | ||
url --url https://repo.almalinux.org/almalinux/8/BaseOS/x86_64/os/ | ||
|
||
lang en_US.UTF-8 | ||
keyboard us | ||
timezone --nontp --utc UTC | ||
|
||
network --activate --bootproto=dhcp --device=link --onboot=on | ||
firewall --disabled | ||
selinux --disabled | ||
|
||
bootloader --disable | ||
zerombr | ||
clearpart --all --initlabel | ||
autopart --fstype=ext4 --type=plain --nohome --noboot --noswap | ||
|
||
rootpw --iscrypted --lock almalinux | ||
|
||
shutdown | ||
|
||
%packages --ignoremissing --excludedocs --instLangs=en --nocore --excludeWeakdeps | ||
almalinux-release | ||
bash | ||
binutils | ||
coreutils-single | ||
dnf | ||
findutils | ||
glibc-minimal-langpack | ||
hostname | ||
iputils | ||
less | ||
rootfiles | ||
tar | ||
vim-minimal | ||
yum | ||
xz | ||
|
||
-brotli | ||
-crypto-policies-scripts | ||
-firewalld | ||
-diffutils | ||
-elfutils-debuginfod-client | ||
-gettext* | ||
-glibc-langpack-en | ||
-gnupg2-smime | ||
-grub\* | ||
-iptables | ||
-kernel | ||
-libevent | ||
-openssl | ||
-os-prober | ||
-open-vm-tools | ||
-pinentry | ||
-platform-python-pip | ||
-shared-mime-info | ||
-trousers | ||
-unbound-libs | ||
-xkeyboard-config | ||
%end | ||
|
||
|
||
%post --erroronfail --log=/root/anaconda-post.log | ||
# generate build time file for compatibility with CentOS | ||
/bin/date +%Y%m%d_%H%M > /etc/BUILDTIME | ||
|
||
# set DNF infra variable to container for compatibility with CentOS | ||
echo 'container' > /etc/dnf/vars/infra | ||
|
||
# import AlmaLinux PGP key | ||
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux | ||
|
||
# install only en_US.UTF-8 locale files, see | ||
# https://fedoraproject.org/wiki/Changes/Glibc_locale_subpackaging for details | ||
echo '%_install_langs en_US.UTF-8' > /etc/rpm/macros.image-language-conf | ||
|
||
# force each container to have a unique machine-id | ||
> /etc/machine-id | ||
|
||
# create tmp directories because there is no tmpfs support in Docker | ||
umount /run | ||
systemd-tmpfiles --create --boot | ||
|
||
# disable login prompt and mounts | ||
systemctl mask console-getty.service \ | ||
dev-hugepages.mount \ | ||
getty.target \ | ||
systemd-logind.service \ | ||
sys-fs-fuse-connections.mount \ | ||
systemd-remount-fs.service | ||
|
||
# remove unnecessary files | ||
rm -f /var/lib/dnf/history.* \ | ||
/run/nologin | ||
rm -fr /var/log/* \ | ||
/tmp/* /tmp/.* \ | ||
/boot || true | ||
%end |