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

CI: enable bypass4netns #343

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions init-host/init-host.root.d/install-nerdctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ mkdir -p /root/nerdctl.tmp
[ "$(sha256sum SHA256SUMS | awk '{print $1}')" = "${SHASHA}" ]
sha256sum --check --ignore-missing SHA256SUMS
tar Cxzvvf /usr/local nerdctl-full-${VERSION}-linux-${arch}.tar.gz

# <TMP>
# https://github.com/containerd/nerdctl/pull/3724
(
snap install --classic go
git clone https://github.com/apostasie/nerdctl.git
cd nerdctl
git checkout 32ab7472f3e535c3317e6522205abe64e2864227
make
make install
)
# </TMP>
)
rm -rf /root/nerdctl.tmp

Expand Down
8 changes: 1 addition & 7 deletions init-host/init-host.rootless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ case "${CONTAINER_ENGINE}" in
"nerdctl")
containerd-rootless-setuptool.sh install
containerd-rootless-setuptool.sh install-buildkit-containerd

# FIXME: bypass4netns stops working after rebooting the host
# > $ cat ~/.local/share/nerdctl/1935db59/containers/default/320813e981deea8eb35e422fc12ae2ce31897edf9528e20e92dd55f33f35906d/bypass4netns.log
# > time="2024-12-03T05:22:16Z" level=info msg="LogFilePath: /home/suda.linux/.local/share/nerdctl/1935db59/containers/default/320813e981deea8eb35e422fc12ae2ce31897edf9528e20e92dd55f33f35906d/bypass4netns.log"
#> time="2024-12-03T05:22:16Z" level=fatal msg="Cannot write pid file: open /run/user/1001/bypass4netns/320813e981deea8.pid: no such file or directory"

# containerd-rootless-setuptool.sh install-bypass4netnsd
containerd-rootless-setuptool.sh install-bypass4netnsd
;;
"podman")
# pasta does not seem to work well
Expand Down