Details
-
Suggestion
-
Resolution: Unresolved
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'