2015-04-07 10:17:01 +02:00
|
|
|
## -*- docker-image-name: "armbuild/scw-distrib-archlinux:latest" -*-
|
2014-12-18 11:03:01 +01:00
|
|
|
FROM armbuild/archlinux-disk:2014-12-02
|
2015-04-07 10:17:01 +02:00
|
|
|
MAINTAINER Scaleway <opensource@scaleway.com> (@scaleway)
|
2014-12-18 11:03:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Environment
|
2015-04-07 10:17:01 +02:00
|
|
|
ENV SCW_BASE_IMAGE armbuild/scw-archlinux:2014-12-02
|
2014-12-18 11:03:01 +01:00
|
|
|
|
|
|
|
|
2015-06-19 16:43:08 +02:00
|
|
|
# Force openssl upgrade first (bad symbol issue)
|
|
|
|
RUN pacman -Sy --noconfirm --force openssl
|
|
|
|
|
|
|
|
|
2014-12-18 11:03:01 +01:00
|
|
|
# Install packages
|
|
|
|
RUN pacman -Sy --noconfirm \
|
2015-01-30 15:40:29 +01:00
|
|
|
bash-completion \
|
2015-02-11 14:45:03 +01:00
|
|
|
bc \
|
|
|
|
binutils \
|
2014-12-18 11:03:01 +01:00
|
|
|
cronie \
|
|
|
|
curl \
|
|
|
|
dhcpcd \
|
2015-01-30 17:39:34 +01:00
|
|
|
dnsutils \
|
2015-02-11 14:45:03 +01:00
|
|
|
fakeroot \
|
2015-01-30 15:40:29 +01:00
|
|
|
file \
|
|
|
|
htop \
|
2014-12-18 11:03:01 +01:00
|
|
|
iptables \
|
|
|
|
less \
|
2015-01-30 15:02:54 +01:00
|
|
|
localepurge \
|
2015-01-30 15:40:29 +01:00
|
|
|
lsb-release \
|
2014-12-18 11:03:01 +01:00
|
|
|
man \
|
|
|
|
mg \
|
|
|
|
nano \
|
|
|
|
nbd \
|
|
|
|
ntp \
|
2015-01-30 15:40:29 +01:00
|
|
|
openbsd-netcat \
|
2014-12-18 11:03:01 +01:00
|
|
|
openssh \
|
2015-01-30 15:40:29 +01:00
|
|
|
rsync \
|
|
|
|
rsyslog \
|
|
|
|
screen \
|
|
|
|
socat \
|
|
|
|
sudo \
|
2015-01-30 14:40:13 +01:00
|
|
|
tmux \
|
2014-12-18 11:03:01 +01:00
|
|
|
vim \
|
2015-01-30 14:40:13 +01:00
|
|
|
wget
|
2014-12-18 11:03:01 +01:00
|
|
|
|
|
|
|
|
2015-01-30 14:49:31 +01:00
|
|
|
# Locales
|
|
|
|
RUN sed -e s/^\#en_US.UTF-8/en_US.UTF-8/ -i /etc/locale.gen \
|
|
|
|
&& locale-gen
|
|
|
|
|
|
|
|
|
2014-12-18 11:03:01 +01:00
|
|
|
# Patch rootfs
|
2015-04-17 16:45:25 +02:00
|
|
|
RUN curl -Lkq http://j.mp/scw-skeleton | FLAVORS=common,docker-based,systemd bash -e
|
2014-12-18 11:03:01 +01:00
|
|
|
ADD ./patches/etc/ /etc/
|
2014-12-18 18:59:04 +01:00
|
|
|
ADD ./patches/usr/ /usr/
|
2014-12-18 11:03:01 +01:00
|
|
|
|
|
|
|
|
2015-06-19 16:43:08 +02:00
|
|
|
# Systemd
|
|
|
|
RUN systemctl enable \
|
|
|
|
oc-fetch-ssh-keys \
|
|
|
|
oc-sync-kernel-modules \
|
|
|
|
oc-generate-ssh-keys \
|
|
|
|
oc-gen-machine-id.service \
|
|
|
|
ntpdate.service \
|
|
|
|
sshd.service \
|
|
|
|
serial-getty@ttyS0.service \
|
|
|
|
&& systemctl mask \
|
|
|
|
getty@tty1.service
|
|
|
|
|
|
|
|
|
|
|
|
# packages upgrade
|
|
|
|
RUN pacman --noconfirm -Suy
|
2014-12-19 11:03:16 +01:00
|
|
|
|
|
|
|
|
2015-02-11 11:38:54 +01:00
|
|
|
# Remove root password
|
|
|
|
RUN passwd -d root
|
|
|
|
|
|
|
|
|
2015-01-30 15:57:30 +01:00
|
|
|
# Cleanup
|
2015-01-30 16:29:08 +01:00
|
|
|
RUN pacman-db-upgrade \
|
|
|
|
&& pacman -Rns linux-armv7 --noconfirm \
|
2015-01-30 15:57:30 +01:00
|
|
|
&& pacman -Sc --noconfirm \
|
|
|
|
&& rm -rf /var/cache/pacman/pkg \
|
2015-01-30 17:39:01 +01:00
|
|
|
&& localepurge-config && localepurge \
|
|
|
|
&& pacman-db-upgrade
|