-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (30 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
## -*- docker-image-name: "armbuild/scw-distrib-centos:latest" -*-
FROM armbuild/centos-img:merlinthp-2015-03-16
MAINTAINER Scaleway <[email protected]> (@scaleway)
# Environment
ENV SCW_BASE_IMAGE armbuild/centos-img:merlinthp-2015-03-16
# Remove big packages
# kernel, drivers, firmwares
RUN yum erase -y kernel* *-drivers *-firmware
# graphics
RUN yum erase -y GConf2 gtk* gnome-* fedora-logos xkeyboard-config xorg-* gdk* qt* libX* *fonts* plymouth*
# services
RUN yum erase -y nfs* libnfsidmap wpa_supplicant ModemManager usbutils samba-* cups* iso-codes poppler* words mozjs17
# rpmorphan | grep ^lib
RUN yum erase -y libfontenc libgusb libipa_hbac libmbim libqmi libreport-plugin-bugzilla libreport-plugin-reportuploader libxkbfile libmodman libmng alsa* dracut* avahi* postfix*
RUN rm -f /root/anaconda-ks.cfg
# Remove root password
RUN passwd -d root
# Patch rootfs for docker-based builds
RUN curl -Lkq http://j.mp/scw-skeleton | FLAVORS=common,docker-based,systemd bash -e
RUN /usr/local/sbin/builder-enter
# Patch rootfs
ADD ./patches/etc/ /etc/
# Enable Scaleway services
RUN systemctl enable \
oc-generate-ssh-keys \
oc-fetch-ssh-keys \
oc-add-extra-volumes \
oc-sync-kernel-modules
# Clean rootfs from image-builder
RUN /usr/local/sbin/builder-leave