Skip to content

Instantly share code, notes, and snippets.

@zhangguanzhang
Last active April 25, 2022 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhangguanzhang/b58e13f587f8e92c8f31020c83d78cb1 to your computer and use it in GitHub Desktop.
Save zhangguanzhang/b58e13f587f8e92c8f31020c83d78cb1 to your computer and use it in GitHub Desktop.
podman compile on CentOS8
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