-
Notifications
You must be signed in to change notification settings - Fork 1.4k
more/new docker images #1157
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
Merged
more/new docker images #1157
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| FROM archlinux AS stage0 | ||
| COPY ./products/* /pkgx/ | ||
| RUN install -m 755 /pkgx/$(uname -m) /usr/local/bin/pkgx | ||
| RUN install -m 755 /pkgx/pkgm /usr/local/bin/pkgm | ||
|
|
||
| FROM archlinux AS stage1 | ||
| COPY --from=stage0 /usr/local/bin/pkgx /usr/local/bin/pkgm /usr/local/bin/ | ||
|
|
||
| CMD ["/bin/bash"] | ||
| ENTRYPOINT ["/usr/local/bin/pkgx"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| FROM debian:buster-slim AS stage0 | ||
| COPY ./products/* /pkgx/ | ||
| RUN install -m 755 /pkgx/$(uname -m) /usr/local/bin/pkgx | ||
| RUN install -m 755 /pkgx/pkgm /usr/local/bin/pkgm | ||
|
|
||
| # FIXME a newer glibc would be nice, but the libpthread.so we copy in then fails | ||
| FROM busybox:1.31-glibc AS stage1 | ||
| COPY --from=stage0 /usr/local/bin/pkgx /usr/local/bin/pkgm /usr/local/bin/ | ||
|
|
||
| # pkgx packages also need libgcc | ||
| COPY --from=stage0 /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1 | ||
| # these are part of glibc but for some reason this image doesn’t have them | ||
| COPY --from=stage0 /lib/x86_64-linux-gnu/librt-2.28.so /lib/librt.so.1 | ||
| COPY --from=stage0 /lib/x86_64-linux-gnu/libdl-2.28.so /lib/libdl.so.2 | ||
| # we need env for `pkgm` | ||
| COPY --from=stage0 /usr/bin/env /usr/bin/env | ||
|
|
||
| CMD ["/bin/bash"] | ||
| ENTRYPOINT ["/usr/local/bin/pkgx"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| FROM debian:stable-slim AS stage0 | ||
| COPY ./products/* /pkgx/ | ||
| RUN install -m 755 /pkgx/$(uname -m) /usr/local/bin/pkgx | ||
| RUN install -m 755 /pkgx/pkgm /usr/local/bin/pkgm | ||
|
|
||
| FROM debian:stable-slim AS stage1 | ||
| COPY --from=stage0 /usr/local/bin/pkgx /usr/local/bin/pkgm /usr/local/bin/ | ||
|
|
||
| CMD ["/bin/bash"] | ||
| ENTRYPOINT ["/usr/local/bin/pkgx"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| FROM ubuntu AS stage0 | ||
| COPY ./products/* /pkgx/ | ||
| RUN install -m 755 /pkgx/$(uname -m) /usr/local/bin/pkgx | ||
| RUN install -m 755 /pkgx/pkgm /usr/local/bin/pkgm | ||
|
|
||
| FROM ubuntu AS stage1 | ||
| COPY --from=stage0 /usr/local/bin/pkgx /usr/local/bin/pkgm /usr/local/bin/ | ||
|
|
||
| CMD ["/bin/bash"] | ||
| ENTRYPOINT ["/usr/local/bin/pkgx"] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'd also recommend you pin the major version of the base image.
At least something like
ubuntu:nobleanddebian:bookwork-slimto give you some control over it.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.
I'm less keen to do this (at least for now, due to maintenance reasons). Users who want pinning should make their own images. Installing
pkgxis trivial.Uh oh!
There was an error while loading. Please reload this page.
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.
New Ubuntu and Debian major versions happens on every 2 years... it shouldn't be a big problem lol.
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.
Ubuntu LTS is 2 years. Ubuntu releases a new version every April and October, iirc.
Uh oh!
There was an error while loading. Please reload this page.
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.
Yeah, but I meant how frequent the
ubuntu:latestanddebian:latesttag changes, which is Ubuntu LTS and Debian Stable based.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.
Try building
nodewith these images. It will fail.Uh oh!
There was an error while loading. Please reload this page.
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.
I see now.
This could be a problem if some user uses or extends from the pkgx docker image to do things like building their own C++ projects.
Maybe we can consider that use case a stretch. Also, doing a
FROM pkgxdev/pkgx \n RUN apt-get update && apt-get install -y libstdc++is probably not a big deal for these users.But I agree the best would be if it "just works", without having to install extra dependencies.
I'm glad to learn that this is being addressed in the new manifests, which would mean the containers need not to ship things like libstdc++. Very exciting. :)
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.
PS: the previous default image was already
debian:PUh oh!
There was an error while loading. Please reload this page.
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.
the previous image was debian yes, but it preinstalled some apt packages which the new one does not.
I’d like to be able to ship
pkgxin alpine or even just a container with a kernel. But we need glibc and probably some logic in pkgx itself so it doesn't install glibc if it doesn't need to since that is excessive.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.
I completely agree. It would be awesome (and it would make a lot of sense) to have a distroless image with just pkgx.