-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to build image with client as a separate machine? #1025
Comments
Server: |
or Maybe we can add |
You may also want to try |
@AkihiroSuda thank you! I will have a try! |
@AkihiroSuda , I still have not made it through, here is what I tried, openssl genrsa -des3 -out tlsca.key 4096
openssl req -x509 -new -nodes -key tlsca.key -sha256 -days 1024 -out tlsca.crt
openssl genrsa -out tls.key 2048
openssl req -new -key tls.key -out tls.csr
openssl x509 -req -in tls.csr -CA tlsca.crt -CAkey tlsca.key -CAcreateserial -out tls.crt -days 500 -sha256 And then start the service, buildkitd --addr tcp://0.0.0.0:1234 --tlscert /home/dave/pass/tls.crt --tlskey /home/dave/pass/tls.key --tlscacert /home/dave/pass/tlsca.crt --debug --root /var/lib/buildkit --oci-worker=false --containerd-worker=true copy the certificate to client and then build the in this way, buildctl --addr tcp://10.169.36.51:1234 --tlscert /home/dave/pass/tls.crt --tlskey /home/dave/pass/tls.key --tlscacert /home/dave/pass/tlsca.crt --tlsservername 10.169.36.51 build --frontend dockerfile.v0 --local dockerfile=. --local context=. --output type=image,name=jungler/multiarch
[+] Building 0.0s (0/0)
error: failed to dial gRPC: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 10.169.36.51 because it doesn't contain any IP SANs" Do you know what's wrong here? |
I think
wan to confirm with you, with |
It can also forward UNIX sockets:
If we are going to add ssh helper (just as in |
@AkihiroSuda , I managed to build with tls certificate successfully, and will try other approaches later. Thanks for your help and those good information/great suggestion. I do think there should be some doc to explain those features :) |
server and client are deployed on different machines, I tried to build the image with the below command but failed with exceptions,
I have not found any doc to explain how to build image in this case, would like to get some help for this case, thanks!
The text was updated successfully, but these errors were encountered: