scaleway-image-archlinux/Dockerfile

86 lines
1.5 KiB
Docker
Raw Normal View History

2015-04-07 10:17:01 +02:00
## -*- docker-image-name: "armbuild/scw-distrib-archlinux:latest" -*-
FROM armbuild/archlinux-disk:2014-12-02
2015-04-07 10:17:01 +02:00
MAINTAINER Scaleway <opensource@scaleway.com> (@scaleway)
# Environment
2015-04-07 10:17:01 +02:00
ENV SCW_BASE_IMAGE armbuild/scw-archlinux:2014-12-02
# Force openssl upgrade first (bad symbol issue)
RUN pacman -Sy --noconfirm --force openssl
# Install packages
RUN pacman -Sy --noconfirm \
bash-completion \
bc \
binutils \
cronie \
curl \
dhcpcd \
2015-01-30 17:39:34 +01:00
dnsutils \
fakeroot \
file \
htop \
iptables \
less \
2015-01-30 15:02:54 +01:00
localepurge \
lsb-release \
man \
mg \
nano \
nbd \
ntp \
openbsd-netcat \
openssh \
rsync \
rsyslog \
screen \
socat \
sudo \
2015-01-30 14:40:13 +01:00
tmux \
vim \
2015-01-30 14:40:13 +01:00
wget
# Locales
RUN sed -e s/^\#en_US.UTF-8/en_US.UTF-8/ -i /etc/locale.gen \
&& locale-gen
# 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
ADD ./patches/etc/ /etc/
ADD ./patches/usr/ /usr/
# 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
# Remove root password
RUN passwd -d root
# Cleanup
2015-01-30 16:29:08 +01:00
RUN pacman-db-upgrade \
&& pacman -Rns linux-armv7 --noconfirm \
&& pacman -Sc --noconfirm \
&& rm -rf /var/cache/pacman/pkg \
&& localepurge-config && localepurge \
&& pacman-db-upgrade