-
Notifications
You must be signed in to change notification settings - Fork 38
Add boringcrypto support #415
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
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a2ee1c6
boringcrypto things
braydonk 8ff7ca7
done
braydonk 1c3a49b
merge and regen
braydonk 2c25b94
change container in default templates to be less specific about the d…
braydonk be81038
address review comments
braydonk ad2528b
Produce validation errors if manually requesting incompatible settings
braydonk 9356fab
force collector_cgo to be manually set
braydonk 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
72 changes: 72 additions & 0 deletions
72
cmd/distrogen/testdata/generator/boringcrypto/golden/.goreleaser.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| version: 2 | ||
| project_name: opentelemetry-operations-collector | ||
|
|
||
| snapshot: | ||
| version_template: 0.121.0 | ||
|
|
||
| env: | ||
| - LD_FLAGS=-s -w | ||
| - CGO_ENABLED=1 | ||
| - BUILD_FLAGS=-trimpath | ||
| - GOWORK=off | ||
|
|
||
| builds: | ||
| - id: otelcol-basic-linux | ||
| goos: | ||
| - linux | ||
| goarch: | ||
| - amd64 | ||
| - arm64 | ||
| binary: otelcol-basic | ||
| dir: _build | ||
| ldflags: | ||
| - "-s -w" | ||
| flags: | ||
| - "-trimpath" | ||
| - "-buildvcs=false" | ||
|
|
||
| - id: otelcol-basic-windows | ||
| goos: | ||
| - windows | ||
| goarch: | ||
| - amd64 | ||
| binary: otelcol-basic | ||
| dir: _build | ||
| ldflags: | ||
| - "-s -w" | ||
| flags: | ||
| - "-trimpath" | ||
| - "-buildvcs=false" | ||
|
|
||
| nfpms: | ||
| - package_name: otelcol-basic | ||
| contents: | ||
| - src: otelcol-basic.service | ||
| dst: /lib/systemd/system/otelcol-basic.service | ||
| - src: otelcol-basic.conf | ||
| dst: /etc/otelcol-basic/otelcol-basic.conf | ||
| type: config|noreplace | ||
| file_info: | ||
| mode: 0644 | ||
| - src: config.yaml | ||
| dst: /etc/otelcol-basic/config.yaml | ||
| type: config|noreplace | ||
| file_info: | ||
| mode: 0644 | ||
| scripts: | ||
| preinstall: preinstall.sh | ||
| postinstall: postinstall.sh | ||
| preremove: preremove.sh | ||
| overrides: | ||
| rpm: | ||
| dependencies: | ||
| - /bin/sh | ||
| ids: | ||
| - otelcol-basic-linux | ||
| formats: | ||
| - deb | ||
| - rpm | ||
| umask: 0 | ||
| maintainer: Google Cloud Platform <[email protected]> # something better than this | ||
| description: A basic distribution of the OpenTelemetry Collector | ||
| license: Apache 2.0 |
15 changes: 15 additions & 0 deletions
15
cmd/distrogen/testdata/generator/boringcrypto/golden/Dockerfile
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # NOTE: File generated by distrogen. Do not manually edit. | ||
|
|
||
| FROM alpine:3.19 as certs | ||
| RUN apk --update add ca-certificates | ||
|
|
||
| FROM scratch | ||
|
|
||
| ARG USER_UID=10001 | ||
| USER ${USER_UID} | ||
|
|
||
| COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
| COPY --chmod=755 otelcol-basic /otelcol-basic | ||
| COPY config.yaml /etc/otelcol-basic/config.yaml | ||
| ENTRYPOINT ["/otelcol-basic", "--feature-gates=exporter.googlemanagedprometheus.intToDouble"] | ||
| CMD ["--config=/etc/otelcol-basic/config.yaml"] |
47 changes: 47 additions & 0 deletions
47
cmd/distrogen/testdata/generator/boringcrypto/golden/Dockerfile.build
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # NOTE: File generated by distrogen. Do not manually edit. | ||
|
|
||
| # This Dockerfile provides the same resulting container as | ||
| # the main Dockerfile, but it also performs the build within | ||
| # an earlier layer. The resulting container will be scratch and | ||
| # should be functionally identical. | ||
|
|
||
| # By default, this container should have the root of your project | ||
| # where all distributions are container. The generated version will | ||
| # use the respective distribution as the working directory for builds. | ||
| # The whole project is copied to the container in case you provide | ||
| # any custom components contained within your full project structure. | ||
| ARG PROJECT_ROOT="." | ||
| ARG CERT_CONTAINER="alpine:3" | ||
| ARG BUILD_CONTAINER="debian" | ||
| FROM --platform=${BUILDPLATFORM:-linux/amd64} ${BUILD_CONTAINER} AS build | ||
|
|
||
| RUN apt-get update && apt-get install -y make curl build-essential | ||
|
|
||
| ARG PROJECT_ROOT | ||
| COPY ${PROJECT_ROOT} / | ||
|
|
||
| WORKDIR /basic-distro | ||
|
|
||
| ARG BUILDARCH | ||
| ARG BUILDOS | ||
| ARG TARGETOS | ||
| ARG TARGETARCH | ||
| RUN if [ "${TARGETARCH}" = "arm64" ] && [ "${BUILDARCH}" != "arm64" ]; then \ | ||
| apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross; \ | ||
| CC=aarch64-linux-gnu-gcc; \ | ||
| fi && \ | ||
| CC=${CC} make build | ||
| FROM ${CERT_CONTAINER} AS certs | ||
| RUN apk --update add ca-certificates | ||
|
|
||
| FROM scratch | ||
|
|
||
| ARG USER_UID=10001 | ||
| USER ${USER_UID} | ||
|
|
||
| COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
| COPY --from=build --chmod=755 /basic-distro/otelcol-basic /otelcol-basic | ||
| COPY --from=build --chmod=644 /basic-distro/config.yaml /etc/otelcol-basic/config.yaml | ||
|
|
||
| ENTRYPOINT ["/otelcol-basic", "--feature-gates=exporter.googlemanagedprometheus.intToDouble"] | ||
| CMD ["--config=/etc/otelcol-basic/config.yaml"] |
23 changes: 23 additions & 0 deletions
23
cmd/distrogen/testdata/generator/boringcrypto/golden/Dockerfile.goreleaser_releaser
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # NOTE: File generated by distrogen. Do not manually edit. | ||
|
|
||
| # This Dockerfile provides the same resulting container as | ||
| # the main Dockerfile, but it also performs the build within | ||
| # an earlier layer. The resulting container will be scratch and | ||
| # should be functionally identical. | ||
|
|
||
| # By default, this container should have the root of your project | ||
| # where all distributions are container. The generated version will | ||
| # use the respective distribution as the working directory for builds. | ||
| # The whole project is copied to the container in case you provide | ||
| # any custom components contained within your full project structure. | ||
| ARG PROJECT_ROOT="." | ||
| ARG BUILD_CONTAINER="debian" | ||
| FROM ${BUILD_CONTAINER} AS build | ||
|
|
||
| RUN apt-get update && apt-get install -y make curl git build-essential | ||
|
|
||
| ARG PROJECT_ROOT | ||
| COPY ${PROJECT_ROOT} / | ||
|
|
||
| WORKDIR /basic-distro | ||
| RUN make goreleaser-release |
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.
Uh oh!
There was an error while loading. Please reload this page.