-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/ocu 184 allow binaries and containers to be built for architectures different than amd #343
Closed
andream16
wants to merge
4
commits into
main
from
feature/ocu-184-allow-binaries-to-be-built-for-architectures-different-than-amd-v2
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
eea4040
Allow building containers and binaries by specifying their platform f…
andream16 e5a7905
Allow customising components that define Dockerfiles and Makefiles wi…
andream16 c65ff6d
Formatting pdf Dockerfile.
andream16 2deb9e3
Extending docs with sections about custom container platform and OS/A…
andream16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM golang:latest | ||
|
||
WORKDIR /playwright | ||
RUN go mod init github.com/ocurity/pdf-consumer &&\ | ||
go get -u github.com/playwright-community/playwright-go &&\ | ||
go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps | ||
RUN go mod init github.com/ocurity/pdf-consumer && \ | ||
go get -u github.com/playwright-community/playwright-go && \ | ||
go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps | ||
|
||
ENV PATH="${PATH}:/go/pkg/mod/github.com/playwright-community" | ||
COPY components/consumers/pdf/pdf /playwright/pdf | ||
COPY components/consumers/pdf/default.html /playwright/default.html | ||
ENTRYPOINT ["/playwright/pdf"] | ||
ENTRYPOINT ["/playwright/pdf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
ARG PRODUCER_AGGREGATOR_BASE_IMAGE | ||
FROM ${PRODUCER_AGGREGATOR_BASE_IMAGE} | ||
|
||
COPY ./components/producers/aggregator/aggregator-parser /app/components/producers/aggregator/tagger | ||
ARG GOOS=linux | ||
ARG GOARCH=amd64 | ||
|
||
COPY ./components/producers/aggregator/${GOOS}/${GOARCH}/aggregator-parser /app/components/producers/aggregator/tagger | ||
|
||
ENTRYPOINT ["/app/components/producers/aggregator/tagger"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
FROM alpine:3.20 | ||
|
||
ARG GOOS=linux | ||
ARG GOARCH=amd64 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
COPY ./components/producers/github-code-scanning/github-code-scanning-parser /app/components/producers/github-code-scanning/github-code-scanning-parser | ||
COPY ./components/producers/github-code-scanning/${GOOS}/${GOARCH}/github-code-scanning-parser /app/components/producers/github-code-scanning/github-code-scanning-parser | ||
|
||
ENTRYPOINT ["/app/components/producers/github-code-scanning/github-code-scanning-parser"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
ARG BASE_MIGRATION_IMAGE | ||
|
||
FROM ${BASE_MIGRATION_IMAGE:-scratch} | ||
|
||
ARG GOOS=linux | ||
ARG GOARCH=amd64 | ||
|
||
LABEL org.opencontainers.image.description "Draconctl is a command line tool for interacting with Dracon, you can find documentation for it at github.com/ocurity/dracon" | ||
|
||
COPY ./bin/cmd/draconctl /bin/draconctl | ||
COPY ./bin/cmd/${GOOS}/${GOARCH}/draconctl /bin/draconctl | ||
COPY ./pkg/enrichment/migrations /etc/dracon/migrations/enrichment | ||
|
||
ENTRYPOINT [ "/bin/draconctl" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as far as I can see this is the only point where the CONTAINER_OS_ARCH is used. can we replace it with just
$(GOOS)/$(GOARCH)