-
Notifications
You must be signed in to change notification settings - Fork 471
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding multistage-build for slimmer container #3012
Conversation
I am currently running into an issue where when I shell inside my backspace turns into a forward space, and I am hoping someone can reproduce to determine if there is a bug we need to track down or if I am just a nut :) Signed-off-by: vsoch <vsoch@users.noreply.github.com>
I'm trying to reproduce. Is it right that I have to pull a 6GB container layer? |
Unfortunately yes - the full development environment has ALL the things. But when you do the multistage build off of that base I think the entire thing goes down to 2-3GB. The user of this container won't need to pull that chonker! |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
okay I think the bug is fixed! Thanks @jandrej for the help!! 馃コ I can remove the PR trigger after review. As before, I know not to do any force pushes, etc. |
|
Sorry @vsoch, the PR kinda went under water. |
No worries, it鈥檚 ok. |
This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch. |
@acfisher, can you please take a look when you get a chance? |
@@ -2,6 +2,9 @@ name: Build Deploy Container | |||
|
|||
on: | |||
|
|||
# TODO MUST REMOVE BEFORE MERGING THIS IS TO TEST BUILD ONLY |
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.
Remember to remove this
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Merged in |
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.
Thank you @vsoch !
This is a small update to add a (much smaller) multistage build for mfem. This means the original Dockerfile is renamed to Dockerfile.base, and the new (smaller) one is the Dockerfile that builds to the smaller image. The namespace (final container names) does not change, but we add
ghcr.io/mfem/mfem-ubuntu
(without the base).But I am currently running into an issue where when I shell inside my backspace turns into a forward space, and I am hoping someone can reproduce to determine if there is a bug we need to track down or if I am just a nut :) Here is the bug as I see it:
https://asciinema.org/a/495023?speed=2
To reproduce, just build the container and shell inside, and then try to navigate around.
docker build -f config/docker/Dockerfile -t ghcr.io/mfem/mfem-ubuntu . docker run -it ghcr.io/mfem/mfem-ubuntu
It would be good if someone can reproduce it because my conclusion at this point is "there is a ghost in this container!" 馃槅
Signed-off-by: vsoch vsoch@users.noreply.github.com
PR Checklist
make style
.CHANGELOG
:CHANGELOG
to group with other related features?INSTALL
:make
orcmake
have a new target?.github
.appveyor.yml
.gitignore
:make distclean; git status
shows any files that were generated from the source by the project (not an IDE) but we don't want to track in the repository.examples/makefile
:SEQ_EXAMPLES
andPAR_EXAMPLES
variables.clean
target..gitignore
file.examples/CMakeLists.txt
:ALL_EXE_SRCS
variable.THIS_TEST_OPTIONS
is set correctly for the new example.doc/CodeDocumentation.dox
.examples/pumi
), list it indoc/CodeDocumentation.conf.in
src/examples.md
.src/examples.md
andsrc/img
.examples.md
, list the example under the appropriate categories, add new categories if necessary.features.md
.makefile
andmakefile
in corresponding miniapp directory..gitignore
file.CMakeLists.txt
file in theminiapps
directory, if the new miniapp is in a new directory.CMakeLists.txt
file in the new miniapp directory.doc/CodeDocumentation.dox
miniapps/nurbs
), add it toMINIAPP_SUBDIRS
in themakefile
.miniapps/nurbs
), list it indoc/CodeDocumentation.conf.in
src/meshing.md
andsrc/electromagnetics.md
files.src/examples.md
andsrc/img
.features.md
.mfem/web
repo.README
(rare).doc/CodeDocumentation.dox
(rare).make unittest
to make sure all unit tests pass.tests/scripts
.