We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71a7d58 + 40ae488 commit 361b8ffCopy full SHA for 361b8ff
.buildkite/setup_al2.sh
@@ -53,4 +53,17 @@ cat << EOF > $runtime_config_path
53
EOF
54
55
cp ./runtime/firecracker-runc-config.json.example $dir/config.json
56
-cp ./_submodules/runc/runc $bin_path/runc
+
57
+# runc uses /run/runc directory by default. Since our Amazon Linux 2 tests on
58
+# BuildKite don't use Docker, sharing the directory across multiple test
59
+# runs causes a race condition.
60
+#
61
+# This wrapper script gives runc /run/runc-$unique_id instead to avoid
62
+# the race condition.
63
+cp ./_submodules/runc/runc "$bin_path/runc.real"
64
+cat > "$bin_path/runc" <<EOF
65
+#! /bin/bash
66
+set -euo pipefail
67
+"$bin_path/runc.real" --root "/run/runc-$unique_id" "\$@"
68
+EOF
69
+chmod +x "$bin_path/runc"
0 commit comments