Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 0e6ec2c

Browse files
committed
Added podman
1 parent 84023d8 commit 0e6ec2c

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

tools/podman/Dockerfile.template

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,51 @@
11
#syntax=docker/dockerfile:1.5.2
22

33
ARG ref=main
4-
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
54

5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
8-
8+
WORKDIR /tmp/podman
9+
RUN <<EOF
10+
apt-get update
11+
apt-get -y install --no-install-recommends \
12+
git \
13+
ca-certificates \
14+
gcc \
15+
make \
16+
btrfs-progs \
17+
golang-go \
18+
go-md2man \
19+
iptables \
20+
libassuan-dev \
21+
libbtrfs-dev \
22+
libc6-dev \
23+
libdevmapper-dev \
24+
libglib2.0-dev \
25+
libgpgme-dev \
26+
libgpg-error-dev \
27+
libprotobuf-dev \
28+
libprotobuf-c-dev \
29+
libseccomp-dev \
30+
libselinux1-dev \
31+
libsystemd-dev \
32+
pkg-config \
33+
uidmap
34+
rm -f /usr/local/sbin/unminimize
35+
EOF
36+
RUN git clone --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/containers/podman .
37+
RUN make EXTRA_LDFLAGS="-s -w -extldflags=-static"
38+
RUN <<EOF
39+
make install DESTDIR="${prefix}" PREFIX="${target}"
40+
mkdir -p \
41+
"${prefix}${target}/share/bash-completion/completions" \
42+
"${prefix}${target}/share/fish/vendor_completions.d" \
43+
"${prefix}${target}/share/zsh/vendor-completions"
44+
EOF
945
RUN <<EOF
10-
curl --silent --location --fail "https://github.com/nicholasdille/podman-static/releases/download/v${version}/podman-${alt_arch}.tar.gz" \
11-
| tar --extract --gzip --directory="${prefix}${target}" --no-same-owner
46+
cp completions/bash/podman "${prefix}${target}/share/bash-completion/completions/podman"
47+
cp completions/fish/podman.fish "${prefix}${target}/share/fish/vendor_completions.d/podman.fish"
48+
cp completions/zsh/_podman "${prefix}${target}/share/zsh/vendor-completions/_podman"
1249
cp "${prefix}${target}/lib/systemd/system/podman.service" "${prefix}/etc/systemd/system/"
1350
cp "${prefix}${target}/lib/systemd/system/podman.socket" "${prefix}/etc/systemd/system/"
1451

tools/podman/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ homepage: https://github.com/containers/podman
2020
description: Tool for managing OCI containers and pods
2121
renovate:
2222
datasource: github-releases
23-
package: nicholasdille/podman-static
23+
package: containers/podman
2424
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)