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

how to pass context along with fileobj? #2682

Open
nitishxp opened this issue Oct 7, 2020 · 1 comment
Open

how to pass context along with fileobj? #2682

nitishxp opened this issue Oct 7, 2020 · 1 comment

Comments

@nitishxp
Copy link

nitishxp commented Oct 7, 2020

My code files is located somewhere else and my docker build script is somewhere.

Getting error while running since Dockerfile is not able to find the context files

@majkrzak
Copy link

majkrzak commented Oct 8, 2020

I've already raised this issue "couple of days ago" (#2105), but it seems that project got abandoned, because nobody form the maintainers care about it. There is also PR with this functionality #2456

Currently my way is to use the following pollyfil:

import docker.api.build
docker.api.build.process_dockerfile = lambda dockerfile, path: ('Dockerfile', dockerfile)

IMO will be good if someone who have time will adopt this project. No matter what Docker is still very popular nowadays, so it is externally sad that python library is dead and not maintained.

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