From 3518990c292ca5cb2ba6ff21ce013983c8640d7c Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Tue, 28 Feb 2023 18:24:02 +0500 Subject: [PATCH] podman --- podman-build.sh | 54 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/podman-build.sh b/podman-build.sh index 29825e0..77a7fad 100644 --- a/podman-build.sh +++ b/podman-build.sh @@ -23,41 +23,41 @@ apt install -y \ make \ pkg-config \ runc \ - uidmap \ - vim + uidmap + +apt install --no-install-recommends -y libapparmor-dev libsystemd-dev wget curl make ca-certificates wget https://storage.googleapis.com/golang/getgo/installer_linux chmod +x ./installer_linux ./installer_linux -source ~/.bash_profile - - - - - - - - - - - - - - - - - - - - - - - - +PATH=$PATH:$HOME/.go/bin +export PATH +#source ~/.bash_profile +# make conmon +git clone https://github.com/containers/conmon +cd conmon +export GOCACHE="$(mktemp -d)" +make +cp -vr ./bin ~/build/ +cd ~ +# make runc +git clone https://github.com/opencontainers/runc.git $GOPATH/src/github.com/opencontainers/runc +cd $GOPATH/src/github.com/opencontainers/runc +make BUILDTAGS="selinux seccomp" +cp -v runc ~/build/ +cp ~ +# make podman +PODMAN_VERSION=$(curl -s https://api.github.com/repos/containers/podman/releases/latest|grep tag_name|cut -d '"' -f 4) +git clone https://github.com/containers/podman.git podman-$PODMAN_VERSION +cd podman-$PODMAN_VERSION +git checkout tags/$PODMAN_VERSION +make ENABLE_BUILDTAGS="systemd" binaries +cp -vr ./bin ~/build/ +cd ~