summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/instructions.go4
-rw-r--r--docker/instructions_test.go10
2 files changed, 0 insertions, 14 deletions
diff --git a/docker/instructions.go b/docker/instructions.go
index 8f5c63c..4095eb4 100644
--- a/docker/instructions.go
+++ b/docker/instructions.go
@@ -51,10 +51,6 @@ func NewInstruction(bi build.Instruction) (Instruction, error) {
case build.User:
i.name = "USER"
- case build.Volume:
- i.name = "VOLUME"
- i.array = true
-
case build.WorkingDirectory:
i.name = "WORKDIR"
}
diff --git a/docker/instructions_test.go b/docker/instructions_test.go
index b89a721..7124ff0 100644
--- a/docker/instructions_test.go
+++ b/docker/instructions_test.go
@@ -113,16 +113,6 @@ func TestUser(t *testing.T) {
}
}
-func TestVolume(t *testing.T) {
- i := build.Volume{"/foo/dir"}
-
- di, err := docker.NewInstruction(i)
-
- if assert.NoError(t, err) {
- assert.Equal(t, "VOLUME [\"/foo/dir\"]\n", di.Compile())
- }
-}
-
func TestWorkingDirectory(t *testing.T) {
i := build.WorkingDirectory{"/foo/dir"}