Skip to content
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

error when trying to build the image via TRAMP #2

Open
CDitzel opened this issue Apr 18, 2020 · 1 comment
Open

error when trying to build the image via TRAMP #2

CDitzel opened this issue Apr 18, 2020 · 1 comment

Comments

@CDitzel
Copy link

CDitzel commented Apr 18, 2020

Hi Ian,

I tried to build Docker on a remote machine both by copying the file to the remote then connecting via TRAMP and then using

#+BEGIN_SRC docker-build :dir "." :tag test 
FROM python:3.8-slim-buster AS compile-image
#+END_SRC

and also by trying

#+BEGIN_SRC docker-build :dir "/ssh:my-ip:~/." :tag test 
FROM python:3.8-slim-buster AS compile-image
#+END_SRC

However, I get

unable to prepare context: path "/ssh:my_ip~/." not found

or sometimes

unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /ssh:ditzel@myip#7678:: no such file or directory

any ideas what going on here?

@ifitzpat
Copy link
Owner

sorry for the slow response, I just noticed this comment. The directory is passed directly to docker build so indeed the docker cli command wouldn't understand the tramp reference. I'll have a think how I can implement this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants