This website requires JavaScript.
Explore
Help
Register
Sign In
JohnHammond
/
buildkit
mirror of
https://github.com/JohnHammond/buildkit.git
Watch
1
Star
0
Fork
You've already forked buildkit
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
5ea3a003f7
buildkit
/
frontend
/
dockerfile
/
instructions
/
commands_nossh.go
8 lines
91 B
Go
Raw
Normal View
History
Unescape
Escape
dockerfile: remove dfextall build tag Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-10-15 22:34:13 +00:00
// +build !dfssh
dockerfile: add support for RUN --mount=type=ssh * Needs to be compiled with `dfrunmount dfssh` * Implemented options: * `type`(required): needs to be `ssh` * `target`(optional): the socket path in the container * `id`(optional): id Test script: #!/bin/bash set -exu -o pipefail REF=localhost:5000/dfssh:latest ssh-add -l sudo buildctl build --frontend=dockerfile.v0 --local context=. --local dockerfile=frontend/dockerfile/cmd/dockerfile-frontend \ --frontend-opt "build-arg:BUILDTAGS=dfrunmount dfssh" \ --exporter=image --exporter-opt name=$REF --exporter-opt push=true mkdir -p /tmp/foo cd /tmp/foo cat << EOF > Dockerfile # syntax=$REF FROM alpine RUN apk add --no-cache openssh-client RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com >> ~/.ssh/known_hosts RUN --mount=type=ssh ssh git@gitlab.com # "Welcome to GitLab, @GITLAB_USERNAME_ASSOCIATED_WITH_SSHKEY" should be printed here EOF sudo buildctl build --ssh default=$SSH_AUTH_SOCK --progress=plain --frontend=dockerfile.v0 --local context=. --local dockerfile=. Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-10-02 05:25:26 +00:00
package
instructions
func
isSSHMountsSupported
(
)
bool
{
return
false
}