Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add aarch64 base for layer build #40

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading