Skip to content

Commit

Permalink
add aarch64 base for layer build
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Jan 21, 2025
1 parent 193d12d commit 369443c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/layer-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
file: layer-build/Dockerfile
file: layer-build/x86_64.Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/metalbear-co/ci-layer-build:latest
ghcr.io/metalbear-co/ci-layer-build:latest
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: layer-build/aarch64.Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/metalbear-co/ci-layer-build-aarch64:latest
13 changes: 13 additions & 0 deletions layer-build/aarch64.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Dockerfile used for building mirrord-layer for x64 with very old libc
# this to support centos7 or Amazon Linux 2.

FROM ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main-centos

# This fails to compile but tbh shouldn't really change so just stick with old always T_T
RUN yum update -y && \
yum install centos-release-scl -y && \
yum install llvm-toolset-7 -y

ENV LIBCLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \
LIBCLANG_STATIC_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \
CLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/bin/clang
File renamed without changes.

0 comments on commit 369443c

Please sign in to comment.