-
Notifications
You must be signed in to change notification settings - Fork 109
dev.Dockerfile: allow skipping build of the web UI #1067
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
dev.Dockerfile: allow skipping build of the web UI #1067
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks. Just one request.
11e8907 to
2f1ac9f
Compare
We now run `make go-install-noui` and `make go-install-cli-noui` when the `NO_UI` build arg is set to 1 to skip building of the web UI when using the development docker container. If the `NO_UI` build arg is not set, `make go-install` and `make go-install-cli` are run as before the `NO_UI` build arg existed.
2f1ac9f to
ac37b67
Compare
|
fixed some bugs |
|
OK, everything works, but there is one really weird thing. It is about 11% faster if I build with the UI ! With UI Without UI You can see with UI it takes an extra 94.8 seconds to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK, LGTM 🎉
Weird that the build times differ. For me the NO_UI=1 build was quicker (4m36s vs 5m3s). But the actual Golang compilation part also took longer on the no-ui build.
Not sure why that would be. But it does depend on downloading Golang dependencies from the internet, perhaps it's just variation on network latency?
I have noticed some variability too, but it seems like the no-ui version is always longer. Whatever the issue is, I think it would need to be considered as part of a separate issue/PR, because I think what I've done here makes sense. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
We now run
make go-install-nouiandmake go-install-cli-nouiwhenthe
NO_UIbuild arg is set to 1 to skip building of the web UI whenusing the development docker container. If the
NO_UIbuild arg is notset,
make go-installandmake go-install-cliare run as before theNO_UIbuild arg existed.The Makefile also had to be slightly modified to support this feature.
This feature allows quicker rebuilding when using docker if you aren't doing anything with the web UI.