-
Notifications
You must be signed in to change notification settings - Fork 51
Rootless + smaller image + cleanup #402
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: v1.10.0
Are you sure you want to change the base?
Conversation
9eb0bf6
to
633c4b2
Compare
I'm glad i found this PR. I was actually going to do something similar. Although my plan was to change only Dockerfile, docker-compose.yml and create an entry-point.sh if it's not too late, i would like to suggest a few things.
Please let me know if you agree with my proposal, so i can prepare the changes |
As I mentioned in the comment, The initial goal of my PR was not a fully fledge auto-build but improving the image, its size, security and the organization of the scripts. I agree however that, once this PR is merged, the build should be automated. Bigger PRs are harder to review and get merged. It seems that my PR is "big" enough so I would suggest lining up a new PR for the automation and wait until this one gets merged.
100% with you. Just beware that there was no reaction on my PR in a while, I am not sure that it is considered as "interesting" despite the security increase....
That would be a good addition indeed. |
Thanks for the PR and I support making some updates to the Docker setup here. However, since the PR is quite large, I think it would be good to move some of these updates into separate PRs to be merged. |
I tried keeping it small but most of the refactoring are motivated by the rework of the image. |
I think it would be good to focus on just whats needed for the rootless Dockerfile updates with a smaller image. It is a bit clouded by all the cleanup items when trying to review. |
I know the discomfort of reviewing big PRs :) If you fly over the formatting and file moving for html and md files (whose changes are insignificant to very small), there is not much left really. I could make an extra PR to get those missing EOF/EOL out of this PR but this is quite some effort for a small gain. Moving files around was mainly motivated to keeping filters and copies simpler so it is hard to remove those without making the PR actually more complex. |
This PR looks bigger than it is, due to the removal of leading spaces...
Here are the changes:
container
subfolderjustfile
, it is convenient for those using it, inert for others. It provides also a nice doc and shows how to build the images. See below.justfile
Users not using
just
can just ignore.For others, you need to set your
IMAGE=...
in the.env
file. It will typically look likeIMAGE=your_name/lndg
.Alternatively, you may provide your own registry:
IMAGE=docker.io/chevdor/lndg
.After that, you may just 😄 run:
just build_image
andjust push_image
.WARNING: Change for Docker users lndg is now in
/lndg/
and no longer/app
.