Linux: Fix reproducible build for ubuntu 20

This commit is contained in:
ayumi-signal 2024-08-29 18:13:05 -07:00 committed by GitHub
parent b2c3b1f43e
commit fc9b27f212
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -1,4 +1,4 @@
FROM ubuntu:jammy-20230624@sha256:b060fffe8e1561c9c3e6dea6db487b900100fc26830b9ea2ec966c151ab4c020
FROM ubuntu:focal-20240530@sha256:fa17826afb526a9fc7250e0fbcbfd18d03fe7a54849472f86879d8bf562c629e
# Allows package builders like FPM (used for creating the .deb package
# on linux) to make their build timestamps determistic. Otherwise, a fresh
@ -30,7 +30,11 @@ RUN apt install -oAcquire::https::Verify-Peer=false -y ca-certificates
# Back to normal, verification back on
RUN apt update
RUN apt install -y git curl g++ gcc make python3 tar
RUN apt install -y git curl g++ g++-10 gcc gcc-10 make python3 tar
# On Ubuntu 20 GCC 9 is the default but we need 10 to build
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \
--slave /usr/bin/g++ g++ /usr/bin/g++-10
# ---
# Install nvm

View file

@ -1,3 +1,3 @@
deb http://mirror.signalusers.org/ubuntu/1687461439/ jammy main universe
deb http://mirror.signalusers.org/ubuntu/1687461439/ jammy-security main universe
deb http://mirror.signalusers.org/ubuntu/1687461439/ jammy-updates main universe
deb [snapshot=20240829T060900Z] http://archive.ubuntu.com/ubuntu/ focal main universe
deb [snapshot=20240829T060900Z] http://archive.ubuntu.com/ubuntu/ focal-updates main universe
deb [snapshot=20240829T060900Z] http://security.ubuntu.com/ubuntu focal-security main universe