Skip to content

Commit 373c32f

Browse files
committed
docker: Bump the base images to Ubuntu 22.04
This raises the versions of bundled software, providing e.g. autoconf 2.71, which is needed for Python 3.12. As the releases are built (without a surrounding extra container) on GitHub Actions these days, we don't need to hold the docker images back to an old version for the sake of compatibility; instead, updating to a newer version provides more modern tools for users of the docker image.
1 parent 4dbd39e commit 373c32f

File tree

5 files changed

+4
-46
lines changed

5 files changed

+4
-46
lines changed

Dockerfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
RUN apt-get update -qq && \
44
DEBIAN_FRONTEND="noninteractive" apt-get install -qqy --no-install-recommends \
@@ -8,16 +8,6 @@ RUN apt-get update -qq && \
88
apt-get clean -y && \
99
rm -rf /var/lib/apt/lists/*
1010

11-
# Manually install a newer version of CMake; this is needed since building
12-
# LLVM requires CMake 3.20, while Ubuntu 20.04 ships with 3.16.3. If
13-
# updating to a newer distribution, this can be dropped.
14-
RUN cd /opt && \
15-
curl -LO https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-Linux-$(uname -m).tar.gz && \
16-
tar -zxf cmake-*.tar.gz && \
17-
rm cmake-*.tar.gz && \
18-
mv cmake-* cmake
19-
ENV PATH=/opt/cmake/bin:$PATH
20-
2111

2212
RUN git config --global user.name "LLVM MinGW" && \
2313
git config --global user.email root@localhost

Dockerfile.cross

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ RUN apt-get update -qq && \
1616
apt-get clean -y && \
1717
rm -rf /var/lib/apt/lists/*
1818

19-
# Install Autoconf 2.71. Ubuntu 20.04 comes with Autoconf 2.69, but
20-
# libffi 3.4.3 or newer requres Autoconf 2.71.
21-
RUN curl -LO https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.xz && \
22-
tar -Jxvf autoconf-*.tar.xz && \
23-
rm autoconf-*.tar.xz && \
24-
cd autoconf-* && \
25-
./configure --prefix=/opt/autotools && \
26-
make -j$(nproc) install && \
27-
rm -rf autoconf-*
28-
29-
ENV PATH=/opt/autotools/bin:$PATH
30-
3119
COPY build-python.sh .
3220

3321
ARG WITH_PYTHON

Dockerfile.dev

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
RUN apt-get update -qq && \
44
DEBIAN_FRONTEND="noninteractive" apt-get install -qqy --no-install-recommends \
@@ -8,16 +8,6 @@ RUN apt-get update -qq && \
88
apt-get clean -y && \
99
rm -rf /var/lib/apt/lists/*
1010

11-
# Manually install a newer version of CMake; this is needed since building
12-
# LLVM requires CMake 3.20, while Ubuntu 20.04 ships with 3.16.3. If
13-
# updating to a newer distribution, this can be dropped.
14-
RUN cd /opt && \
15-
curl -LO https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-Linux-$(uname -m).tar.gz && \
16-
tar -zxf cmake-*.tar.gz && \
17-
rm cmake-*.tar.gz && \
18-
mv cmake-* cmake
19-
ENV PATH=/opt/cmake/bin:$PATH
20-
2111

2212
RUN git config --global user.name "LLVM MinGW" && \
2313
git config --global user.email root@localhost

Dockerfile.toolchain

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
RUN apt-get update -qq && \
44
DEBIAN_FRONTEND="noninteractive" apt-get install -qqy --no-install-recommends \
@@ -8,16 +8,6 @@ RUN apt-get update -qq && \
88
apt-get clean -y && \
99
rm -rf /var/lib/apt/lists/*
1010

11-
# Manually install a newer version of CMake; this is needed since building
12-
# LLVM requires CMake 3.20, while Ubuntu 20.04 ships with 3.16.3. If
13-
# updating to a newer distribution, this can be dropped.
14-
RUN cd /opt && \
15-
curl -LO https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-Linux-$(uname -m).tar.gz && \
16-
tar -zxf cmake-*.tar.gz && \
17-
rm cmake-*.tar.gz && \
18-
mv cmake-* cmake
19-
ENV PATH=/opt/cmake/bin:$PATH
20-
2111

2212
RUN git config --global user.name "LLVM MinGW" && \
2313
git config --global user.email root@localhost

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929

3030
time docker build -f Dockerfile . -t mstorsjo/llvm-mingw:latest -t mstorsjo/llvm-mingw:$TAG
3131

32-
DISTRO=ubuntu-20.04-$(uname -m)
32+
DISTRO=ubuntu-22.04-$(uname -m)
3333
docker run --rm mstorsjo/llvm-mingw:latest sh -c "cd /opt && mv llvm-mingw llvm-mingw-$TAG-ucrt-$DISTRO && tar -Jcvf - --format=ustar --numeric-owner --owner=0 --group=0 llvm-mingw-$TAG-ucrt-$DISTRO" > llvm-mingw-$TAG-ucrt-$DISTRO.tar.xz
3434

3535
if [ -n "$NATIVEONLY" ]; then

0 commit comments

Comments
 (0)