2017-11-12 8 views
1

bitbucket 파이프 라인 파일을 사용하여 응용 프로그램에서 CI를 사용하려고합니다. 이렇게하려면 데이터베이스 바커 이미지 (arangodb)를 가져와 here과 같이 인증 방법을 설정하기 위해 일부 환경 변수를 지정해야합니다.bitbucket 파이프 라인 파일의 인증을 위해 arangodb 환경 변수를 설정하십시오.

  • ARANGO_RANDOM_ROOT_PASSWORD = 1
  • ARANGO_NO_AUTH = 1
  • ARANGO_ROOT_PASSWORD 어떤 이유 = somepassword

, 하나 중 하나를 사용하여 파이프 라인을 실행 : 짧은 이야기, 그것은 그 가능성의 하나가 될 수 중 두 사람이 먼저 오류를 다시 보냅니다 :

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' 

답변

0

솔루션 :

# 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