Commit ccb7ad8a authored by Adam Parák's avatar Adam Parák 💬
Browse files

remove: duplicates from docker-delpoyment

parent 24abea73
Loading
Loading
Loading
Loading

docker/live-env/.env

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
# sets up appropriate hostname for the Nginx server
INJECT_DOMAIN=inject.localhost

# Secret key for cryptographic signing
INJECT_SECRET_KEY=your-at-least-fifty-or-more-characters-long-secret-key

# host parametres that should be setup for client and server to interact correctly,
# do not touch unless you know what you are doing
INJECT_HOST_ADDRESSES=inject.localhost
CORS_ALLOWED_ORIGINS=http://inject.localhost

# enable logging to a specific file
INJECT_LOGS=/backend/data/text.log

# enable debug mode for the backend
INJECT_DEBUG=true
 No newline at end of file

docker/live-env/Dockerfile.be

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
FROM python:3.8-alpine

ENV POETRY_NO_INTERACTION=1 \
    POETRY_VIRTUALENVS_IN_PROJECT=1 \
    POETRY_VIRTUALENVS_CREATE=1 \
    POETRY_CACHE_DIR=/tmp/poetry_cache

WORKDIR /backend

# Install poetry
RUN apk add gcc musl-dev libffi-dev && \
    rm -rf /var/cache/apk/
RUN pip install poetry==1.8.2 --no-cache

ENTRYPOINT [ "/bin/sh", "be-dev.sh" ]
EXPOSE 8000
 No newline at end of file

docker/live-env/Dockerfile.fe

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
FROM node:20

WORKDIR /usr/src/app

ENTRYPOINT [ "/bin/sh", "fe-dev.sh" ]

EXPOSE 80

docker/live-env/README.md

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
Docker Live Environment

Runs live development environment for Frontend and Backend

Known limitations:
- hot reloading does not work under WSL2 (Windows) Docker environment
  - to have support you can enable polling (not recommended for high CPU usage)
  - you simply don't use it and use Linux instead
- if scripts don't work proper or yell that they're not executable, please chmod +x them ;)
  - this is a Git issue

docker/live-env/be-dev.sh

deleted100644 → 0
+0 −6
Original line number Diff line number Diff line
poetry install
poetry run python manage.py migrate
poetry run python manage.py shell -c 'from user.models import User; User.objects.create_superuser(username="t_super@t.com", password="t")'
poetry run python manage.py shell -c 'from user.models import User; User.objects.create_staffuser(username="t_staff@t.com", password="t")'
poetry run python manage.py shell -c 'from user.models import User; User.objects.create_user(username="t_user@t.com", password="t")'
poetry run python manage.py runserver 0.0.0.0:8000
 No newline at end of file
Loading