a clean start

This commit is contained in:
Shihaam Abdul Rahman 2023-02-28 16:47:57 +05:00
parent 5487f4133c
commit a6701e15ec
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
4 changed files with 45 additions and 56 deletions

View File

@ -3,9 +3,9 @@ services:
#########################
podman-builder:
hostname: podman-builder
image: debian
image: debian:11
working_dir: /root/
volumes:
- ./build:/root/build
- ./podmandeb-build.sh:/root/podmandeb-build.sh
command: bash /root/podmandeb-build.sh
- ./podman-build.sh:/root/podman-build.sh
command: bash /root/podman-build.sh

View File

@ -1,42 +0,0 @@
#!/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
go get golang.org/dl/go1.17.6
go1.17.6 download
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

View File

@ -2,6 +2,48 @@
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
go get golang.org/dl/go1.17.6
go1.17.6 download
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
#!/bin/bash
cd /root/
apt update
apt upgrade -y
apt install -y jq wget curl make

View File

@ -1,11 +0,0 @@
version: '3.5'
services:
#########################
podman-builder:
hostname: podman-builder
image: ubuntu:focal
working_dir: /root/
volumes:
- ./build:/root/build
- ./podmanbin-build.sh:/root/podmanbin-build.sh
command: bash /root/podmanbin-build.sh