dockerfile: update run mounts to stable channel

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
v0.8
Tonis Tiigi 2020-10-04 20:30:50 -07:00
parent 78f3e86dc1
commit 906e34510d
21 changed files with 6 additions and 83 deletions

View File

@ -6,8 +6,8 @@ run:
modules-download-mode: vendor
build-tags:
- dfrunmount
- dfssh
- dfrunsecurity
- dfrunnetwork
linters:
enable:
@ -29,4 +29,4 @@ issues:
exclude-rules:
- linters:
- golint
text: "stutters"
text: "stutters"

View File

@ -108,7 +108,7 @@ case $TYP in
;;
"daily")
if [ -z $DAILY_TARGETS ]; then
DAILY_TARGETS="mounts secrets ssh"
# DAILY_TARGETS=""
fi
for TAG in $DAILY_TARGETS; do

View File

@ -1,16 +0,0 @@
// +build !dfrunmount
package dockerfile2llb
import (
"github.com/moby/buildkit/client/llb"
"github.com/moby/buildkit/frontend/dockerfile/instructions"
)
func detectRunMount(cmd *command, allDispatchStates *dispatchStates) bool {
return false
}
func dispatchRunMounts(d *dispatchState, c *instructions.RunCommand, sources []*dispatchState, opt dispatchOpt) ([]llb.RunOption, error) {
return nil, nil
}

View File

@ -1,13 +0,0 @@
// +build dfrunmount,!dfsecrets
package dockerfile2llb
import (
"github.com/moby/buildkit/client/llb"
"github.com/moby/buildkit/frontend/dockerfile/instructions"
"github.com/pkg/errors"
)
func dispatchSecret(m *instructions.Mount) (llb.RunOption, error) {
return nil, errors.Errorf("secret mounts not allowed")
}

View File

@ -1,13 +0,0 @@
// +build dfrunmount,!dfssh
package dockerfile2llb
import (
"github.com/moby/buildkit/client/llb"
"github.com/moby/buildkit/frontend/dockerfile/instructions"
"github.com/pkg/errors"
)
func dispatchSSH(m *instructions.Mount) (llb.RunOption, error) {
return nil, errors.Errorf("ssh mounts not allowed")
}

View File

@ -1,5 +1,3 @@
// +build dfrunmount
package dockerfile2llb
import (

View File

@ -1,5 +1,3 @@
// +build dfsecrets
package dockerfile2llb
import (

View File

@ -1,5 +1,3 @@
// +build dfssh
package dockerfile2llb
import (

View File

@ -1,5 +1,3 @@
// +build dfrunmount
package dockerfile
import (

View File

@ -1,5 +1,3 @@
// +build dfsecrets
package dockerfile
import (

View File

@ -1,5 +1,3 @@
// +build dfssh
package dockerfile
import (

View File

@ -1,7 +0,0 @@
// +build !dfsecrets
package instructions
func isSecretMountsSupported() bool {
return false
}

View File

@ -1,7 +0,0 @@
// +build !dfssh
package instructions
func isSSHMountsSupported() bool {
return false
}

View File

@ -1,5 +1,3 @@
// +build dfrunmount
package instructions
import (

View File

@ -1,5 +1,3 @@
// +build dfsecrets
package instructions
func isSecretMountsSupported() bool {

View File

@ -1,5 +1,3 @@
// +build dfssh
package instructions
func isSSHMountsSupported() bool {

View File

@ -1 +1 @@
dfrunmount dfrunsecurity dfsecrets dfssh dfrunnetwork
dfrunsecurity dfrunnetwork

View File

@ -1 +0,0 @@
dfrunmount

View File

@ -1 +0,0 @@
dfrunmount dfsecrets

View File

@ -1 +0,0 @@
dfrunmount dfssh

View File

@ -90,7 +90,7 @@ fi
DOCKERFILE_RELEASES_CUSTOM=""
if [ "$TEST_DOCKERFILE" == 1 ]; then
if [ -z $DOCKERFILE_RELEASES ]; then
DOCKERFILE_RELEASES="mainline experimental mounts secrets ssh"
DOCKERFILE_RELEASES="mainline experimental"
else
DOCKERFILE_RELEASES_CUSTOM=1
fi