Last active
April 25, 2022 01:54
-
-
Save zhangguanzhang/b58e13f587f8e92c8f31020c83d78cb1 to your computer and use it in GitHub Desktop.
podman compile on CentOS8
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
dnf install -y gcc make wget vim git libseccomp-devel systemd-libs systemd-devel jq patch tar | |
go get github.com/go-delve/delve/cmd/dlv | |
wget -O /usr/share/containers/seccomp.json https://raw.githubusercontent.com/containers/common/main/pkg/seccomp/seccomp.json | |
make BUILDTAGS="containers_image_openpgp systemd exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper selinux seccomp " podman | |
podman system service --time 0 tcp:127.0.0.1:8081 | |
curl http://localhost:8081/v1.40/containers/create?name=test-api2 -X POST \ | |
-H "Content-Type: application/json" \ | |
--data '{"Image":"docker.io/library/nginx:alpine","Cmd":["echo","param1"]}' | |
podman-remote --url tcp://localhost:8081 | |
``` | |
-gcflags="all=-N -l" | |
``` | |
``` | |
mkdir -p ~/.dlv/ | |
cat<<EOF > ~/.dlv/config.yml | |
# Maximum number of elements loaded from an array. | |
max-array-values: 1000 | |
# Maximum loaded string length. | |
max-string-len: 1000 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment