Added integration test, minor changes to files

This commit is contained in:
Priya Wadhwa
2018-03-08 11:49:56 -08:00
parent 04cca43ce4
commit 75e7e47b76
12 changed files with 99 additions and 50 deletions
+2 -7
View File
@@ -56,14 +56,9 @@ func PushImage(ms *img.MutableSource, destImg string) error {
return copy.Image(policyContext, destRef, srcRef, nil)
}
// AppendConfigHistory appends to the source image config history
func AppendConfigHistory(author string, emptyLayer bool) {
sourceImage.AppendConfigHistory(author, emptyLayer)
}
// SetEnvVariables sets environment variables as specified in the image
func SetEnvVariables() error {
envVars := sourceImage.Env()
func SetEnvVariables(ms *img.MutableSource) error {
envVars := ms.Env()
for key, val := range envVars {
if err := os.Setenv(key, val); err != nil {
return err