如何解决Gitlab运行程序不打印docker run命令的输出
有什么方法可以在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日志中没有打印任何内容
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。