【发布时间】:2017-11-12 00:02:40
【问题描述】:
我正在使用位桶管道文件的应用程序上使用 CI。 为此,我需要导入我的数据库 docker 映像 (arangodb) 并指定一些环境变量来设置身份验证方法,如 here 所述。短篇小说,它可能是其中一种可能性:
- ARANGO_RANDOM_ROOT_PASSWORD=1
- ARANGO_NO_AUTH=1
- ARANGO_ROOT_PASSWORD=某个密码
由于某种原因,使用两者之一运行管道首先会发回错误:
bitbucket-pipelines.yml 文件中的“环境”部分必须是 一张地图。
我设法使用下面文件中的环境变量让管道运行,但我可能想在某个时候更改其他方法。我不确定写 ARANNGO_ROOT_PASSWORD: '' 的问题实际上是什么,发回了相同的先前错误。任何帮助将不胜感激。
# This is a sample build configuration for Python.
# Check our guides at https://confluence.atlassian.com/x/x4UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: python:2.7
pipelines:
branches:
'{dev,master}':
- step:
script:
- python setup.py develop
- python ./server/kernel/setup.py
- python ./server/tests/jsonLoginRegister_tests.py
services:
- arangodb
definitions:
services:
arangodb:
image: arangodb/arangodb
environment:
ARANGO_ROOT_PASSWORD: '1'
【问题讨论】:
标签: python-2.7 docker arangodb bitbucket-pipelines