[Fedora-spins] [spin-kickstarts/f21] Add kickstart for Docker base image

Dennis Gilmore ausil at fedoraproject.org
Wed Jul 30 07:24:23 UTC 2014


commit 9407e29795c5104a581a4b946c8fe4486f3debe8
Author: Vaclav Pavlin <vpavlin at redhat.com>
Date:   Tue Jul 29 14:30:03 2014 +0200

    Add kickstart for Docker base image

 fedora-docker-base.ks |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/fedora-docker-base.ks b/fedora-docker-base.ks
new file mode 100644
index 0000000..9af8798
--- /dev/null
+++ b/fedora-docker-base.ks
@@ -0,0 +1,49 @@
+# This is a minimal Fedora install designed to serve as a Docker base image. 
+#
+# To keep this image minimal it only installs English language. You need to change
+# yum configuration in order to enable other languages.
+
+
+bootloader --disable
+timezone America/New_York --isUtc --nontp
+rootpw --plaintext qweqwe
+
+keyboard us
+firewall --disable
+zerombr
+clearpart --all
+part / --size 4096 --fstype ext4
+reboot
+
+%packages --excludedocs --instLangs=en --nocore
+bash
+fedora-release
+vim-minimal
+yum
+#fakesystemd #TODO: waiting for review https://bugzilla.redhat.com/show_bug.cgi?id=1118740
+-kernel
+
+
+%end
+
+%post --log=/tmp/anaconda-post.log
+# Set the language rpm nodocs transaction flag persistently in the
+# image yum.conf and rpm macros
+
+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
+rm -rf /var/cache/yum/*
+rm -f /tmp/ks-script*
+
+%end


More information about the spins mailing list