Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Make tmpfs mount option work.
Browse files Browse the repository at this point in the history
Actually a directory within the bundle is bind mounted.
Closes #4.

Signed-off-by: Max Goltzsche <[email protected]>
  • Loading branch information
mgoltzsche committed Aug 2, 2019
1 parent fe06522 commit 2624de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewResourceResolver(paths PathResolver, vols map[string]Volume) ResourceRes
}

func (self *resourceResolver) ResolveMountSource(m VolumeMount) (src string, err error) {
if m.Source == "" && m.Type != MOUNT_TYPE_TMPFS {
if m.Source == "" || m.Type == MOUNT_TYPE_TMPFS {
src = self.anonymous(m.Target)
} else if m.Type == MOUNT_TYPE_VOLUME {
src, err = self.named(m.Source)
Expand Down

0 comments on commit 2624de4

Please sign in to comment.