Skip to content

Commit

Permalink
chore: add ubuntu 24.04 image to the foundry
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Gershman <[email protected]>
  • Loading branch information
romange committed Mar 1, 2024
1 parent 91150fb commit d06f7e0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ main ]
workflow_dispatch:

permissions:
permissions:
packages: write

jobs:
Expand All @@ -25,21 +25,24 @@ jobs:
- container: "ubuntu-dev:22"
file: u22.04-dev.Dockerfile
- container: "ubuntu-dev:23.10"
file: "u23.10-dev.Dockerfile"
file: u23.10-dev.Dockerfile
- container: "fedora:30"
file: "fedora30-dev.Dockerfile"
file: fedora30-dev.Dockerfile
- container: "centos-dev:7"
file: "centos7-dev.Dockerfile"
file: centos7-dev.Dockerfile
- container: "ubuntu-dev:24"
file: u24.04-dev.Dockerfile

steps:
- name: checkout
uses: actions/checkout@v3

# https://github.com/docker/setup-qemu-action
-
-
name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
with:
with:
platforms: arm64,amd64
-
name: Available platforms
Expand All @@ -55,8 +58,8 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

-
name: Build
-
name: Build
uses: docker/build-push-action@v4
with:
context: .
Expand Down
2 changes: 1 addition & 1 deletion get_mold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

cd /tmp
ARCH=`uname -m`
MOLD_VER=2.3.3
MOLD_VER=2.4.1
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
Expand Down
2 changes: 1 addition & 1 deletion u22.04-dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY ./get_mold.sh /tmp/
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 libzstd-dev \
gcc-11 g++-11 libboost-context-dev libxml2-dev zip ccache libzstd-dev \
debhelper moreutils pip jq lsof lcov libflatbuffers-dev \
&& rm -rf /var/lib/apt/lists/*

Expand Down
15 changes: 15 additions & 0 deletions u24.04-dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ubuntu:24.04

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 \
libboost-context-dev libxml2-dev zip ccache \
debhelper moreutils pip jq lsof lcov libflatbuffers-dev \
&& rm -rf /var/lib/apt/lists/*

RUN /tmp/get_mold.sh

0 comments on commit d06f7e0

Please sign in to comment.