Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-15997

Allow configuration of startup command for Pipelines service containers

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            e4d7bd6e78b4 Naveen S
            Votes:
            25 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated: