Skip to content

Commit f789634

Browse files
committed
Fix static build DNS resolving with netgo
Fixes cri-o#3612 Signed-off-by: Sascha Grunert <[email protected]>
1 parent 662ce56 commit f789634

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nix/default.nix

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ let
3737
name = "cri-o-static";
3838
buildInputs = old.buildInputs ++ (with pkgs; [ systemd ]);
3939
src = ./..;
40+
buildPhase = ''
41+
pushd go/src/github.com/cri-o/cri-o
42+
make BUILDTAGS="apparmor seccomp selinux containers_image_ostree_stub netgo" \
43+
bin/crio \
44+
bin/crio-status \
45+
bin/pinns
46+
'';
4047
EXTRA_LDFLAGS = ''-linkmode external -extldflags "-static -lm"'';
4148
dontStrip = true;
4249
# DEBUG = 1; # Uncomment this line to enable debug symbols in the binary

0 commit comments

Comments
 (0)