scaleway-image-archlinux/Dockerfile

80 lines
1.4 KiB
Docker
Raw Normal View History

2016-04-28 17:51:00 +02:00
FROM base/archlinux
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
# Update the keyring
RUN pacman -Sy --noconfirm archlinux-keyring
# 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 \
2015-01-30 17:39:34 +01:00
dnsutils \
fakeroot \
htop \
iptables \
lsb-release \
mg \
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 \
2016-04-28 17:52:21 +02:00
scw-fetch-ssh-keys \
scw-sync-kernel-modules \
scw-generate-ssh-keys \
scw-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 \
2016-04-28 17:51:00 +02:00
&& pacman -Rns linux --noconfirm \
&& pacman -Sc --noconfirm \
&& rm -rf /var/cache/pacman/pkg \
&& pacman-db-upgrade