-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allow using Docker to build #82
Conversation
LGTM if it produces the result you want! |
448aebc
to
c998d19
Compare
@defunctzombie I tried to update this to pass the This kind of makes sense; it's trying to be stateless between runs, I guess. It's not a persistent VM I get to boot up and play in every run. But do you have any advice on this pattern? |
The way docker layer caching works is by looking at what changed in a given layer. This could be the layer run command or the files copied during a layer. For example the following layer Likewise Since your build script runs after both of these lines it will be run every time any source or build file changes. I suspect what you really want is to run some version of the build script that downloads only the dependencies after the |
That makes a lot of sense, thanks. I'll open that as a new possibility. In the meantime, I am using this day-to-day on my Windows machine and loving it. I'd like to get it merged. Do any other maintainers want to try it out and report back? Or at least just review the changes to the README? |
I’ll make time to try this out over the next couple days but would not be unhappy if somebody else beat me to it :) (and very glad to see this getting ready to land) |
Closes #55. Supercedes whatwg/html#612.
I'm going to merge this. I've been using it successfully for months in order to build on Windows :). |
Uhhhh GitHub merge UI didn't give @defunctzombie credit, force-pushing better merge... |
Closes #55. Supercedes whatwg/html#612.
@defunctzombie, this is what I came up with after the discussions on whatwg/html#612. I think we may eventually consider harder merging the html-build and html repos, but until we do, this seems to fit better with the current infrastructure. I think we do all appreciate though your perspective that we are making life harder on contributors by not letting them just clone one repo and go.
Notably, this setup allows us to reuse
./build.sh
as the main entry point, which does things like check for updates and guide the users through cloningwhatwg/html
. It thus helps hide the potentially-scary docker commands behind a nicer facade.I'd appreciate any review, both from @defunctzombie for the mutilations I made to his beautiful setup, and from other editors who are willing to give this a shot, or review the new README.md.
Also, if anyone has ideas on how to best solve the
that'd be swell. (Basically, if those are set in the outer invocation of build.sh, then the Dockerfile should pass the corresponding --no-update, --quiet, or --verbose flags onward. I can imagine several ways to do this, all fairly inelegant.)