-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update fedora 23 image for docker-library/official-images#1235
- Loading branch information
0 parents
commit a079b07
Showing
3 changed files
with
79 additions
and
0 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
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 not shown.
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,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 |