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

Support DOCKER_NETWORK environment variable #1698

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

carolynvs
Copy link
Member

@carolynvs carolynvs commented Aug 2, 2021

When DOCKER_NETWORK is set, the bundle's invocation image is attached to the specified network, such as host or the minikube network.

I chose to not use the PORTER prefix because this seemed more consistent with the other DOCKER_ environment variables that Porter recognizes, such as DOCKER_HOST.

A user can specify a different docker network by setting an environment variable before running porter

export DOCKER_NETWORK=minikube
porter install ...

What does this change

This is using a one-off tag of cnab-go to avoid pulling in a bunch of changes that are just for porter v1. This tag (v0.19.0-porter.3) just contains the previous cnab-go we were using with the main branch of porter and this latest change to cnab-go supporting docker network.

What issue does it fix

Closes #1696

When using Porter with oddball connectivity to an external resource, in this case the kubernetes cluster api from minikube which is only available from the host network or the minikube docker network, you can now tell porter which docker network to attache the bundle's installer to when it runs. This will allow devs to try out bundles when they are working with endpoints that are only available on their local dev machine and don't have a public endpoint.

Notes for the reviewer

The change is 100% in cnab-go.

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

When DOCKER_NETWORK is set, the bundle's invocation image is attached to
the specified network, such as host or the minikube network.

I chose to not use the PORTER prefix because this seemed more consistent
with the other DOCKER_ environment variables that Porter recognizes,
such as DOCKER_HOST.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs marked this pull request as ready for review August 2, 2021 18:00
@carolynvs carolynvs merged commit ed34ab7 into getporter:main Aug 2, 2021
@carolynvs carolynvs deleted the docker-network-setting branch August 2, 2021 19:14
@carolynvs carolynvs mentioned this pull request Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm3 in a minikube enviroment times out
2 participants