Skip to content

Commit

Permalink
work around mac security tooling
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Porter <[email protected]>
  • Loading branch information
portertech committed Dec 19, 2023
1 parent bc13c7c commit f623218
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion otelcolbuilder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ build-debug: ensure-correct-builder-version

.PHONY: build-fips
build-fips:
docker volume create build-fips
docker build --platform linux/amd64 -t otelcol-sumo-builder-fips -f ./build-fips/Dockerfile ./build-fips
docker run -it --platform linux/amd64 --rm -v $(PWD)/../:/root/workspace -w /root/workspace otelcol-sumo-builder-fips
docker run -it --platform linux/amd64 --rm -v build-fips:/root/build -v $(PWD)/../:/root/workspace -w /root/workspace otelcol-sumo-builder-fips

.PHONY: generate-sources
generate-sources:
Expand Down
6 changes: 5 additions & 1 deletion otelcolbuilder/build-fips/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env sh

cp -r /root/workspace /root/build
# Mac security suite is interferring, can't build in bind mount workspace
cp -r /root/workspace/* /root/build/
cd /root/build

# Install builder
Expand All @@ -12,3 +13,6 @@ make install-builder
# Build otelcol-sumo
make otelcol-sumo-linux-fips_amd64
make otelcol-sumo-linux-fips_arm64

# Copy produced binaries to bind mount workspace
cp cmd/otelcol-sumo-fips-linux_* /root/workspace/otelcolbuilder/cmd/

0 comments on commit f623218

Please sign in to comment.