Skip to content

Commit

Permalink
Fix gh action docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMoalic committed Jan 30, 2024
1 parent 1d3287d commit 8765fb7
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 27 deletions.
2 changes: 0 additions & 2 deletions backend/entrypoint.sh

This file was deleted.

23 changes: 0 additions & 23 deletions backend/justfile

This file was deleted.

2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ ADD pyproject.toml poetry.lock /app/
RUN poetry install --no-root
COPY . /app

CMD poetry run python manage.py runserver 0.0.0.0:8000 --settings=amuman.settings_manager
CMD poetry run python backend/manage.py runserver 0.0.0.0:8000 --settings=amuman.settings_manager
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
network:
sudo docker network create amuman

build:
sudo docker build . -t amuman

build_db:
sudo docker run --rm -it -v .:/app amuman poetry run python backend/manage.py makemigrations --settings=amuman.settings_manager
sudo docker run --rm -it -v .:/app amuman poetry run python backend/manage.py makemigrations --settings=amuman.settings_node
sudo docker run --rm -it -v .:/app amuman poetry run python backend/manage.py makemigrations --settings=amuman.settings_client
sudo docker run --rm -it -v .:/app amuman poetry run python backend/manage.py migrate --settings=amuman.settings_manager
sudo docker run --rm -it -v .:/app amuman poetry run python backend/manage.py migrate --settings=amuman.settings_node
sudo docker run --rm -it -v .:/app amuman poetry run python backend/manage.py migrate --settings=amuman.settings_client

manager:
sudo docker rm -f manager
sudo docker run --network amuman --rm -it -v .:/app --name manager -p 8000:8000 amuman

node:
sudo docker rm -f node
sudo docker run --network amuman --gpus all --rm -it -v .:/app --name node amuman poetry run python backend/manage.py runserver --settings=amuman.settings_node
it:
sudo docker run --network amuman --gpus all --rm -it -v .:/app amuman bash
105 changes: 104 additions & 1 deletion backend/poetry.lock → poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/pyproject.toml → pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ notification = "0.2.1"
daphne = "4.0.0"
python-dotenv = "1.0.1"
requests = "^2.31.0"
httpx = "^0.26.0"


[build-system]
Expand Down
File renamed without changes.

0 comments on commit 8765fb7

Please sign in to comment.