2017-05-29 7 views
2

私はPythonアプリケーションのためにbitbucket-pipelines.ymlをセットアップしました。 bitbucketパイプラインにPostgres拡張機能をインストールする

image: node 
pipelines: 
    default: 
- step: 
    script: 
     - npm install 
     - npm test 
    services: 
     - postgres 

definitions: 
    services: 
     postgres: 
     image: postgres 
     environment: 
      POSTGRES_DB: 'pipelines' 
      POSTGRES_USER: 'test_user' 
      POSTGRES_PASSWORD: 'test_user_password' 

は私が私のDBにいくつかの特定の拡張子を必要とする、私はこれらを追加する方法:それは、私は、次の設定に私をリードしてきましたここのチュートリアル( https://confluence.atlassian.com/bitbucket/test-with-databases-in-bitbucket-pipelines-856697462.html)を続いてきたように、Postgresデータベースを必要とします。私はそれらをインストールするスクリプトに余分を追加しようとしましたが、その時点でpostgresは起動していないようです。

答えて

0

あなたはまた、https://hub.docker.com/

にあなたの要件に合わせて画像を見つけることができ

definitions: 
    services: 
    postgres: 
     image: your_custom_image_based_on_postgres 
     environment: 
      POSTGRES_DB: 'pipelines' 
      POSTGRES_USER: 'test_user' 
      POSTGRES_PASSWORD: 'test_user_password' 

パイプラインでリポジトリと使用するためにそれをプッシュし、その後、postgresのに基づいて、独自の画像を作成する必要があります

関連する問題