Browse Source

Merge pull request #13034 from icecrime/remove_insert_instruction

Remove unused Dockerfile instruction INSERT
Doug Davis 10 years ago
parent
commit
a592dce97b
4 changed files with 0 additions and 9 deletions
  1. 0 2
      builder/command/command.go
  2. 0 5
      builder/dispatchers.go
  3. 0 1
      builder/evaluator.go
  4. 0 1
      builder/parser/parser.go

+ 0 - 2
builder/command/command.go

@@ -16,7 +16,6 @@ const (
 	Expose     = "expose"
 	Expose     = "expose"
 	Volume     = "volume"
 	Volume     = "volume"
 	User       = "user"
 	User       = "user"
-	Insert     = "insert"
 )
 )
 
 
 // Commands is list of all Dockerfile commands
 // Commands is list of all Dockerfile commands
@@ -35,5 +34,4 @@ var Commands = map[string]struct{}{
 	Expose:     {},
 	Expose:     {},
 	Volume:     {},
 	Volume:     {},
 	User:       {},
 	User:       {},
-	Insert:     {},
 }
 }

+ 0 - 5
builder/dispatchers.go

@@ -512,8 +512,3 @@ func volume(b *Builder, args []string, attributes map[string]bool, original stri
 	}
 	}
 	return nil
 	return nil
 }
 }
-
-// INSERT is no longer accepted, but we still parse it.
-func insert(b *Builder, args []string, attributes map[string]bool, original string) error {
-	return fmt.Errorf("INSERT has been deprecated. Please use ADD instead")
-}

+ 0 - 1
builder/evaluator.go

@@ -71,7 +71,6 @@ func init() {
 		command.Expose:     expose,
 		command.Expose:     expose,
 		command.Volume:     volume,
 		command.Volume:     volume,
 		command.User:       user,
 		command.User:       user,
-		command.Insert:     insert,
 	}
 	}
 }
 }
 
 

+ 0 - 1
builder/parser/parser.go

@@ -61,7 +61,6 @@ func init() {
 		command.Entrypoint: parseMaybeJSON,
 		command.Entrypoint: parseMaybeJSON,
 		command.Expose:     parseStringsWhitespaceDelimited,
 		command.Expose:     parseStringsWhitespaceDelimited,
 		command.Volume:     parseMaybeJSONToList,
 		command.Volume:     parseMaybeJSONToList,
-		command.Insert:     parseIgnore,
 	}
 	}
 }
 }