Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions opa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ WORKDIR /opa

RUN <<EOF
# Unfortunately, we need to create a dummy Git repository to allow cyclonedx-gomod to determine the version of OPA
git init
git add go.mod
git config --global user.email "[email protected]"
git config --global user.name "dummy"
git commit -m "dummy"
git tag "${PRODUCT}"
git init && \
git config user.email "[email protected]" && \
git config user.name "Fake commiter" && \
git commit --allow-empty --message "Fake commit, so that we can create a tag" &&
git tag "v${PRODUCT}"
go build -o opa -buildmode=exe
~/go/bin/cyclonedx-gomod app -json -output-version 1.5 -output "opa_${PRODUCT}.cdx.json" -packages -files
EOF
Expand Down
11 changes: 5 additions & 6 deletions statsd_exporter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ curl "https://repo.stackable.tech/repository/packages/statsd_exporter/statsd_exp
cd "statsd_exporter-${PRODUCT}" || exit

# Unfortunately, we need to create a dummy Git repository to allow cyclonedx-gomod to determine the version of statsd_exporter
git init
git add go.mod
git config --global user.email "[email protected]"
git config --global user.name "dummy"
git commit -m "dummy"
git tag "${PRODUCT}"
git init && \
git config user.email "[email protected]" && \
git config user.name "Fake commiter" && \
git commit --allow-empty --message "Fake commit, so that we can create a tag" &&
git tag "v${PRODUCT}"
go build -o ../statsd_exporter
$GOPATH/bin/cyclonedx-gomod app -json -output-version 1.5 -output ../statsd_exporter-${PRODUCT}.cdx.json -packages -files
)
Expand Down