diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index fbfeeff..ad71253 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -24,6 +24,8 @@ jobs: file: u20.04-dev.Dockerfile - container: "ubuntu-dev:22" file: u22.04-dev.Dockerfile + - container: "ubuntu-dev:23.10" + file: "u23.10-dev.Dockerfile" - container: "fedora:30" file: "fedora30-dev.Dockerfile" steps: diff --git a/get_mold.sh b/get_mold.sh index 52bc57b..60e9e07 100755 --- a/get_mold.sh +++ b/get_mold.sh @@ -3,7 +3,7 @@ set -e cd /tmp ARCH=`uname -m` -MOLD_VER=1.2.1 +MOLD_VER=2.3.3 BASE_URL=https://github.com/rui314/mold/releases/download curl -L -s $BASE_URL/v${MOLD_VER}/mold-$MOLD_VER-$ARCH-linux.tar.gz -o mold.tgz mkdir mold diff --git a/u23.10-dev.Dockerfile b/u23.10-dev.Dockerfile new file mode 100644 index 0000000..7161191 --- /dev/null +++ b/u23.10-dev.Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:23.10 + +LABEL org.opencontainers.image.source https://github.com/romange/container-foundry + +COPY ./get_mold.sh /tmp/ + +# To avoid tzdata reconfigure +ENV DEBIAN_FRONTEND=noninteractive +RUN apt update && apt install -y autoconf-archive bison cmake curl gdb git libssl-dev \ + libunwind-dev libfl-dev ninja-build libtool \ + gcc-11 g++-11 libboost-fiber-dev libxml2-dev zip ccache \ + debhelper moreutils pip jq lsof lcov \ + && rm -rf /var/lib/apt/lists/* + +RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 40 \ + --slave /usr/bin/g++ g++ /usr/bin/g++-11 + +RUN /tmp/get_mold.sh