Skip to content
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

Add Operator docker image build utilities #21

Merged
merged 15 commits into from
Aug 19, 2024
Merged

Conversation

jj22ee
Copy link
Contributor

@jj22ee jj22ee commented Aug 19, 2024

Issue #, if available:
Add Docker file to provide build of ADOT JS in a docker image, similarly to how OTel does it for NodeJS:
https://github.com/open-telemetry/opentelemetry-operator/tree/main/autoinstrumentation/nodejs

Description of changes:

  • Add autoinstrumentation.ts file to mimic upstream's autoinstrumentation.ts, but also point to our ADOT JS instrumentation.
  • Add Docker file to build docker image similarly to upstream's Docker file, but uses scratch image and the source code from this GitHub repository (since the package is not available in NPM).
  • Add package.json specifically for the docker image build to mimic upstreams package.json that is also specific for their docker image build. Most of the dependencies (ADOT JS's dependencies) can be removed once ADOT JS is uploaded to NPM. After that, we can just have a singular dependency on ADOT JS from NPM.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jj22ee jj22ee requested a review from pxaws August 19, 2024 21:50
@jj22ee jj22ee requested a review from a team as a code owner August 19, 2024 21:50
@pxaws pxaws merged commit 2279da7 into main Aug 19, 2024
6 checks passed
@pxaws pxaws deleted the operator-docker-image branch August 19, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants