-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7714f55
commit 31e2169
Showing
6 changed files
with
45 additions
and
44 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM python:3.9-slim | ||
|
||
# install bin dependancies | ||
RUN apt-get update && apt-get install -y curl git gcc g++ | ||
|
||
# print versions | ||
RUN python --version && curl --version | ||
|
||
# install python deps | ||
RUN pip install django pycryptodome gunicorn gevent requests | ||
|
||
RUN mkdir app | ||
RUN django-admin startproject django_app app | ||
WORKDIR /app | ||
RUN python3 manage.py startapp app | ||
|
||
RUN sed -i "1s/^/from django.urls import include\n/" django_app/urls.py | ||
RUN sed -i "s/admin\///g" django_app/urls.py | ||
RUN sed -i "s/admin.site.urls/include(\"app.urls\")/g" django_app/urls.py | ||
RUN sed -i "s/ALLOWED_HOSTS\s=\s\[\]/ALLOWED_HOSTS = \[\"0.0.0.0\",\"weblog\"\,\"localhost\"\]/g" django_app/settings.py | ||
|
||
|
||
# docker build --progress=plain -f utils/build/docker/python/django-poc.base.Dockerfile -t datadog/system-tests:django-poc.base-v0 . | ||
# docker push datadog/system-tests:django-poc.base-v0 | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3.9-slim | ||
|
||
# install bin dependancies | ||
RUN apt-get update && apt-get install -y curl git gcc g++ | ||
|
||
# print versions | ||
RUN python --version && curl --version | ||
|
||
# install python deps | ||
# Tracer does not support flask 2.3.0 or higher, pin the flask version for now | ||
RUN pip install flask==2.2.4 gunicorn gevent requests pycryptodome psycopg2-binary | ||
|
||
# docker build --progress=plain -f utils/build/docker/python/flask-poc.base.Dockerfile -t datadog/system-tests:flask-poc.base-v0 . | ||
# docker push datadog/system-tests:flask-poc.base-v0 | ||
|
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