This commit is contained in:
Shihaam Abdul Rahman 2023-02-28 18:24:02 +05:00
parent 168ccdd3e8
commit 3518990c29
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -23,41 +23,41 @@ apt install -y \
make \ make \
pkg-config \ pkg-config \
runc \ runc \
uidmap \ uidmap
vim
apt install --no-install-recommends -y libapparmor-dev libsystemd-dev wget curl make ca-certificates
wget https://storage.googleapis.com/golang/getgo/installer_linux wget https://storage.googleapis.com/golang/getgo/installer_linux
chmod +x ./installer_linux chmod +x ./installer_linux
./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 ~