-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update container base image and WSL example to Ubuntu 24.04 #585
Merged
Conversation
This file contains 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 comment has been minimized.
This comment has been minimized.
Changed the 1000 id group 🙄 2! lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
~ zsh
> getent group 1000
kachick:x:1000:kachick
> lat /mnt/wsl/podman-sockets
drwxrwxrwx - root 9 May 04:05 /mnt/wsl/podman-sockets
drwxrwxrwx - root 9 May 04:05 └── podman-machine-default
srw-rw---- - root 9 May 04:05 ├── podman-root.sock
srw-rw---- - kachick 9 May 04:05 └── podman-user.sock > lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
~ zsh
> getent group 1000
lxd:x:1000:ubuntu
> lat /mnt/wsl/podman-sockets
drwxrwxrwx - root 9 May 04:05 /mnt/wsl/podman-sockets
drwxrwxrwx - root 9 May 04:05 └── podman-machine-default
srw-rw---- - root 9 May 04:05 ├── podman-root.sock
srw-rw---- - ubuntu 9 May 04:05 └── podman-user.sock So this > podman version
Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman socket: Get "http://d/v5.0.2/libpod/_ping": dial unix /mnt/wsl/podman-sockets/podman-machine-default/podman-user.sock: connect: permission denied |
> sudo chgrp kachick /mnt/wsl/podman-sockets/podman-machine-default/podman-user.sock
> podman version
Client: Podman Engine
Version: 5.0.2
API Version: 5.0.2
Go Version: go1.22.1
Git Commit: 3304dd95b8978a8346b96b7d43134990609b3b29
Built: Thu Apr 18 04:17:53 2024
OS/Arch: linux/amd64
Server: Podman Engine
Version: 5.1.0-dev-34115231a
API Version: 5.1.0-dev-34115231a
Go Version: go1.21.9
Built: Wed Apr 17 09:00:00 2024
OS/Arch: linux/amd64 |
🤖 removed 🗑️ staging ⬢ from ghcr.io
|
bash is bit slow now > lsb_release -a; bench_shells
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
Benchmark 1: zsh --interactive -c exit
Time (mean ± σ): 51.3 ms ± 0.9 ms [User: 44.6 ms, System: 17.8 ms]
Range (min … max): 50.5 ms … 52.5 ms 5 runs
Benchmark 2: bash -i -c exit
Time (mean ± σ): 70.7 ms ± 1.3 ms [User: 42.9 ms, System: 14.6 ms]
Range (min … max): 69.0 ms … 72.5 ms 5 runs
Benchmark 3: fish --interactive --command exit
Time (mean ± σ): 42.1 ms ± 0.7 ms [User: 42.5 ms, System: 10.6 ms]
Range (min … max): 41.4 ms … 43.2 ms 5 runs
Summary
fish --interactive --command exit ran
1.22 ± 0.03 times faster than zsh --interactive -c exit
1.68 ± 0.04 times faster than bash -i -c exit > lsb_release -a; bench_shells
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
Benchmark 1: zsh --interactive -c exit
Time (mean ± σ): 53.2 ms ± 2.1 ms [User: 50.1 ms, System: 12.1 ms]
Range (min … max): 50.9 ms … 56.0 ms 5 runs
Benchmark 2: bash -i -c exit
Time (mean ± σ): 84.0 ms ± 4.5 ms [User: 43.0 ms, System: 13.1 ms]
Range (min … max): 80.6 ms … 91.7 ms 5 runs
Benchmark 3: fish --interactive --command exit
Time (mean ± σ): 43.9 ms ± 2.2 ms [User: 47.2 ms, System: 7.2 ms]
Range (min … max): 41.5 ms … 46.8 ms 5 runs
Summary
fish --interactive --command exit ran
1.21 ± 0.08 times faster than zsh --interactive -c exit
1.91 ± 0.14 times faster than bash -i -c exit |
And the ubuntu provided bash is newer than NixOS 23.11 stable channel > lsb_release -a; /bin/bash --version; /home/kachick/.nix-profile/bin/bash --version
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. > lsb_release -a; /bin/bash --version; /home/kachick/.nix-profile/bin/bash --version
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. |
This was referenced May 10, 2024
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.
Resolves #584
ref: kachick/containers#71