diff options
author | Dan Duvall <dduvall@wikimedia.org> | 2018-09-17 16:00:05 -0700 |
---|---|---|
committer | Dan Duvall <dduvall@wikimedia.org> | 2018-10-01 16:40:20 -0700 |
commit | af9e797908c0d5ed7780a5386aa773ecdd9cc51c (patch) | |
tree | f8894bca5a9c40875b708a86554fcd922ca15380 /build | |
parent | df5e386938769c48c604b2d1804f505d6faf6594 (diff) | |
download | blubber-af9e797908c0d5ed7780a5386aa773ecdd9cc51c.tar.gz |
Remove support for `sharedvolume` configuration
Support for mounting a shared volume instead of copying application
files was meant to provide an option for development use cases. This
functionality has never been thoroughly tested or utilized for any use
case. It should be removed for now.
Relates tangentially to task T204591 that simplifies node support.
Change-Id: Ib70cb7bceb504841897a38d732880ba376fe67c8
Diffstat (limited to 'build')
-rw-r--r-- | build/instructions.go | 13 | ||||
-rw-r--r-- | build/instructions_test.go | 6 |
2 files changed, 0 insertions, 19 deletions
diff --git a/build/instructions.go b/build/instructions.go index d6cc1c3..4e48e88 100644 --- a/build/instructions.go +++ b/build/instructions.go @@ -173,19 +173,6 @@ func (user User) Compile() []string { return []string{quote(user.Name)} } -// Volume is a concrete build instruction for defining a volume mount point -// within the container. -// -type Volume struct { - Path string // volume/mount path -} - -// Compile returns the quoted volume path. -// -func (vol Volume) Compile() []string { - return []string{quote(vol.Path)} -} - // WorkingDirectory is a build instruction for defining the working directory // for future command and entrypoint instructions. // diff --git a/build/instructions_test.go b/build/instructions_test.go index 7cc2b20..0bf07b9 100644 --- a/build/instructions_test.go +++ b/build/instructions_test.go @@ -104,12 +104,6 @@ func TestUser(t *testing.T) { assert.Equal(t, []string{`"foo"`}, i.Compile()) } -func TestVolume(t *testing.T) { - i := build.Volume{"/foo/dir"} - - assert.Equal(t, []string{`"/foo/dir"`}, i.Compile()) -} - func TestWorkingDirectory(t *testing.T) { i := build.WorkingDirectory{"/foo/path"} |