Add fipsctl to Docker test harness builds

Include fipsctl binary in both static and chaos test harness
Dockerfiles, build scripts, and gitignores alongside the existing
fips binary.
This commit is contained in:
Johnathan Corgan
2026-02-24 18:18:22 +00:00
parent 58664c7c77
commit 27da3c0bbf
6 changed files with 17 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
fips
fipsctl
generated-configs
__pycache__
sim-results

View File

@@ -24,8 +24,8 @@ RUN printf '%s\n' \
'no-resolv' \
>> /etc/dnsmasq.conf
COPY fips /usr/local/bin/
RUN chmod +x /usr/local/bin/fips
COPY fips fipsctl /usr/local/bin/
RUN chmod +x /usr/local/bin/fips /usr/local/bin/fipsctl
# Static web page served via Python HTTP server
RUN printf 'Fuck IPs!\n' > /root/index.html

View File

@@ -35,14 +35,16 @@ if [ "$UNAME_S" = "Darwin" ]; then
echo "Building FIPS for Linux (release) using cargo-zigbuild..."
cargo zigbuild --release --target "$CARGO_TARGET" --manifest-path="$PROJECT_ROOT/Cargo.toml"
echo "Copying binary to docker context..."
echo "Copying binaries to docker context..."
cp "$PROJECT_ROOT/target/$CARGO_TARGET/release/fips" "$CHAOS_DIR/fips"
cp "$PROJECT_ROOT/target/$CARGO_TARGET/release/fipsctl" "$CHAOS_DIR/fipsctl"
else
echo "Building FIPS (release)..."
cargo build --release --manifest-path="$PROJECT_ROOT/Cargo.toml"
echo "Copying binary to docker context..."
echo "Copying binaries to docker context..."
cp "$PROJECT_ROOT/target/release/fips" "$CHAOS_DIR/fips"
cp "$PROJECT_ROOT/target/release/fipsctl" "$CHAOS_DIR/fipsctl"
fi
echo "Done. Binary at $CHAOS_DIR/fips"
echo "Done. Binaries at $CHAOS_DIR/{fips,fipsctl}"

View File

@@ -1,2 +1,3 @@
fips
fipsctl
generated-configs

View File

@@ -24,8 +24,8 @@ RUN printf '%s\n' \
'no-resolv' \
>> /etc/dnsmasq.conf
COPY fips /usr/local/bin/
RUN chmod +x /usr/local/bin/fips
COPY fips fipsctl /usr/local/bin/
RUN chmod +x /usr/local/bin/fips /usr/local/bin/fipsctl
# Static web page served via Python HTTP server
RUN printf 'Fuck IPs!\n' > /root/index.html

View File

@@ -49,18 +49,20 @@ if [ "$UNAME_S" = "Darwin" ]; then
echo "Building FIPS for Linux (release) using cargo-zigbuild..."
cargo zigbuild --release --target "$CARGO_TARGET" --manifest-path="$PROJECT_ROOT/Cargo.toml"
echo "Copying binary to docker context..."
echo "Copying binaries to docker context..."
cp "$PROJECT_ROOT/target/$CARGO_TARGET/release/fips" "$DOCKER_DIR/fips"
cp "$PROJECT_ROOT/target/$CARGO_TARGET/release/fipsctl" "$DOCKER_DIR/fipsctl"
else
# Native Linux build
echo "Building FIPS (release)..."
cargo build --release --manifest-path="$PROJECT_ROOT/Cargo.toml"
echo "Copying binary to docker context..."
echo "Copying binaries to docker context..."
cp "$PROJECT_ROOT/target/release/fips" "$DOCKER_DIR/fips"
cp "$PROJECT_ROOT/target/release/fipsctl" "$DOCKER_DIR/fipsctl"
fi
echo "Done. Binary at $DOCKER_DIR/fips"
echo "Done. Binaries at $DOCKER_DIR/{fips,fipsctl}"
echo ""
echo "Generating node configurations from templates..."
"$SCRIPT_DIR/generate-configs.sh" "$TOPOLOGY" $MESH_NAME