docs/installation.md: Add dependencies for building on Debian#363
docs/installation.md: Add dependencies for building on Debian#363rhatdan merged 1 commit intocontainers:mainfrom
Conversation
* gcc: for make conmon and podman * passt: for could not find pasta error * crun -> runc: for error running container unkn version specified error Signed-off-by: H Dub <14808878+hdub-tech@users.noreply.github.com>
|
LGTM |
|
LGTM afaict. @siretart would you mind reviewing this as well please? |
|
Lgtm |
|
dnf install crun-1.14.3 |
@DDilinger I'll be glad to merge another PR with this included in case you'd like to create one. |
|
Crun is mentioned in the That said, a few days after this PR was merged, I discovered |
TL;DR:
gcc: formakefor conmon and podmanpasst: forcould not find pastaerror (Fixes There is no mention of "pasta" on the install page, only "slirp4netns" #285)crun->runc: for error running container unknown version specified error in DebianDetails
Problem:
cc/gccnot found for conmon and podmanDetails
conmon
podman
Solution: install gcc (doc updated)
Details
conmon compiles
podman-bento-debian12: ========= Setup conmon ========= podman-bento-debian12: mkdir -p bin podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/conmon.o -c src/conmon.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/cmsg.o -c src/cmsg.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/ctr_logging.o -c src/ctr_logging.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/utils.o -c src/utils.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/cli.o -c src/cli.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/globals.o -c src/globals.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/cgroup.o -c src/cgroup.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/conn_sock.o -c src/conn_sock.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/oom.o -c src/oom.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/ctrl.o -c src/ctrl.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/ctr_stdio.o -c src/ctr_stdio.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/parent_pipe_fd.o -c src/parent_pipe_fd.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/ctr_exit.o -c src/ctr_exit.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/runtime_args.o -c src/runtime_args.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/close_fds.o -c src/close_fds.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/seccomp_notify.o -c src/seccomp_notify.c podman-bento-debian12: cc -std=c99 -Os -Wall -Wextra -Werror -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DVERSION=\"2.1.12\" -DGIT_COMMIT=\""119db20187a4356abd4d31d76ad53063a7a2e85e"\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o bin/conmon src/conmon.o src/cmsg.o src/ctr_logging.o src/utils.o src/cli.o src/globals.o src/cgroup.o src/conn_sock.o src/oom.o src/ctrl.o src/ctr_stdio.o src/parent_pipe_fd.o src/ctr_exit.o src/runtime_args.o src/close_fds.o src/seccomp_notify.o -lglib-2.0 -lsystemd -lseccomp -ldl podman-bento-debian12: install -d -m 755 /usr/local/libexec/podman podman-bento-debian12: install -m 755 bin/conmon /usr/local/libexec/podman/conmon podman-bento-debian12:podman compiles
(screenshot huge omitted)
Problem:
crun unknown version specifiederror in DebianDetails
When building an image with
podman, I ran into an error on a basicaptupdate/upgrade/install step witherror running container: from /usr/bin/crun creating container....unknown version specified. In googling the error, I ran into the very similar issue [containers/crun#1485] indicating it might be resolved in a newer version of crun. I was already on the latest available for Debian 12, without building from source, so I decided to tryruncinstead, since this is explicitly listed as supported in thepodmandocs. The docs explicitly call outcruntaking precedence overruncif both are installed, so I understand if this isn't a desired change since it might appear to go against defaults, and I'm willing to revert it if there is strong opinions on it.Solution: switch to
runc(doc updated)Details
The documentation explicitly points out that either should be fine... so runc?
Problem: could not find pasta
Details
Solution: install passt (doc updated)
Details
$ sudo apt-get install -y passt $ podman run --env ENVVAR localhost/hdub-tech/podmanio test Test completed successfully