[英]set arangodb environment variable for authentication in bitbucket pipelines file
我正在使用位桶管道文件的应用程序上使用CI。 为了做到这一点我需要导入我的数据库泊坞窗图像(arangodb),并指定一些环境变量的描述来设置身份验证方法在这里 。 简而言之,它可能是以下可能性之一:
出于某种原因,先运行两个管道中的任何一个来运行管道会发回错误:
您的bitbucket-pipelines.yml文件中的“环境”部分必须是地图。
我使用下面的文件中的环境变量设法使管道运行,但是有时我可能想更改其他方法。 我不确定写ARANGO_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'
解决方案:
# 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/common_tests.py
services:
- arangodb
definitions:
services:
arangodb:
image: arangodb/arangodb
environment:
ARANGO_NO_AUTH: 1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.