-
Notifications
You must be signed in to change notification settings - Fork 0
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 #220 from SELab-2/poetry
feat(deplyment): added poetry
- Loading branch information
Showing
13 changed files
with
1,497 additions
and
159 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
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,13 +1,13 @@ | ||
FROM python:3.11.4 | ||
|
||
RUN apt update && apt install -y gettext libgettextpo-dev && pip install --upgrade pip | ||
RUN apt update && apt install -y gettext libgettextpo-dev && pip install --upgrade pip && pip install -U poetry | ||
RUN poetry config virtualenvs.create false | ||
|
||
WORKDIR /code | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
ENV PYTHONUNBUFFERED=1 | ||
COPY pyproject.toml poetry.lock ./ | ||
RUN poetry install --only main | ||
|
||
COPY requirements.txt /code/ | ||
RUN pip install -r requirements.txt | ||
COPY . . | ||
|
||
COPY . /code/ | ||
RUN ./setup.sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 +1,9 @@ | ||
# Prerequisites | ||
# Prerequisites | ||
|
||
- python 3.11.8 | ||
- python 3.11.8 | ||
|
||
__Django doesn't support python 3.12__ | ||
**Django doesn't support python 3.12** | ||
|
||
# Install instructions | ||
|
||
- Create a virtual environment `python -m venv .venv` (make sure to use the right python version) | ||
|
||
- Activate the virtual environment `source .venv/bin/activate` | ||
|
||
- Run `setup.sh` | ||
|
||
- Run the server `python manage.py runsslserver localhost:8080` | ||
- See [wiki](https://github.com/SELab-2/UGent-7/wiki/Setup-and-deployment#development) |
Large diffs are not rendered by default.
Oops, something went wrong.
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,30 @@ | ||
[tool.poetry] | ||
name = "backend" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Topvennie <[email protected]>"] | ||
readme = "README.md" | ||
package-mode = false | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11.4" | ||
django = "^5.0.3" | ||
django-sslserver = "^0.22" | ||
djangorestframework = "^3.15.1" | ||
django-rest-swagger = "^2.2.0" | ||
drf-yasg = "^1.21.7" | ||
requests = "^2.31.0" | ||
cas-client = "^1.0.0" | ||
psycopg2-binary = "^2.9.9" | ||
djangorestframework-simplejwt = "^5.3.1" | ||
celery = {extras = ["redis"], version = "^5.3.6"} | ||
django-redis = "^5.4.0" | ||
gunicorn = "^21.2.0" | ||
whitenoise = "^6.6.0" | ||
flake8 = "^7.0.0" | ||
celery-types = "^0.22.0" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.
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
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