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

fix(arm64-agent): Add dependencies for arm64 #133

Merged
Merged
Changes from all commits
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
10 changes: 10 additions & 0 deletions controller/Dockerfile.controller
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ RUN go build -v -o /go/bin/retina/initretina -ldflags "-X main.version="$VERSION
# Stage: Prepare clang and tools
# Bullseye -> debian11
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/mirror/docker/library/debian:bullseye@sha256:a648e10e02af129706b1fb89e1ac9694ae3db7f2b8439aa906321e68cc281bc0 AS tools

LABEL Name=retina-tools Version=0.0.1

WORKDIR /tmp
Expand All @@ -72,6 +73,15 @@ RUN if [ "$GOARCH" = "amd64" ] ; then \
else \
# GOARCH=Arm64.
# Download clang and llvm.
# Need more dependencies for Arm64.
dpkg --add-architecture arm64; \
apt-get update; \
apt-get install -y --no-install-recommends libc6:arm64 zlib1g:arm64 libncurses5:arm64; \
apt-get install -y --no-install-recommends apt-file; \
apt-file update; \
apt-file find libstdc++.so.6; \
apt-get install -y --no-install-recommends libstdc++6:arm64; \
# Download clang and llvm.
wget -O clang+llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/clang+llvm-14.0.0-aarch64-linux-gnu.tar.xz; \
tar -C /usr/local -xJf ./clang+llvm.tar.xz --no-same-owner; \
mv /usr/local/clang+llvm-14.0.0-aarch64-linux-gnu /usr/local/clang+llvm; \
Expand Down
Loading