mirror of
https://gitlab.com/alliedmaldives/ops/podmanbuilder.git
synced 2025-02-21 18:52:07 +00:00
a clean start
This commit is contained in:
parent
5487f4133c
commit
a6701e15ec
@ -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
|
@ -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
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user