-
Notifications
You must be signed in to change notification settings - Fork 91
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
[Feature Request] Ability to build dockerfile located inside sub-directories #83
Comments
@dduportal Hi! Have you tried setting build:
version: 2016-03-14 # version of the build schema.
steps:
test:
name: test
dockerfile: test/Dockerfile
work_dir: test/ I suppose it would work as far as I could see from the implementation 😉 |
Hello @mumoshu @khash , thanks for your feedback (and title fix, my aplogizes). While I am playing with the Where could I find the www.habitus.io website documentation content to help? |
Thanks for this @mumoshu , but alas, it is not working:
I am reading the source code and trying to get myself ready in Go to contribute. As I understand the |
@dduportal thanks for the offer of help with documentation. You can find Habitus.io contents under the |
And documentation PR: #103 |
Hello!
Thanks for your work on this project!
I would want to replace my handmade Makefile by habitus to build my docker images library, which are all located on a single repository (inter-dependencies).
Each Dockerfile is stored in a dedicated folder (goal: only upload the context of a given image when building it).
With the current
habitus
version (v1.0.1
), theCOPY
directives are exiting in error with the following message:If I move (and adapt) my build.yml into the image directory, then it works as expected.
I can also use the "artifacts" instruction to make it work, but it would make my Dockerfile too tightened to habitus (and not feature-complete).
Based on the documentation, I understand that the flag "d" passed to the commandline give the working directory for habitus. Haven't read the code yet, but I suppose this working directory is uploaded to the remote docker engine, with the generated Dockerfiles inside. But the content of sub directories is not, leading in this error.
It would nice to be able to specify sub directories for the
dockerfile
instruction in thebuild.yml
.It would allow the build.yml to "orchestrate" the build, but keeping a logical isolation for the source code, as well as allowing more complex build patterns using git subtrees, virtual FS views, etc.
I've put an example of expectation for this feature below:
build.yml
:Dockerfile
:Tell me if this is clear, or if you need more information, review, or whatever help on this.
The text was updated successfully, but these errors were encountered: