Allow configuration of startup command for Pipelines service containers

XMLWordPrintable

    • 5

      Option to provide commands while spinning up the containers.
      Use case:
      unable to configure max connection and shared buffers for a postgres service, via command in bitbucket-pipelines.yml.

      Link : https://github.com/docker-library/docs/tree/master/postgres

      #!shell
      
      docker run -d --name some-postgres postgres -c 'shared_buffers=256MB' -c 'max_connections=200'
      

      Usage in Bitbucket-pipelines.yml

      #!yml
      
      services:
        postgres:
          image: postgres:9.6-alpine
          command: postgres -c shared_buffers=256MB -c max_connections=200
          environment:
            POSTGRES_USER: 'test'
            POSTGRES_PASSWORD: 'test'
      

              Assignee:
              Unassigned
              Reporter:
              Naveen S
              Votes:
              26 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: