Dockerfile: update syntax, switch to bullseye, add missing libseccomp-dev, remove build pack#42763
Merged
AkihiroSuda merged 6 commits intomoby:masterfrom Aug 22, 2021
Hidden character warning
The head ref may contain hidden characters: "go_\ud83c\udfaf"
Merged
Dockerfile: update syntax, switch to bullseye, add missing libseccomp-dev, remove build pack#42763AkihiroSuda merged 6 commits intomoby:masterfrom
AkihiroSuda merged 6 commits intomoby:masterfrom
Conversation
thaJeztah
commented
Aug 19, 2021
Comment on lines
56
to
57
Member
Author
There was a problem hiding this comment.
Looks like setcap was removed from bullseye at some point;
docker run --rm debian:bullseye@sha256:7190e972ab16aefea4d758ebe42a293f4e5c5be63595f4d03a5b9bf6839a4344 sh -c 'setcap CAP_NET_BIND_SERVICE=+eip /bin/sleep'
docker run --rm debian:bullseye sh -c 'setcap CAP_NET_BIND_SERVICE=+eip /bin/sleep'
sh: 1: setcap: not found90f8d0c to
61e0ad9
Compare
Member
Author
|
Arf.. output format changed of |
Member
Author
|
Ahm... needs some more tests to be updated; |
Member
Author
|
Getting close now; only one related failure; |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Otherwise errors within this function will all show to be at the line
number of the utility, instead of where it failed in the test:
=== RUN TestDaemonDefaultNetworkPools
service_test.go:23: assertion failed:
Command: ip link delete docker0
ExitCode: 127
Error: exec: "ip": executable file not found in $PATH
Stdout:
Stderr:
Failures:
ExitCode was 127 expected 0
Expected no error
=== RUN TestDaemonRestartWithExistingNetwork
service_test.go:23: assertion failed:
Command: ip link delete docker0
ExitCode: 127
Error: exec: "ip": executable file not found in $PATH
Stdout:
Stderr:
Failures:
ExitCode was 127 expected 0
Expected no error
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
tianon
reviewed
Aug 20, 2021
Dockerfile
Outdated
Member
There was a problem hiding this comment.
Suggested change
| inetutils-ping\ | |
| inetutils-ping \ |
👀
Dockerfile.e2e
Outdated
Member
There was a problem hiding this comment.
Suggested change
| inetutils-ping\ | |
| inetutils-ping \ |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
commit 7168d98 removed these, but we overlooked that the same stage is used to build runc as well, so we likely need these. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Update the frozen images to also be based on Debian bullseye. Using the "slim"
variant (which looks to have all we're currently using), and remove the
buildpack-dep frozen image.
The buildpack-dep image is quite large, and it looks like we only use it to
compile some C binaries, which should work fine on a regular debian image;
docker build -t debian:bullseye-slim-gcc -<<EOF
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y gcc libc6-dev --no-install-recommends
EOF
docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
debian bullseye-slim-gcc 1851750242af About a minute ago 255MB
buildpack-deps bullseye fe8fece98de2 2 days ago 834MB
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Member
Author
|
@tianon fixed; PTAL |
Member
Author
|
New flaky test? ("interesting" error) |
tianon
approved these changes
Aug 21, 2021
| --mount=type=cache,sharing=locked,id=moby-criu-aptcache,target=/var/cache/apt \ | ||
| chmod 0644 /etc/apt/trusted.gpg.d/criu.gpg.asc \ | ||
| && echo 'deb https://download.opensuse.org/repositories/devel:/tools:/criu/Debian_10/ /' > /etc/apt/sources.list.d/criu.list \ | ||
| echo 'deb https://download.opensuse.org/repositories/devel:/tools:/criu/Debian_10/ /' > /etc/apt/sources.list.d/criu.list \ |
Member
There was a problem hiding this comment.
Should we add something like TODO update to Debian_11 or just not worry about it? (It's probably fine.)
Member
Author
There was a problem hiding this comment.
I'm hoping @kolyshkin will remind me at that time; opencontainers/runc#3171 (comment) 😁
Member
Author
|
@AkihiroSuda @cpuguy83 PTAL |
AkihiroSuda
approved these changes
Aug 22, 2021
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
So, this started with the intention to "just" update
bustertobullseye, but finding various issues that needed fixing, or could be improved.Dockerfile: update to docker/dockerfile:1.3, and remove temporary fix.
I saw we were using an older syntax, and the issue I reported (moby/buildkit#2114) was fixed in dockerfile:1.3 front-end, so upgrading allowed me to remove the temporary fix.
Dockerfile: remove aufs-tools, as it's not available on bullseye
Well, title says all. No more aufs?
Dockerfile: update to debian bullseye
Well, that's what I came here for 😂
Dockerfile: add back libseccomp-dev to cross-compile runc
Commit 7168d98 removed these, but I think we overlooked that the same stage is used to build runc as well, so we likely need these. (but happy to remove if we really don't need them!)
Dockerfile: frozen images: update to bullseye, remove buildpack-dep
Update the frozen images to also be based on Debian bullseye. Using the "slim" variant (which looks to have all we're currently using), and remove the buildpack-dep frozen image.
The buildpack-dep image is quite large, and it looks like we only use it to compile some C binaries, which should work fine on a regular debian image;
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)