Tag: docker gitlab ci

Docker-in-Docker与Gitlab共享运行器,用于构buildDocker映像并将其推送到registry

一直试图build立可以build立一个docker图像的Gitlab CI,并且发现DinD最初只为单独的跑步者启用,而Blog Post则表示将很快为共享的跑步者启用, 运行DinD需要在跑步者中启用特权模式,在注册跑步者时将其设置为标志,但是找不到共享跑步者的等同机制

如何访问docker图像中的mongorestore / mongodump

我试图从已经通过gitlab-ci-multirunner运行的docker镜像中访问mongorestore / mongodump命令。 我的.gitlab-ci.yml看起来像这样: image: node:7.2.0 cache: key: "$CI_BUILD_REF_NAME" paths: – node_modules/ services: – mongo variables: DOCKER_ENV: 'true' NODE_ENV: 'test' all_tests: script: – npm install – npm install tsd -g – tsd install –save – node_modules/typescript/bin/tsc -p . – node node_modules/mocha/bin/_mocha –recursive tests –timeout 15000 在我的testing中,我做了mongodump / mongorestore。 我得到的错误是: 创build交易testing 连接到MongoDB:mongodb:// mongo:27017 / test-db {错误:命令失败:mongorestore […]