scaleway-image-archlinux/Dockerfile

77 lines
1.7 KiB
Docker
Raw Normal View History

2014-12-18 11:30:58 +01:00
## -*- docker-image-name: "armbuild/ocs-distrib-archlinux:latest" -*-
FROM armbuild/archlinux-disk:2014-12-02
2014-12-21 10:23:46 +01:00
MAINTAINER Online Labs <opensource@ocs.online.net> (@online_en)
# Environment
ENV OCS_BASE_IMAGE armbuild/ocs-archlinux:2014-12-02
# Install packages
RUN pacman -Sy --noconfirm \
cronie \
curl \
dhcpcd \
iptables \
less \
man \
mg \
nano \
nbd \
ntp \
openssh \
vim \
wget \
networkmanager
2015-01-30 14:32:27 +01:00
# Cleanup
2015-01-30 14:36:28 +01:00
RUN pacman -Rns linux-armv7 --noconfirm \
&& pacman -Sc --noconfirm
2015-01-30 14:32:27 +01:00
2014-12-18 11:50:02 +01:00
# Locales
RUN sed -e s/^\#en_US.UTF-8/en_US.UTF-8/ -i /etc/locale.gen \
&& locale-gen
# xnbd-client
RUN mkdir /tmp/build-xnbd \
&& cd /tmp/build-xnbd \
&& wget https://bitbucket.org/hirofuchi/xnbd/downloads/xnbd-0.3.0.tar.bz2 -O xnbd.tar.bz2 \
&& tar -xf xnbd.tar.bz2 \
&& cd xnbd-* \
&& pacman -Sy --noconfirm gcc automake pkg-config make \
&& cd /tmp/build-xnbd/xnbd-* \
&& ./configure --prefix=/usr/local \
&& make -j4 \
&& make install \
&& pacman -R --noconfirm gcc automake pkg-config make \
&& cd / \
&& rm -rf /tmp/build-xnbd /tmp/xnbd.tar.bz2
2014-12-18 11:50:02 +01:00
# Systemd
RUN systemctl disable getty@tty1.service \
&& systemctl disable systemd-networkd.service \
2014-12-19 11:03:16 +01:00
&& systemctl enable NetworkManager-wait-online.service \
&& systemctl enable serial-getty@ttyS0.service \
&& systemctl enable sshd.service \
&& systemctl enable NetworkManager \
&& systemctl enable ntpdate
# Patch rootfs
RUN wget -qO - http://j.mp/ocs-scripts | bash
ADD ./patches/etc/ /etc/
ADD ./patches/usr/ /usr/
2014-12-19 11:03:16 +01:00
RUN systemctl enable oc-ssh-keys \
&& systemctl enable oc-add-extra-volumes \
&& systemctl enable oc-sync-kernel-modules
2014-12-18 11:50:02 +01:00
# packages upgrade
RUN pacman --noconfirm -Suy