Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.6 KB

File metadata and controls

37 lines (26 loc) · 1.6 KB

Docker Mixin Example Bundle

This is an example bundle to show how to use the Docker mixin in Porter!

Contents

porter.yaml

This is the porter manifest. See https://porter.sh/author-bundles/ for details on every field and how to configure your bundle. This is a required file.

The commands available in the docker mixin are docker pull, push, build, run, remove, and login.

Notes on docker login

Login has two optional parameters - username and password. To pass in the username and password, you should set them as environment variables and pass them in to your bundle as credentials. In order to pass them in as credentials, you need to add the credentials section in the yaml. You need to run porter credentials generate and specify where the values come from. Then, when you run porter install, pass in the credentials by doing --cred or -c followed by the name of the credential set, for example porter install --cred mycreds.

Dockerfile-cookies

This dockerfile was created to show how you can use docker build within a bundle. The docker build step defined in the install action of the porter.yaml uses this dockerfile to print out a message.

.gitignore

This is a default file that we provide to help remind you which files are generated by Porter, and shouldn't be committed to source control. You can delete it if you don't need it.

.dockerignore

This is a default file that controls which files are copied into the bundle's invocation image by default. You can delete it if you don't need it.