This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +42
-5
lines changed Expand file tree Collapse file tree 2 files changed +42
-5
lines changed Original file line number Diff line number Diff line change 1
1
#syntax=docker/dockerfile:1.5.2
2
2
3
3
ARG ref=main
4
- FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5
4
5
+ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6
6
ARG name
7
7
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
9
45
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"
12
49
cp "${prefix}${target}/lib/systemd/system/podman.service" "${prefix}/etc/systemd/system/"
13
50
cp "${prefix}${target}/lib/systemd/system/podman.socket" "${prefix}/etc/systemd/system/"
14
51
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ homepage: https://github.com/containers/podman
20
20
description : Tool for managing OCI containers and pods
21
21
renovate :
22
22
datasource : github-releases
23
- package : nicholasdille /podman-static
23
+ package : containers /podman
24
24
extractVersion : ^v(?<version>.+?)$
You can’t perform that action at this time.
0 commit comments