-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70517cc
commit cf68415
Showing
2 changed files
with
10 additions
and
8 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 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 |
---|---|---|
@@ -1,25 +1,27 @@ | ||
ARG GO_VERSION=1.21.10 | ||
ARG GO_VERSION=1.23.4 | ||
|
||
FROM ghcr.io/loong64/golang:${GO_VERSION}-trixie AS builder | ||
|
||
ARG RUNC_VERSION=v1.1.14 | ||
ARG CONTAINERD_VERSION=v1.7.18 | ||
ARG DOCKER_VERSION=v27.0.1 | ||
ARG RUNC_VERSION=v1.2.2 | ||
ARG CONTAINERD_VERSION=v1.7.24 | ||
ARG DOCKER_VERSION=v27.4.0 | ||
ARG TINI_VERSION=v0.19.0 | ||
|
||
RUN set -ex; \ | ||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \ | ||
apt-get update; \ | ||
apt-get install -y wget g++ cmake make pkg-config git libseccomp-dev libbtrfs-dev libseccomp-dev libbtrfs-dev libdevmapper-dev; \ | ||
apt-get install -y wget g++ cmake make pkg-config git libseccomp-dev libbtrfs-dev libdevmapper-dev; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /go/src/github.com/opencontainers | ||
RUN set -ex; \ | ||
git clone -b ${RUNC_VERSION} https://github.com/opencontainers/runc --depth=1 | ||
|
||
WORKDIR /go/src/github.com/opencontainers/runc | ||
RUN sed -i 's@|| s390x@|| s390x || loong64@g' libcontainer/system/syscall_linux_64.go; \ | ||
sed -i 's@riscv64 s390x@riscv64 s390x loong64@g' libcontainer/system/syscall_linux_64.go; \ | ||
RUN set -ex; \ | ||
curl -sSL "https://git.altlinux.org/tasks/archive/done/_352/361175/gears/100/git?p=git;a=blob_plain;f=.gear/runc-alt-libcontainer-loongarch64-support.patch;hb=ff0eabdba6265ddb4aa20d39f4a0ade5e59790f4" | git apply; \ | ||
go get -u github.com/seccomp/[email protected]; \ | ||
go mod vendor; \ | ||
sed -i 's@--dirty @@g' Makefile; \ | ||
make static; \ | ||
./runc -v | ||
|