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

Add dockerfile template to manifest #311

Merged
merged 3 commits into from May 1, 2019

Conversation

carolynvs
Copy link
Member

Closes #41

I went with adding Dockerfile template field to the manifest. This way people have the flexibility to use whatever file naming they prefer and we don't run into issues when we write out the final Dockerfile. Originally I had suggested looking for an existing file named Dockerfile, which wouldn't work after porter build was run the first time (without changing how porter build works).

@ghost ghost assigned carolynvs May 1, 2019
@ghost ghost added the review label May 1, 2019
When a dockerfile template is specified in the manifest, instead of
using the default Dockerfile template (which uses debian:stretch for the
FROM), the user can supply their own template Dockerfile that they
commit alongside the porter.yaml file. During porter build, we use that
as the template, and appending lines to it.

It is the responsibility of the user to ensure that it is a suitable
image. For example, FROM scratch wouldn't work well because it doesn't
provide root ssl certificates, but FROM ubuntu would be just fine.
These are all function names on a struct named template, they don't all need to end in *Template as well
@carolynvs carolynvs merged commit b4b7039 into getporter:master May 1, 2019
@ghost ghost removed the review label May 1, 2019
@carolynvs carolynvs deleted the custom-dockerfile branch May 1, 2019 16:05
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.

Make the FROM configurable
2 participants