Skip to content

Commit

Permalink
update fedora 23 image for docker-library/official-images#1235
Browse files Browse the repository at this point in the history
  • Loading branch information
maxamillion committed Jan 4, 2016
0 parents commit a079b07
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM scratch
MAINTAINER Adam Miller <maxamillion@fedoraproject.org>
ADD fedora-23-20160104.tar.xz /
Binary file added fedora-23-20160104.tar.xz
Binary file not shown.
76 changes: 76 additions & 0 deletions koji-f23-build-12399493-base.ks
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a079b07

Please sign in to comment.