Context files are immutable

This commit is contained in:
Ettore Di Giacinto
2020-12-12 11:55:25 +01:00
parent 797a34ba49
commit 95da20e366
4 changed files with 5 additions and 6 deletions

View File

@@ -237,14 +237,13 @@ RUN ` + s
return spec
}
// TODO: docker build image first. Then a backend can be used to actually spin up a container with it and run the steps within
// RenderBuildImage renders the dockerfile of the image used as a pre-build step
func (cs *LuetCompilationSpec) RenderBuildImage() (string, error) {
return cs.genDockerfile(cs.GetSeedImage(), cs.GetPreBuildSteps()), nil
}
// TODO: docker build image first. Then a backend can be used to actually spin up a container with it and run the steps within
// RenderStepImage renders the dockerfile used for the image used for building the package
func (cs *LuetCompilationSpec) RenderStepImage(image string) (string, error) {
return cs.genDockerfile(image, cs.BuildSteps()), nil
}