Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Containers: Add Script configuration option #593

Closed
rraub opened this issue Mar 5, 2020 · 1 comment
Closed

Additional Containers: Add Script configuration option #593

rraub opened this issue Mar 5, 2020 · 1 comment
Labels

Comments

@rraub
Copy link

rraub commented Mar 5, 2020

Description

for the additional_containers section, it would be useful to be able to specify a script to run just like the top level tasks. Some off the shelf containers like postgres don't support configurations via environment variables.

Context

Example

  container:
    image: mytestimage:latest
    additional_containers:
      - name: postgres
        image: postgres:11.5-alpine
        cpu: 1
        memory: 2G
        port: 5432
        env:
          POSTGRES_USER: user
          POSTGRES_PASSWORD: password
          POSTGRES_DB: databasename
        script:
          - postgres -c 'shared_buffers=512MB' -c 'max_connections=200' -c 'autovacuum=false'

Anything Else

Additionally if there was a way to get at logs for these additional containers that could be helpful.

@rraub rraub added the feature label Mar 5, 2020
@fkorotkov
Copy link
Contributor

You can override the default command via command field instead of script and for the logs part there is #140.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants