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