Cirrus-ci-docs: Support mapping ports on additional_containers

Created on 20 Nov 2019  路  1Comment  路  Source: cirruslabs/cirrus-ci-docs

Description

When starting multiple additional_containers, be able to map the port

Context

We want to be able to run two postgres instances in tests, but cannot since they both bind to port 5432

Anything Else

Specify the local port and the port exposed in the container

    additional_containers:
      - name: postgres
        image: postgres:alpine
        port: 5432:5432
        env:
          ...
      - name: postgres
        image: postgres:alpine
        cpu: 0.5
        memory: 1G
        port: 5433:5432
        env:
          ...

feature high-priority

Most helpful comment

Made the change internally and will update documentation once the schema update will be deployed and it will become available for everyone. 馃檶This will take a bit longer then implementing the actual change 馃槄

>All comments

Made the change internally and will update documentation once the schema update will be deployed and it will become available for everyone. 馃檶This will take a bit longer then implementing the actual change 馃槄

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EpicEric picture EpicEric  路  3Comments

asomers picture asomers  路  3Comments

fkorotkov picture fkorotkov  路  3Comments

dbolkensteyn picture dbolkensteyn  路  3Comments

cjdb picture cjdb  路  5Comments