-
Notifications
You must be signed in to change notification settings - Fork 10
Build docker image for OTel Kubernetes operator #132
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
788f509
Build docker image for kubernetes operator
xrmx 2a54d23
distro: catch ImportError when loading instrumentors entry points
xrmx 434c282
Add renovate.json to cover chainguard updates
xrmx 931b8eb
ci: add opencontainers labels to operator docker image
xrmx d0fe268
Add sha256 to chainguard image used for build
xrmx bd0548d
operator: add README.md with some notes
xrmx b6184c8
Update .github/workflows/release.yml
xrmx 2d3364a
Update .github/workflows/release.yml
xrmx 3c786f9
Make the docker image generic
xrmx 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM docker.elastic.co/wolfi/python:3.12-dev AS build | ||
xrmx marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
ENV LANG=C.UTF-8 | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
ARG DISTRO_DIR | ||
|
||
COPY ${DISTRO_DIR} /opt/distro | ||
|
||
WORKDIR /operator-build | ||
|
||
ADD operator/requirements.txt . | ||
|
||
RUN mkdir workspace | ||
|
||
RUN pip install --no-cache-dir --target workspace /opt/distro/*.whl -r requirements.txt | ||
|
||
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:6fbf07849a440c8dca9aa7e9cb56ed3ecaa9eb40f8a4f36b39393d7b32d78ecc | ||
|
||
COPY --from=build /operator-build/workspace /autoinstrumentation | ||
|
||
RUN chmod -R go+r /autoinstrumentation |
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,22 @@ | ||
# This is a dockerfile for local testing | ||
FROM python:3.12-alpine AS build | ||
|
||
ARG DISTRO_DIR | ||
|
||
COPY ${DISTRO_DIR} /opt/distro | ||
|
||
WORKDIR /operator-build | ||
|
||
ADD operator/requirements.txt . | ||
|
||
RUN mkdir workspace | ||
|
||
RUN apk add gcc python3-dev musl-dev linux-headers | ||
|
||
RUN pip install --target workspace /opt/distro/*.whl -r requirements.txt | ||
|
||
FROM python:3.12-alpine | ||
|
||
COPY --from=build /operator-build/workspace /autoinstrumentation | ||
|
||
RUN chmod -R go+r /autoinstrumentation |
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,50 @@ | ||
opentelemetry-propagator-aws-xray==1.0.2 | ||
opentelemetry-propagator-ot-trace==0.48b0 | ||
|
||
opentelemetry-instrumentation-aio-pika==0.48b0 | ||
opentelemetry-instrumentation-aiohttp-client==0.48b0 | ||
opentelemetry-instrumentation-aiohttp-server==0.48b0 | ||
opentelemetry-instrumentation-aiopg==0.48b0 | ||
opentelemetry-instrumentation-asgi==0.48b0 | ||
opentelemetry-instrumentation-asyncio==0.48b0 | ||
opentelemetry-instrumentation-asyncpg==0.48b0 | ||
opentelemetry-instrumentation-aws-lambda==0.48b0 | ||
opentelemetry-instrumentation-boto==0.48b0 | ||
opentelemetry-instrumentation-boto3sqs==0.48b0 | ||
opentelemetry-instrumentation-botocore==0.48b0 | ||
opentelemetry-instrumentation-cassandra==0.48b0 | ||
opentelemetry-instrumentation-celery==0.48b0 | ||
opentelemetry-instrumentation-confluent-kafka==0.48b0 | ||
opentelemetry-instrumentation-dbapi==0.48b0 | ||
opentelemetry-instrumentation-django==0.48b0 | ||
opentelemetry-instrumentation-elasticsearch==0.48b0 | ||
opentelemetry-instrumentation-falcon==0.48b0 | ||
opentelemetry-instrumentation-fastapi==0.48b0 | ||
opentelemetry-instrumentation-flask==0.48b0 | ||
opentelemetry-instrumentation-grpc==0.48b0 | ||
opentelemetry-instrumentation-httpx==0.48b0 | ||
opentelemetry-instrumentation-jinja2==0.48b0 | ||
opentelemetry-instrumentation-kafka-python==0.48b0 | ||
opentelemetry-instrumentation-logging==0.48b0 | ||
opentelemetry-instrumentation-mysql==0.48b0 | ||
opentelemetry-instrumentation-mysqlclient==0.48b0 | ||
opentelemetry-instrumentation-pika==0.48b0 | ||
opentelemetry-instrumentation-psycopg==0.48b0 | ||
opentelemetry-instrumentation-psycopg2==0.48b0 | ||
opentelemetry-instrumentation-pymemcache==0.48b0 | ||
opentelemetry-instrumentation-pymongo==0.48b0 | ||
opentelemetry-instrumentation-pymysql==0.48b0 | ||
opentelemetry-instrumentation-pyramid==0.48b0 | ||
opentelemetry-instrumentation-redis==0.48b0 | ||
opentelemetry-instrumentation-remoulade==0.48b0 | ||
opentelemetry-instrumentation-requests==0.48b0 | ||
opentelemetry-instrumentation-sqlalchemy==0.48b0 | ||
opentelemetry-instrumentation-sqlite3==0.48b0 | ||
opentelemetry-instrumentation-starlette==0.48b0 | ||
opentelemetry-instrumentation-system-metrics==0.48b0 | ||
opentelemetry-instrumentation-threading==0.48b0 | ||
opentelemetry-instrumentation-tornado==0.48b0 | ||
opentelemetry-instrumentation-tortoiseorm==0.48b0 | ||
opentelemetry-instrumentation-urllib==0.48b0 | ||
opentelemetry-instrumentation-urllib3==0.48b0 | ||
opentelemetry-instrumentation-wsgi==0.48b0 |
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,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"github>elastic/renovate-config:only-chainguard" | ||
] | ||
} |
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
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.