有什么方法可以在gitlab运行程序上打印docker run
coomand输出?
我正在运行以下内容:
docker-build:
# Official docker image.
image: docker/compose:debian-1.26.2
stage: build
services:
- docker:dind
before_script:
- apt update && apt install -y curl
- docker-compose build
- docker-compose up -d
- DB_CONTAINER=`docker ps | grep server | awk '{print $NF}'`
- until (docker logs $DB_CONTAINER 2>&1 | grep -e ' Running on'); do echo "Waiting for server..."; sleep 1; done # Wait for the DB to be ready
script:
- cd tests
- docker build -t testimg .
- docker -t -v $PWD/tests_integration_test1.py:/tests_integration_test1.py run testimg pytest tests_integration_test1.py
但gitlab ci日志中没有打印任何内容