Tag: docker gitlab ci cookiecutter

testing运行在gitlab-ci失败,因为Postgres不可见

在Docker中使用gitlab-ci的testing失败,因为Postgres服务不可访问。 在我的开发环境中,我成功地运行了testing: $docker-compose -f local.yaml run web py.test 但在gitlab中, – docker run –env-file=.env_dev $CONTAINER_TEST_IMAGE py.test -p no:sugar的命令- docker run –env-file=.env_dev $CONTAINER_TEST_IMAGE py.test -p no:sugar失败: 9bfe10de3baf: Pull complete a137c036644b: Pull complete 8ad45b31cc3c: Pull complete Digest: sha256:0897b57e12bd2bd63bdf3d9473fb73a150dc4f20cc3440822136ca511417762b Status: Downloaded newer image for registry.gitlab.com/myaccount/myapp:gitlab_ci $ docker run –env-file=.env $CONTAINER_TEST_IMAGE py.test -p no:sugar Postgres is unavailable – sleeping Postgres […]