mirror of
https://gitlab.com/alliedmaldives/ops/podmanbuilder.git
synced 2025-02-22 09:12:02 +00:00
goo
This commit is contained in:
parent
3133f1718b
commit
50c2104d96
@ -1,4 +1,6 @@
|
||||
#!/bin/bash
|
||||
GO_VERSION=1.16.1
|
||||
ARCH=amd64
|
||||
|
||||
cd /root/
|
||||
|
||||
@ -26,16 +28,27 @@ apt-get install --no-install-recommends -y \
|
||||
pkg-config \
|
||||
uidmap
|
||||
|
||||
# depdencies for this script
|
||||
apt install --no-install-recommends -y jq wget curl make ca-certificates
|
||||
|
||||
|
||||
|
||||
VERSION=$(curl -s https://api.github.com/repos/containers/podman/releases/latest | jq '.name' -r)
|
||||
export VERSION
|
||||
# update go
|
||||
#GOPATH=~/go
|
||||
#git clone https://go.googlesource.com/go $GOPATH
|
||||
#cd $GOPATH/src
|
||||
#./all.bash
|
||||
#export PATH=$GOPATH/bin:$PATH
|
||||
wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
|
||||
rm -rf /usr/local/go && tar -C /usr/local -xzf go$GO_VERSION.linux-$ARCH.tar.gz
|
||||
PATH=$PATH:/usr/local/go/bin
|
||||
export PATH
|
||||
|
||||
git clone https://github.com/containers/podman.git podman-$VERSION
|
||||
cd podman-$VERSION
|
||||
git checkout tags/$VERSION
|
||||
# get podman
|
||||
PODMAN_VERSION=$(curl -s https://api.github.com/repos/containers/podman/releases/latest | jq '.name' -r)
|
||||
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
|
||||
|
||||
@ -44,13 +57,13 @@ cp -vr bin/ ../build
|
||||
cd /root/
|
||||
|
||||
# remove v in version name
|
||||
NVERSION=$(echo $VERSION | sed s/v//)
|
||||
PODMAN_NOV_VERSION=$(echo $PODMAN_VERSION | sed s/v//)
|
||||
|
||||
## PREPARE to package into .deb
|
||||
mkdir -p podman-deb/DEBIAN
|
||||
cat <<EOF > podman-deb/DEBIAN/control
|
||||
Package: podman
|
||||
Version: $NVERSION
|
||||
Version: $PODMAN_NOV_VERSION
|
||||
Depends: libgpgme11
|
||||
Section: base
|
||||
Priority: optional
|
||||
|
Loading…
x
Reference in New Issue
Block a user