-
From all the documentation I have read, Porter works by bundling all the tools and commands into a utility container. Those commands then are executed from inside that container to deploy the application in whatever way is required. What I am having a difficult time wrapping my head around, is how these mixins can affect the machine they're running on. For example, if I want to deploy a simple docker-compose application, I could use the docker-compose mixin. At build time, all the docker images required are downloaded and added to the bundle, along with the docker-compose tool itself. When I deploy the app on my host server, do I have to set |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The bundle and its mixins only have access to what the user explicitly provides when they run the bundle, either through parameters, credentials or in the case of docker, the --allow-docker-host-access flag. It is up to the bundle author to declare what's needed by the bundle through those mechanisms. For bundles that require access to the docker host (usually because they are using the docker or docker-compose mixins), the bundle author should call that out by adding the following lines to the bundle. This tells porter that the bundle requires docker access, and porter will then help prompt the user to specify that flag. Right now porter doesn't have a way for the mixin to directly communicate this to Porter, so the bundle author needs to remember to do it. required:
- docker |
Beta Was this translation helpful? Give feedback.
The bundle and its mixins only have access to what the user explicitly provides when they run the bundle, either through parameters, credentials or in the case of docker, the --allow-docker-host-access flag. It is up to the bundle author to declare what's needed by the bundle through those mechanisms.
For bundles that require access to the docker host (usually because they are using the docker or docker-compose mixins), the bundle author should call that out by adding the following lines to the bundle. This tells porter that the bundle requires docker access, and porter will then help prompt the user to specify that flag. Right now porter doesn't have a way for the mixin to directly commu…