Skip to content
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
merged 4 commits into from
May 8, 2024

Conversation

kachick
Copy link
Owner

@kachick kachick commented May 8, 2024

Resolves #584

ref: kachick/containers#71

@kachick kachick added the deploy-staging Deploy staging container with this label label May 8, 2024

This comment has been minimized.

@kachick kachick removed the deploy-staging Deploy staging container with this label label May 8, 2024
@kachick
Copy link
Owner Author

kachick commented May 8, 2024

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

@kachick
Copy link
Owner Author

kachick commented May 8, 2024

@kachick
Copy link
Owner Author

kachick commented May 8, 2024

> 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

@kachick kachick merged commit 13d5c9e into main May 8, 2024
15 checks passed
@kachick kachick deleted the ubuntu-24.04 branch May 8, 2024 20:01
Copy link
Contributor

github-actions bot commented May 8, 2024

🤖 removed 🗑️ staging ⬢ from ghcr.io

213805759

@kachick
Copy link
Owner Author

kachick commented May 9, 2024

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

@kachick
Copy link
Owner Author

kachick commented May 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Ubuntu 24.04 LTS
1 participant