Skip to content

Commit 3e83dec

Browse files
committed
Merge branch 'develop' into upstream/pbs-25-08
2 parents 1c9e98b + 6a24f92 commit 3e83dec

File tree

2 files changed

+49
-8
lines changed

2 files changed

+49
-8
lines changed

.docker-compose.gv.env

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ALLOWED_HOSTS="localhost,192.168.168.167"
1+
ALLOWED_HOSTS="localhost,192.168.168.167,127.0.0.1"
22
CORS_ALLOWED_ORIGINS="http://localhost:5000,http://192.168.168.167:5000"
33
OSFDB_HOST=192.168.168.167
44
POSTGRES_HOST="$OSFDB_HOST"
@@ -7,5 +7,10 @@ OSF_API_BASE_URL="http://192.168.168.167:8000"
77
POSTGRES_USER="postgres"
88
POSTGRES_DB="gravyvalet"
99
SECRET_KEY="secret"
10-
PYTHONUNBUFFERED=0 # This when set to 0 will allow print statements to be visible in the Docker logs
10+
PYTHONUNBUFFERED=1 # This when set to 0 will allow print statements to be visible in the Docker logs
11+
OSF_AUTH_COOKIE_NAME=osf
12+
OSF_SENSITIVE_DATA_SECRET="TrainglesAre5Squares"
13+
OSF_SENSITIVE_DATA_SALT="yusaltydough"
14+
DEBUG=1
15+
1116

docker-compose.yml

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ services:
8686
ports:
8787
- 5432:5432
8888
environment:
89+
POSTGRES_DB: osf
90+
POSTGRES_HOST_AUTH_METHOD: trust
8991
POSTGRES_INITDB_SQL: |
9092
SELECT 'CREATE DATABASE gravyvalet' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'gravyvalet')\gexec
9193
volumes:
@@ -534,13 +536,15 @@ services:
534536
command:
535537
- /bin/bash
536538
- -c
537-
- pip install -r requirements/dev-requirements.txt &&
538-
(python3 -m compileall /usr/local/lib/python3.12 || true) &&
539-
rm -Rf /python3.12/* &&
540-
cp -Rf -p /usr/local/lib/python3.12 /
539+
- python -m venv /tmp/venv
540+
&& /tmp/venv/bin/pip install poetry==1.8.3 &&
541+
/tmp/venv/bin/poetry config virtualenvs.create false --local &&
542+
/tmp/venv/bin/poetry install --no-root --with dev --without release --compile --sync &&
543+
rm -rf /python3.13/* &&
544+
cp -Rf -p /usr/local/lib/python3.13 /
541545
restart: 'no'
542546
volumes:
543-
- gv_requirements_vol:/python3.12
547+
- gv_requirements_vol:/python3.13
544548

545549
gv:
546550
image: quay.io/centerforopenscience/gravyvalet:develop
@@ -556,7 +560,39 @@ services:
556560
environment:
557561
DJANGO_SETTINGS_MODULE: app.settings
558562
volumes:
559-
- gv_requirements_vol:/usr/local/lib/python3.12
563+
- gv_requirements_vol:/usr/local/lib/python3.13
564+
stdin_open: true
565+
566+
gv_worker:
567+
image: quay.io/centerforopenscience/gravyvalet:develop
568+
command: python -m celery --app app worker --uid daemon -l info
569+
restart: unless-stopped
570+
depends_on:
571+
- postgres
572+
- api
573+
- rabbitmq
574+
env_file:
575+
- .docker-compose.gv.env
576+
environment:
577+
DJANGO_SETTINGS_MODULE: app.settings
578+
volumes:
579+
- gv_requirements_vol:/usr/local/lib/python3.13
580+
stdin_open: true
581+
582+
gv_beat:
583+
image: quay.io/centerforopenscience/gravyvalet:develop
584+
command: python -m celery --app app beat --uid daemon -l info
585+
restart: unless-stopped
586+
depends_on:
587+
- postgres
588+
- api
589+
- rabbitmq
590+
env_file:
591+
- .docker-compose.gv.env
592+
environment:
593+
DJANGO_SETTINGS_MODULE: app.settings
594+
volumes:
595+
- gv_requirements_vol:/usr/local/lib/python3.13
560596
stdin_open: true
561597

562598
pigeon:

0 commit comments

Comments
 (0)