Mercurial > code > home > repos > infra
comparison packages.py @ 273:f7178138b736
pkgs and special podman future version
author | drewp@bigasterisk.com |
---|---|
date | Sun, 03 Mar 2024 21:02:58 -0800 |
parents | 0ed4add0b1a4 |
children | 058c312ffdce |
comparison
equal
deleted
inserted
replaced
272:705698800bfb | 273:f7178138b736 |
---|---|
31 # https://github.com/pnpm/pnpm/releases | 31 # https://github.com/pnpm/pnpm/releases |
32 # but also https://pnpm.io/installation#compatibility | 32 # but also https://pnpm.io/installation#compatibility |
33 "corepack prepare 'pnpm@8.6.3' --activate", | 33 "corepack prepare 'pnpm@8.6.3' --activate", |
34 ]) | 34 ]) |
35 | 35 |
36 def podman(): | |
37 apt.packages(packages=['libsubid4', 'buildah', 'podman-docker'], latest=True) | |
38 # frigate build wants to mount a single file from the host, which needs podman 4.5.1 | |
39 # https://github.com/containers/podman/issues/12123#issuecomment-1620439593 | |
40 apt.deb(src="http://ftp.osuosl.org/pub/ubuntu/pool/universe/libp/libpod/podman_4.9.3+ds1-1_amd64.deb") | |
36 | 41 |
37 def pdm(): | 42 def pdm(): |
38 # https://github.com/pdm-project/pdm/blob/main/CHANGELOG.md | 43 # https://github.com/pdm-project/pdm/blob/main/CHANGELOG.md |
39 server.shell(["pip install --break-system-packages 'pdm==2.12.2'"]) | 44 server.shell(["pip install --break-system-packages 'pdm==2.12.2'"]) |
40 | 45 |
93 apt.packages(packages=package_lists.laptop, **kw) | 98 apt.packages(packages=package_lists.laptop, **kw) |
94 | 99 |
95 if host.name in ['dash', 'slash', 'ditto', 'dot']: | 100 if host.name in ['dash', 'slash', 'ditto', 'dot']: |
96 apt.packages(packages=package_lists.k8s_node_with_nvidia_gpu(host.name)) # no kw, or apt will remove nvidia-utils-VERS (!) | 101 apt.packages(packages=package_lists.k8s_node_with_nvidia_gpu(host.name)) # no kw, or apt will remove nvidia-utils-VERS (!) |
97 | 102 |
103 if host.name in ['dash', 'slash', 'ditto']: | |
104 podman() | |
105 | |
98 if host.name == 'ditto': | 106 if host.name == 'ditto': |
99 # should have happened in the previous step, but it gets reverted. | 107 # should have happened in the previous step, but it gets reverted. |
100 apt.packages(packages=['nvidia-utils-535-server']) | 108 apt.packages(packages=['nvidia-utils-535-server']) |
101 | 109 |
102 if not is_pi: | 110 if not is_pi: |