-
Notifications
You must be signed in to change notification settings - Fork 951
[WIP] Refactor Dockerfile #8429
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
base: master
Are you sure you want to change the base?
Conversation
I'm removing the manual handling of ENTRYPOINT [ "/usr/bin/tini", "-g", "--", "./entrypoint.sh" ] becomes: ENTRYPOINT ["/entrypoint.sh"] and the user is free to run the container with tini by using the official docker run --init ... |
30c3c61
to
db48b79
Compare
The Dockerfile now should also support building the image from any host architecture as well. It previously only suppported amd64 to any. now it should be any to any, but I've no way of testing it |
008f67c
to
ac0910c
Compare
I'd like to explore ways to not include the .git/ folder (aka placing it in the .dockerignore). Maybe we can add an option to the Makefile that doesn't call |
ff282af
to
b38a534
Compare
also I wonder why our Makefile #80 511.3 checking whether C compiler accepts -msse3... no
#80 512.0 checking for SSE3 instructions set... yes
#80 512.0 checking whether C compiler accepts -Wformat-nonliteral... no
#80 513.1 checking whether C compiler accepts -mssse3... yes
#80 513.6 checking whether C compiler accepts -Wformat-security... no
#80 513.9 checking for SSSE3 instructions set... no
#80 514.9 checking whether C compiler accepts -msse4.1... yes
#80 515.1 checking whether C compiler accepts -Wformat... no
#80 515.6 checking for SSE4.1 instructions set... yes
#80 516.3 checking whether C compiler accepts -Wstrict-prototypes... no
#80 517.0 checking whether C compiler accepts -mavx... no
#80 517.7 checking for AVX instructions set... yes
#80 517.8 checking whether C compiler accepts -Wshadow... no
#80 518.8 checking whether C compiler accepts -mavx2... yes
#80 519.1 checking whether C compiler accepts -Wnested-externs... no
#80 519.6 checking for AVX2 instructions set... yes
#80 520.3 checking whether C compiler accepts -Wcast-align... no
#80 520.5 checking whether C compiler accepts -mavx512f... no For a generic -- even arch specific -- docker build, we shouldn't use any intrinsics. They are not guaranteed to be present on all CPUs. There are different kinds of arm64 CPUs and different kinds of amd64 CPUs. We should NOT compile with -march=native or other flags such as -mavx2 |
@ShahanaFarooqui @cdecker feedback would be appreciated on the last 2 comments |
An implementation of #8443 would speedup the build quite a bit. 45 minutes to be precise! #80 1385.3 install -m 644 README.md LICENSE /tmp/lightning_install/share/doc/c-lightning
#80 4122.8 install cli/lightning-cli lightningd/lightningd tools/lightning-hsmtool tools/reckless /tmp/lightning_install/bin 2700 seconds elapsed for the installation of docs and manpages thanks to QEMU slowing down every open/close syscall and docker buildx chunked I/O |
e212e52
to
e264a55
Compare
e264a55
to
c145582
Compare
Nice changes, and with the switch to |
i dont want to undraft until these issues are addressed:
|
This is a draft PR to refactor the dockerfile according to issues: