Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/breatheco-de/apiv2
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Jan 31, 2025
2 parents 5fb5f67 + 3092a5f commit 1fa3efc
Show file tree
Hide file tree
Showing 273 changed files with 13,223 additions and 8,811 deletions.
10 changes: 5 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# alpine has very much issues with python
# alpine has so much issues with python
FROM mcr.microsoft.com/devcontainers/python:3

ENV PYTHONUNBUFFERED=1
Expand All @@ -12,14 +12,14 @@ RUN apt-get update \
RUN curl -fsSL https://get.docker.com -o get-docker.sh \
&& sh ./get-docker.sh

RUN pip install pipenv
RUN pip install poetry pipx

# WORKDIR /usr/src



COPY ./Pipfile ./Pipfile
COPY ./Pipfile.lock ./Pipfile.lock
COPY ./pyproject.toml ./pyproject.toml
COPY ./poetry.lock ./poetry.lock

RUN pipenv install --system --deploy --ignore-pipfile
RUN poetry install
COPY . .
5 changes: 3 additions & 2 deletions .devcontainer/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

python -m scripts.install
docker-compose up -d redis postgres
pipenv run migrate
pipenv run python manage.py loaddata breathecode/*/fixtures/dev_*.json
poetry run migrate
poetry run python manage.py loaddata breathecode/*/fixtures/dev_*.json
poetry run python manage.py create_academy_roles
docker-compose down
Loading

0 comments on commit 1fa3efc

Please sign in to comment.