Permission Denied for pyproject.toml When Using podman-compose with uv run #1512
Unanswered
bernicechiaha
asked this question in
Questions
Replies: 2 comments
-
I think the template already have a good configuration to contanarize this template, why have you use your Docker-compose-db.yml file |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm having the same issue. https://github.com/fastapi/full-stack-fastapi-template/blob/master/backend/Dockerfile fails to build on Podman on Mac OS X. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Currently trying to build and start up my database by running -uv run podman-compose -f docker-compose-db.yml build prestart on my macOS 15.2.
But i'm running into a build fail with the error-
error: failed to open file
/app/pyproject.toml`: Permission denied (os error 13)Error: building at STEP "RUN --mount=type=cache,target=/root/.cache/uv --mount=type=bind,source=uv.lock,target=uv.lock --mount=type=bind,source=pyproject.toml,target=pyproject.toml uv sync --frozen --no-install-project": while running runtime: exit status 2..I have done the necessary permission checks and i believe I have the permissions in check: rw-r--r-- 1 ${USER} staff 204 Feb 4 09:52 pyproject.toml.
Docker-compose-db.yml file
`services:
db:
image: postgres:17
ports:
- "5433:5433"
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD?Variable not set}
- POSTGRES_USER=${POSTGRES_USER?Variable not set}
- POSTGRES_DB=${POSTGRES_DB?Variable not set}
prestart:
image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
build:
context: ./backend
depends_on:
db:
condition: service_healthy
restart: true
command: bash scripts/prestart.sh
env_file:
- .env
environment:
- DOMAIN=${DOMAIN}
- FRONTEND_HOST=${FRONTEND_HOST?Variable not set}
- ENVIRONMENT=${ENVIRONMENT}
- BACKEND_CORS_ORIGINS=${BACKEND_CORS_ORIGINS}
- SECRET_KEY=${SECRET_KEY?Variable not set}
- FIRST_SUPERUSER=${FIRST_SUPERUSER?Variable not set}
- FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD?Variable not set}
- SMTP_HOST=${SMTP_HOST}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- EMAILS_FROM_EMAIL=${EMAILS_FROM_EMAIL}
- POSTGRES_SERVER=db
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER?Variable not set}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD?Variable not set}
- SENTRY_DSN=${SENTRY_DSN}
adminer:
image: adminer
ports:
- "8080:8080"
environment:
- ADMINER_DESIGN=pepa-linha-dark
volumes:
app-db-data:
`
i'm i missing something?
Operating System
macOS
Operating System Details
macOS 15.2 (24C101)
Python Version
Python 3.12.8
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions