Skip to content

Commit e89a5e5

Browse files
justincormackkolyshkin
authored andcommitted
Update Dockerfiles to use Debian stretch
The main gain here is that they all use exactly the same distro; previously arm64 was using Ubuntu Xenial because Debian jessie was too old. Does not seem that we can change any of the downloaded dependencies still, as eg libseccomp is still not the version we are using. Signed-off-by: Justin Cormack <[email protected]>
1 parent c5c0702 commit e89a5e5

6 files changed

Lines changed: 48 additions & 19 deletions

File tree

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# the case. Therefore, you don't have to disable it anymore.
2424
#
2525

26-
FROM debian:jessie
26+
FROM debian:stretch
2727

2828
# allow replacing httpredir or deb mirror
2929
ARG APT_MIRROR=deb.debian.org
@@ -54,8 +54,9 @@ RUN apt-get update && apt-get install -y \
5454
libnl-3-dev \
5555
libprotobuf-c0-dev \
5656
libprotobuf-dev \
57-
libsystemd-journal-dev \
57+
libsystemd-dev \
5858
libtool \
59+
libudev-dev \
5960
mercurial \
6061
net-tools \
6162
pkg-config \
@@ -64,8 +65,10 @@ RUN apt-get update && apt-get install -y \
6465
python-dev \
6566
python-mock \
6667
python-pip \
68+
python-setuptools \
6769
python-websocket \
6870
tar \
71+
thin-provisioning-tools \
6972
vim \
7073
vim-common \
7174
xfsprogs \
@@ -85,6 +88,7 @@ RUN cd /usr/local/lvm2 \
8588
--build="$(gcc -print-multiarch)" \
8689
--enable-static_link \
8790
--enable-pkgconfig \
91+
--enable-udev_sync \
8892
&& make -C include \
8993
&& make -C libdm install_device-mapper
9094

Dockerfile.aarch64

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@
1515
# the case. Therefore, you don't have to disable it anymore.
1616
#
1717

18-
FROM aarch64/ubuntu:xenial
18+
FROM arm64v8/debian:stretch
19+
20+
# allow replacing httpredir or deb mirror
21+
ARG APT_MIRROR=deb.debian.org
22+
RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list
1923

2024
# Packaged dependencies
2125
RUN apt-get update && apt-get install -y \
2226
apparmor \
27+
apt-utils \
2328
aufs-tools \
2429
automake \
2530
bash-completion \
31+
bsdmainutils \
2632
btrfs-tools \
2733
build-essential \
2834
cmake \
@@ -32,26 +38,34 @@ RUN apt-get update && apt-get install -y \
3238
g++ \
3339
gcc \
3440
git \
41+
golang \
3542
iptables \
3643
jq \
44+
less \
3745
libapparmor-dev \
38-
libc6-dev \
3946
libcap-dev \
47+
libnl-3-dev \
48+
libprotobuf-c0-dev \
49+
libprotobuf-dev \
4050
libsystemd-dev \
41-
libyaml-dev \
51+
libtool \
52+
libudev-dev \
4253
mercurial \
4354
net-tools \
44-
parallel \
4555
pkg-config \
56+
protobuf-compiler \
57+
protobuf-c-compiler \
4658
python-dev \
4759
python-mock \
4860
python-pip \
4961
python-setuptools \
5062
python-websocket \
51-
golang-go \
52-
iproute2 \
53-
iputils-ping \
63+
tar \
64+
thin-provisioning-tools \
65+
vim \
5466
vim-common \
67+
xfsprogs \
68+
zip \
5569
--no-install-recommends
5670

5771
# Get lvm2 sources to build statically linked devmapper library
@@ -66,6 +80,7 @@ RUN cd /usr/local/lvm2 \
6680
--build="$(gcc -print-multiarch)" \
6781
--enable-static_link \
6882
--enable-pkgconfig \
83+
--enable-udev_sync \
6984
&& make -C include \
7085
&& make -C libdm install_device-mapper
7186

@@ -86,9 +101,7 @@ RUN set -x \
86101

87102
# Install Go
88103
# We don't have official binary golang 1.7.5 tarballs for ARM64, either for Go or
89-
# bootstrap, so we use golang-go (1.6) as bootstrap to build Go from source code.
90-
# We don't use the official ARMv6 released binaries as a GOROOT_BOOTSTRAP, because
91-
# not all ARM64 platforms support 32-bit mode. 32-bit mode is optional for ARMv8.
104+
# bootstrap, so we use Debian golang (1.7) as bootstrap to build Go from source code.
92105
# IMPORTANT: When updating this please note that stdlib archive/tar pkg is vendored
93106
ENV GO_VERSION 1.8.3
94107
RUN mkdir /usr/src/go && curl -fsSL https://golang.org/dl/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/src/go -xz --strip-components=1 \

Dockerfile.armhf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# the case. Therefore, you don't have to disable it anymore.
1616
#
1717

18-
FROM armhf/debian:jessie
18+
FROM arm32v7/debian:stretch
1919

2020
# allow replacing httpredir or deb mirror
2121
ARG APT_MIRROR=deb.debian.org
@@ -39,16 +39,19 @@ RUN apt-get update && apt-get install -y \
3939
net-tools \
4040
libapparmor-dev \
4141
libcap-dev \
42-
libsystemd-journal-dev \
42+
libsystemd-dev \
4343
libtool \
44+
libudev-dev \
4445
mercurial \
4546
pkg-config \
4647
python-dev \
4748
python-mock \
4849
python-pip \
50+
python-setuptools \
4951
python-websocket \
5052
xfsprogs \
5153
tar \
54+
thin-provisioning-tools \
5255
vim-common \
5356
--no-install-recommends \
5457
&& pip install awscli==1.10.15
@@ -65,6 +68,7 @@ RUN cd /usr/local/lvm2 \
6568
--build="$(gcc -print-multiarch)" \
6669
--enable-static_link \
6770
--enable-pkgconfig \
71+
--enable-udev_sync \
6872
&& make -C include \
6973
&& make -C libdm install_device-mapper
7074

Dockerfile.ppc64le

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# the case. Therefore, you don't have to disable it anymore.
1616
#
1717

18-
FROM ppc64le/debian:jessie
18+
FROM ppc64le/debian:stretch
1919

2020
# allow replacing httpredir or deb mirror
2121
ARG APT_MIRROR=deb.debian.org
@@ -40,16 +40,19 @@ RUN apt-get update && apt-get install -y \
4040
net-tools \
4141
libapparmor-dev \
4242
libcap-dev \
43-
libsystemd-journal-dev \
43+
libsystemd-dev \
4444
libtool \
45+
libudev-dev \
4546
mercurial \
4647
pkg-config \
4748
python-dev \
4849
python-mock \
4950
python-pip \
51+
python-setuptools \
5052
python-websocket \
5153
xfsprogs \
5254
tar \
55+
thin-provisioning-tools \
5356
vim-common \
5457
--no-install-recommends
5558

@@ -65,6 +68,7 @@ RUN cd /usr/local/lvm2 \
6568
--build="$(gcc -print-multiarch)" \
6669
--enable-static_link \
6770
--enable-pkgconfig \
71+
--enable-udev_sync \
6872
&& make -C include \
6973
&& make -C libdm install_device-mapper
7074

Dockerfile.s390x

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# the case. Therefore, you don't have to disable it anymore.
1616
#
1717

18-
FROM s390x/debian:jessie
18+
FROM s390x/debian:stretch
1919

2020
# Packaged dependencies
2121
RUN apt-get update && apt-get install -y \
@@ -36,16 +36,19 @@ RUN apt-get update && apt-get install -y \
3636
net-tools \
3737
libapparmor-dev \
3838
libcap-dev \
39-
libsystemd-journal-dev \
39+
libsystemd-dev \
4040
libtool \
41+
libudev-dev \
4142
mercurial \
4243
pkg-config \
4344
python-dev \
4445
python-mock \
4546
python-pip \
47+
python-setuptools \
4648
python-websocket \
4749
xfsprogs \
4850
tar \
51+
thin-provisioning-tools \
4952
vim-common \
5053
--no-install-recommends
5154

@@ -76,6 +79,7 @@ RUN cd /usr/local/lvm2 \
7679
--build="$(gcc -print-multiarch)" \
7780
--enable-static_link \
7881
--enable-pkgconfig \
82+
--enable-udev_sync \
7983
&& make -C include \
8084
&& make -C libdm install_device-mapper
8185

Dockerfile.simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# This represents the bare minimum required to build and test Docker.
77

8-
FROM debian:jessie
8+
FROM debian:stretch
99

1010
# allow replacing httpredir or deb mirror
1111
ARG APT_MIRROR=deb.debian.org

0 commit comments

Comments
 (0)