Skip to content

Commit 5be3658

Browse files
authored
Merge pull request #971 from aaronweaver/dev
Change initializer to urandom
2 parents 9536c15 + 3d87cb7 commit 5be3658

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Dockerfile.django

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# code: language=Dockerfile
23
FROM python:2
34
WORKDIR /app
@@ -58,5 +59,6 @@ ENV \
5859
DD_CREDENTIAL_AES_256_KEY="&91a*agLqesc*0DJ+2*bAbsUZfR*4nLw" \
5960
DD_INITIALIZE=true \
6061
DD_UWSGI_MODE="socket" \
61-
DD_UWSGI_ENDPOINT="0.0.0.0:3031"
62-
ENTRYPOINT ["/entrypoint-uwsgi.sh"]
62+
DD_UWSGI_ENDPOINT="0.0.0.0:3031" \
63+
DD_DJANGO_ADMIN_ENABLED="on"
64+
ENTRYPOINT ["/entrypoint-uwsgi.sh"]

docker/entrypoint-initializer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo "Admin user: ${DD_ADMIN_USER}"
1313

1414
if [ -z "${DD_ADMIN_PASSWORD}" ]
1515
then
16-
export DD_ADMIN_PASSWORD="$(cat /dev/random | LC_ALL=C tr -dc a-zA-Z0-9 | \
16+
export DD_ADMIN_PASSWORD="$(cat /dev/urandom | LC_ALL=C tr -dc a-zA-Z0-9 | \
1717
head -c 22)"
1818
echo "Admin password: ${DD_ADMIN_PASSWORD}"
1919
fi

localhost:8081

Whitespace-only changes.

0 commit comments

Comments
 (0)