-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
When testing pr #45, /scripts/schema.sql and /app/scripts/load_benchmarks.py were missing from the container.
See errors:
gaston2:~/go/src/github.com/compass$ docker-compose exec postgres psql -U compass -d compass -f /scripts/schema.sql
psql: error: /scripts/schema.sql: No such file or directory
gaston2:~/go/src/github.com/compass$ docker-compose exec backend python scripts/load_benchmarks.py
python: can't open file '/app/scripts/load_benchmarks.py': [Errno 2] No such file or directory
The following was a workaround:
docker-compose exec -T postgres psql -U compass -d compass < scripts/schema.sql
DATABASE_URL=postgresql://compass:compass_dev_password@localhost:5432/compass uv run python scripts/load_benchmarks.py data/benchmarks_BLIS.json
Can these files be added to the container in make docker-build?
Also, it would be good to add make docker equivalents for the needed make postgress commands.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels