diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5e30426 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM scratch +MAINTAINER Adam Miller +ADD fedora-23-20160104.tar.xz / diff --git a/fedora-23-20160104.tar.xz b/fedora-23-20160104.tar.xz new file mode 100644 index 0000000..c34d1c1 Binary files /dev/null and b/fedora-23-20160104.tar.xz differ diff --git a/koji-f23-build-12399493-base.ks b/koji-f23-build-12399493-base.ks new file mode 100644 index 0000000..933327c --- /dev/null +++ b/koji-f23-build-12399493-base.ks @@ -0,0 +1,76 @@ +#version=DEVEL +# Keyboard layouts +keyboard 'us' +# Root password +rootpw --iscrypted --lock locked +# Use network installation +url --url="http://infrastructure.fedoraproject.org/pub/alt/releases/23/Cloud/x86_64/os/" +user --name=none +repo --name="koji-override-0" --baseurl=http://infrastructure.fedoraproject.org/pub/alt/releases/23/Cloud/x86_64/os/ +repo --name="koji-override-1" --baseurl=http://infrastructure.fedoraproject.org/pub/fedora/linux/updates/23/x86_64/ +# Network information +network --bootproto=dhcp --device=link --activate +# Reboot after installation +reboot +# System timezone +timezone Etc/UTC --isUtc --nontp +cmdline + +# System bootloader configuration +bootloader --disabled +# Clear the Master Boot Record +zerombr +# Partition clearing information +clearpart --all +# Disk partitioning information +part / --fstype="ext4" --size=3000 + +%post --logfile /tmp/anaconda-post.log +# Set the language rpm nodocs transaction flag persistently in the +# image yum.conf and rpm macros + +# remove the user anaconda forces us to make +userdel -r none + +LANG="en_US" +echo "%_install_lang $LANG" > /etc/rpm/macros.image-language-conf + +awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \ + < /etc/yum.conf > /etc/yum.conf.new +mv /etc/yum.conf.new /etc/yum.conf + +echo "Import RPM GPG key" +releasever=$(rpm -q --qf '%{version}\n' fedora-release) +basearch=$(uname -i) +rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch + +rm -f /usr/lib/locale/locale-archive + +#Setup locale properly +localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 + +rm -rf /var/cache/yum/* +rm -f /tmp/ks-script* + +#Make it easier for systemd to run in Docker container +cp /usr/lib/systemd/system/dbus.service /etc/systemd/system/ +sed -i 's/OOMScoreAdjust=-900//' /etc/systemd/system/dbus.service + +#Mask mount units and getty service so that we don't get login prompt +systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service + +rm -f /etc/machine-id + +%end + +%packages --excludedocs --nocore --instLangs=en +bash +dnf +dnf-yum +fedora-release +rootfiles +sssd-client +vim-minimal +-kernel + +%end