-
Notifications
You must be signed in to change notification settings - Fork 10
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
cc60d3b
commit 4755a7b
Showing
6 changed files
with
54 additions
and
7 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 datadog/system-tests:django-py3.13.base-v0 | ||
|
||
WORKDIR /app | ||
|
||
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/ | ||
RUN /binaries/install_ddtrace.sh | ||
|
||
COPY utils/build/docker/python/django /app | ||
COPY utils/build/docker/python/iast.py /app/iast.py | ||
|
||
RUN python manage.py makemigrations | ||
RUN python manage.py migrate | ||
RUN DJANGO_SUPERUSER_PASSWORD=abcd python3 manage.py createsuperuser --noinput --username root --email [email protected] | ||
|
||
|
||
ENV DD_TRACE_HEADER_TAGS='user-agent:http.request.headers.user-agent' | ||
ENV DD_REMOTECONFIG_POLL_SECONDS=1 | ||
ENV _DD_APPSEC_DEDUPLICATION_ENABLED=false | ||
|
||
|
||
# docker startup | ||
CMD ./app.sh | ||
|
||
# docker build -f utils/build/docker/python/django-py3.13.Dockerfile -t test . | ||
# docker run -ti -p 7777:7777 test |
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,20 @@ | ||
FROM python:3.13.1-slim | ||
|
||
# install bin dependancies | ||
RUN apt-get update && apt-get install -y curl git gcc g++ make cmake | ||
|
||
# print versions | ||
RUN python --version && curl --version | ||
|
||
# install python deps | ||
ENV PIP_ROOT_USER_ACTION=ignore | ||
RUN pip install --upgrade pip | ||
RUN pip install django pycryptodome gunicorn gevent requests boto3==1.34.141 'moto[ec2,s3,all]'==5.0.14 | ||
|
||
# Install Rust toolchain | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y | ||
ENV PATH="/root/.cargo/bin:$PATH" | ||
|
||
# docker build --progress=plain -f utils/build/docker/python/django-py3.13.base.Dockerfile -t datadog/system-tests:django-py3.13.base-v0 . | ||
# docker push datadog/system-tests:django-py3.13.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM datadog/system-tests:python3.13.base-v0 | ||
FROM datadog/system-tests:python3.12.base-v5 | ||
|
||
WORKDIR /app | ||
|
||
|
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