tools/docker/jammy: update to building with go-1.22

This commit is contained in:
Rudi Heitbaum 2025-02-12 04:04:18 +00:00
parent b1ac7d23d1
commit 1c36b6a998

View File

@ -22,11 +22,11 @@ RUN apt-get install -y \
wget bash bc gcc-12 sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip \ wget bash bc gcc-12 sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip \
unzip diffutils lzop make file g++-12 xfonts-utils xsltproc default-jre-headless python3 \ unzip diffutils lzop make file g++-12 xfonts-utils xsltproc default-jre-headless python3 \
libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl rdfind \ libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl rdfind \
golang-1.21-go git openssh-client rsync \ golang-1.22-go git openssh-client rsync \
--no-install-recommends \ --no-install-recommends \
&& ln -s /usr/lib/go-1.21 /usr/lib/go \ && ln -s /usr/lib/go-1.22 /usr/lib/go \
&& ln -s /usr/lib/go-1.21/bin/go /usr/bin/go \ && ln -s /usr/lib/go-1.22/bin/go /usr/bin/go \
&& ln -s /usr/lib/go-1.21/bin/gofmt /usr/bin/gofmt && ln -s /usr/lib/go-1.22/bin/gofmt /usr/bin/gofmt
RUN if [ "$(uname -m)" = "aarch64" ]; then \ RUN if [ "$(uname -m)" = "aarch64" ]; then \
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse' > /etc/apt/sources.list.d/amd64.list; \ echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse' > /etc/apt/sources.list.d/amd64.list; \