Skip to content

Commit

Permalink
[chore] Build and publish application hosted in the repository for th…
Browse files Browse the repository at this point in the history
…e Python instrumentation E2E test (#2095)

* Build and publish the Python E2E image

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix archs

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix the tags

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix the tags

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Use reusable workflow

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix workflow name

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

---------

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
  • Loading branch information
iblancasa authored Oct 4, 2023
1 parent 0a86c75 commit 423ff4c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-autoinstrumentation-e2e-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
with:
language: golang
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
python:
uses: ./.github/workflows/reusable-publish-autoinstrumentation-e2e-images.yaml
with:
language: python
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
java:
uses: ./.github/workflows/reusable-publish-autoinstrumentation-e2e-images.yaml
with:
Expand Down
7 changes: 7 additions & 0 deletions tests/instrumentation-e2e-apps/python/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:alpine3.18

COPY requirements.txt .
RUN pip install -r requirements.txt
COPY app.py .

ENTRYPOINT ["flask", "run", "-p", "8080"]
10 changes: 10 additions & 0 deletions tests/instrumentation-e2e-apps/python/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
return "Hi"

if __name__ == "__main__":
app.run(host='0.0.0.0')
1 change: 1 addition & 0 deletions tests/instrumentation-e2e-apps/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flask==2.3.3

0 comments on commit 423ff4c

Please sign in to comment.