Skip to content

Commit faf5811

Browse files
authored
Fix failing docker build - arm64 (#1541)
* fix docker github build (Segmentation fault (core dumped) dpkg: error processing package libc-bin (--configure)) * fix docker github build (Segmentation fault (core dumped) dpkg: error processing package libc-bin (--configure)) * update gh qemu actions * run on ubuntu 24.04 * try driver-opts: image=moby/buildkit:v0.11.0 * split docker images for amd64 and arm64 * Revert "split docker images for amd64 and arm64" This reverts commit 609617f. * clean libc-bin
1 parent 44e7e09 commit faf5811

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/workflows/docker-ubuntu-branch-image.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
submodules: 'recursive'
2121

2222
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v3
23+
uses: docker/setup-qemu-action@v3.5.0
2424

2525
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v3
26+
uses: docker/[email protected]
27+
with:
28+
driver-opts: image=moby/buildkit:v0.11.0
2729

2830
- name: Login to GitHub Container Registry
2931
uses: docker/login-action@v3
@@ -32,6 +34,17 @@ jobs:
3234
username: ${{ github.repository_owner }}
3335
password: ${{ secrets.GITHUB_TOKEN }}
3436

37+
- name: Build and export to Docker
38+
uses: docker/build-push-action@v6
39+
with:
40+
load: true
41+
context: ./
42+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
43+
44+
- name: Test
45+
run: |
46+
docker run --rm -e "TEST=1" ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
47+
3548
- name: Get tag as branch name
3649
id: tag
3750
run: |

.github/workflows/docker-ubuntu-image.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
submodules: 'recursive'
2121

2222
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v3
24-
23+
uses: docker/setup-qemu-action@v3.5.0
24+
2525
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v3
26+
uses: docker/setup-buildx-action@v3.10.0
2727

2828
- name: Login to GitHub Container Registry
2929
uses: docker/login-action@v3

Dockerfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
FROM ubuntu:22.04 AS builder
2+
ARG DEBIAN_FRONTEND=noninteractive
23
RUN apt-get update && \
3-
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake clang openssl libssl-dev zlib1g-dev gperf wget git ninja-build libsodium-dev libmicrohttpd-dev liblz4-dev pkg-config autoconf automake libtool libjemalloc-dev lsb-release software-properties-common gnupg
4+
rm /var/lib/dpkg/info/libc-bin.* && \
5+
apt-get clean && \
6+
apt-get update && \
7+
apt install libc-bin && \
8+
apt-get install -y build-essential cmake clang openssl libssl-dev zlib1g-dev gperf wget git \
9+
ninja-build libsodium-dev libmicrohttpd-dev liblz4-dev pkg-config autoconf automake libtool \
10+
libjemalloc-dev lsb-release software-properties-common gnupg
411

512
RUN wget https://apt.llvm.org/llvm.sh && \
613
chmod +x llvm.sh && \
@@ -25,6 +32,7 @@ RUN mkdir build && \
2532
blockchain-explorer emulator tonlibjson http-proxy adnl-proxy
2633

2734
FROM ubuntu:22.04
35+
ARG DEBIAN_FRONTEND=noninteractive
2836
RUN apt-get update && \
2937
apt-get install -y wget curl libatomic1 openssl libsodium-dev libmicrohttpd-dev liblz4-dev libjemalloc-dev htop \
3038
net-tools netcat iptraf-ng jq tcpdump pv plzip && \

0 commit comments

Comments
 (0)