Skip to content

Commit

Permalink
fixed docker-compose requirements for local setups with venv inside p…
Browse files Browse the repository at this point in the history
…roject root (#10697)

## Purpose

Fix devenv setup for people who use virtualenv inside project root in conjuction with docker-compose

## Changes

Changed mount for `docker-compose` `requirements` service
  • Loading branch information
opaduchak authored Aug 8, 2024
1 parent dc84403 commit 99d8b70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,16 @@ services:
- /bin/bash
- -c
- python -m venv /tmp/venv
&& /tmp/venv/bin/pip install poetry==1.8.0 &&
&& /tmp/venv/bin/pip install poetry==1.8.3 &&
/tmp/venv/bin/poetry install --no-root --without release --compile --sync &&
rm -rf /python3.12/* &&
cp -Rf -p /usr/local/lib/python3.12 /
restart: 'no'
environment:
DJANGO_SETTINGS_MODULE: api.base.settings
volumes:
- ./:/code:cached
- ./pyproject.toml:/code/pyproject.toml
- ./poetry.lock:/code/poetry.lock
- osf_requirements_3_12_vol:/python3.12

assets:
Expand Down

0 comments on commit 99d8b70

Please sign in to comment.