Allow configuration of startup command for Pipelines service containers

Issue #15997 open
Naveen Subramani
created an issue

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 :

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

Usage in Bitbucket-pipelines.yml

    image: postgres:9.6-alpine
    command: postgres -c shared_buffers=256MB -c max_connections=200
      POSTGRES_USER: 'test'

Comments (4)

  1. Matt Ryall staff

    Thanks for the suggestion. We'll keep this suggestion open to gauge customer interest.

    Until we can get around to implementing it, the best workaround would be to create your own Docker image which sets your own CMD value, or supports environment variables for settings like these. Not ideal, but it should be possible to build and publish such an image from Pipelines pretty easily.

  2. Log in to comment