-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #488 from pablodiegoss/update-project-structure
Refactor project structure to avoid indirection on multiple folders
- Loading branch information
Showing
217 changed files
with
96 additions
and
707 deletions.
There are no files selected for viewing
File renamed without changes.
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,37 @@ | ||
# Use this file to create a .env with filled variables | ||
# Django Variables | ||
DJANGO_DEBUG=True | ||
DJANGO_SETTINGS_MODULE=config.settings | ||
DJANGO_ADMIN_URL=admin/ | ||
DEV_DB=False | ||
DEV_STATIC=True | ||
DEBUG_TOOLBAR=True | ||
DJANGO_SECRET_KEY=change_me | ||
USE_MINIO=True | ||
|
||
## Amazon AWS Variables | ||
AWS_ACCESS_KEY_ID=minio | ||
AWS_SECRET_ACCESS_KEY=minio123 | ||
MINIO_ROOT_USER=minio | ||
MINIO_ROOT_PASSWORD=minio123 | ||
AWS_STORAGE_BUCKET_NAME=jandig-cdn | ||
AWS_PRIVATE_STORAGE_BUCKET_NAME=jandig-private-cdn | ||
AWS_S3_REGION_NAME=us-east-2 | ||
AWS_STATIC_LOCATION=static | ||
MINIO_S3_ENDPOINT_URL=http://storage:9000 | ||
MINIO_SITE_REGION=us-east-2 | ||
MINIO_USER_ACCESS_KEY=minio-access-key | ||
MINIO_USER_SECRET_KEY=minio-secret-key | ||
|
||
## Postgres variables | ||
POSTGRES_HOST=postgres | ||
POSTGRES_PORT=5432 | ||
POSTGRES_DB=goldpenny | ||
POSTGRES_USER=goldpenny | ||
POSTGRES_PASSWORD=goldpenny123 | ||
|
||
# Email server variables | ||
SMTP_SERVER=smtp.gmail.com | ||
SMTP_PORT=587 | ||
[email protected] | ||
JANDIG_EMAIL_PASSWORD=local_password |
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,43 @@ | ||
FROM python:3.10-slim-bullseye | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
gettext \ | ||
docutils-common \ | ||
curl \ | ||
wget | ||
|
||
|
||
COPY ./pyproject.toml /pyproject.toml | ||
COPY ./poetry.lock /poetry.lock | ||
|
||
|
||
RUN curl -sSL https://install.python-poetry.org | python3 - | ||
|
||
ENV PATH="$PATH:/root/.local/bin" \ | ||
POETRY_NO_INTERACTION=1 \ | ||
POETRY_VIRTUALENVS_CREATE=false \ | ||
POETRY_CACHE_DIR='/var/cache/pypoetry' \ | ||
TINI_VERSION=v0.19.0 | ||
|
||
RUN poetry install | ||
|
||
RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \ | ||
&& wget "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${dpkgArch}" -O /usr/local/bin/tini \ | ||
&& chmod +x /usr/local/bin/tini && tini --version | ||
|
||
RUN mkdir -p /src | ||
WORKDIR /src | ||
COPY ./src/ /src/ | ||
COPY ./docs/ /src/docs/ | ||
COPY ./locale/ /src/locale/ | ||
COPY ./tasks.py /src/tasks.py | ||
COPY ./run.sh /src/run.sh | ||
COPY ./etc/ /src/etc/ | ||
|
||
RUN pip install --upgrade pip | ||
|
||
RUN find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf | ||
|
||
|
||
ENTRYPOINT ["tini", "--"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.