From c0285cceefef7473445089f2c2f8f852e25c303d Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Sun, 28 Jun 2020 16:53:15 +0200 Subject: [PATCH] tests: Move CMD from Dockerfile to docker-compose.yml This makes it easier to change the command (e.g. to add `-s`) as we don't need to tell docker-compose to rebuild the image and container. --- Dockerfile | 2 -- docker-compose.yml | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f093d64..1065c10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,5 +33,3 @@ ADD requirements.txt requirements.txt RUN pip3 install -r requirements.txt RUN mkdir /root/.vim/bundle/taskwiki WORKDIR /root/.vim/bundle/taskwiki - -CMD xvfb-run python3 -m pytest -vv tests/ diff --git a/docker-compose.yml b/docker-compose.yml index 5c893ad..a70ec01 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,3 +8,4 @@ services: security_opt: - label=type:container_runtime_t tty: true + command: xvfb-run python3 -m pytest -vv tests/