From be9d3a70fec21fbc03f809dc9b8cbe30a600c5a5 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Fri, 31 Jul 2020 09:25:04 +0300 Subject: [PATCH] Run cheat.sh service (app) by `docker-compose` in debug mode This would allow later inspection of stdout. Assigned names to image and container to avoid confusion. Build is done separately to clean up the output. --- .travis.yml | 3 ++- docker-compose.yml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a3dfa2c..f142efb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,8 @@ language: - generic before_install: - - docker-compose up -d + - docker-compose build + - docker-compose run -d app bin/srv.py --debug - docker ps - docker images diff --git a/docker-compose.yml b/docker-compose.yml index 589033c..da8cfbb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,9 @@ version: '2' services: app: - build: - context: . + build: . + image: cheat.sh + container_name: chtsh depends_on: - redis ports: