mirror of
https://gitlab.com/alliedmaldives/ops/podmanbuilder.git
synced 2025-02-22 17:32:12 +00:00
41 lines
722 B
Bash
41 lines
722 B
Bash
#!/bin/bash
|
|
|
|
cd /root/
|
|
|
|
apt update
|
|
apt upgrade -y
|
|
apt-get install -y \
|
|
btrfs-progs \
|
|
crun \
|
|
git \
|
|
golang-go \
|
|
go-md2man \
|
|
iptables \
|
|
libassuan-dev \
|
|
libbtrfs-dev \
|
|
libc6-dev \
|
|
libdevmapper-dev \
|
|
libglib2.0-dev \
|
|
libgpgme-dev \
|
|
libgpg-error-dev \
|
|
libprotobuf-dev \
|
|
libprotobuf-c-dev \
|
|
libseccomp-dev \
|
|
libselinux1-dev \
|
|
libsystemd-dev \
|
|
pkg-config \
|
|
uidmap
|
|
|
|
apt install -y jq wget curl make
|
|
|
|
VERSION=$(curl -s https://api.github.com/repos/containers/podman/releases/latest | jq '.name' -r)
|
|
export VERSION
|
|
|
|
git clone https://github.com/containers/podman.git podman-$VERSION
|
|
cd podman-$VERSION
|
|
git checkout tags/$VERSION
|
|
|
|
make ENABLE_BUILDTAGS="systemd" binaries
|
|
|
|
cp -vr bin/ ../build
|