-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yutaro Hayakawa <[email protected]>
- Loading branch information
1 parent
b121b71
commit 997ec03
Showing
12 changed files
with
1,082 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
hostvrf | ||
hostvrf-cni |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM golang:1.23.4-bookworm | ||
|
||
# Install dependencies | ||
RUN apt update && apt install -y iproute2 | ||
RUN go install github.com/containernetworking/cni/[email protected] | ||
RUN go install github.com/containernetworking/plugins/plugins/ipam/[email protected] | ||
|
||
# Create CNI path | ||
RUN mkdir -p /etc/cni/net.d | ||
|
||
# Create testing network ns and sleep process bound to it. This is for | ||
# accessing testing NS later from host through /proc/<sleep's PID in host PID | ||
# ns>/ns/net. For the moment, this was the easiest way to execute test code | ||
# within the nested network namespace. | ||
ENTRYPOINT ["sh", "-c", "ip netns add testing && ip netns exec testing sleep 1d"] |
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
Oops, something went wrong.