forked from alibaba/loongcollector
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rm spdlog replace implementation && support to build image in ar…
…m && fix file location error (alibaba#1927)
- Loading branch information
1 parent
8551208
commit 8479976
Showing
4 changed files
with
15 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,20 @@ MAINTAINER TomYu [email protected] | |
|
||
ENV container docker | ||
|
||
RUN curl -L -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo | ||
|
||
ARG TARGETPLATFORM | ||
|
||
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ | ||
echo "Building for AMD64"; \ | ||
curl -L -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo; \ | ||
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ | ||
echo "Building for ARM64"; \ | ||
curl -L -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-altarch-7.repo; \ | ||
else \ | ||
echo "Unsupported platform: $TARGETPLATFORM"; \ | ||
exit 1; \ | ||
fi | ||
|
||
|
||
RUN yum update -y && yum upgrade -y && yum -y clean all && rm -fr /var/cache && rm -rf /core.* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters