Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get .coverage file in local system when using docker compose up #1827

Open
AkashKumar7902 opened this issue Jul 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AkashKumar7902
Copy link

AkashKumar7902 commented Jul 30, 2024

I am unable to get .coverage file in local system when using docker compose up. But .coverage file is getting emitted in case of docker compose run command but not in up

I am mounting my current working directory in docker container, and also changing the current working directory in container to the current dir in local.

the below is my docker-compose file:

services:
  flask-app:
    image: flask-app:1.0
    container_name: flask-app
    build:
      context: .
    ports:
      - "6000:6000"
    volumes:
      - ${PWD}:${PWD}
    working_dir: ${PWD}

https://github.com/AkashKumar7902/flask-app
the above is a minimalist reproducible app.

First run docker compose up and stop the app, you won't find any .coverage file.
After that, run docker compose run flask-app, the difference can be seen.

@AkashKumar7902 AkashKumar7902 added the bug Something isn't working label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant