Skip to content

docker-compose run without mounting volume #1682

@kevinsimper

Description

@kevinsimper

I run tests with docker-compose, but because it mounts the volume inside when you do it, I have to install dependencies again.

What i do to run test locally:
docker-compose run backend npm test

But on CicleCi I build my containers first with docker-compose build and they are completly runable, but docker-compose makes it easier because it starts links at the same time.

So on circleci i have to do
`docker-compose run backend /bin/bash -c "npm installl && npm test"``

which takes longer because i have to do npm install twice.

I want to do

docker-compose run --no-volumes backend npm test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions