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

Commit a4dd63e

Browse files
committed
Added pigz #3054
1 parent 19ad608 commit a4dd63e

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

renovate.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,18 @@
22632263
"extractVersionTemplate": "^v(?<version>.+?)$",
22642264
"versioningTemplate": "loose"
22652265
},
2266+
{
2267+
"fileMatch": [
2268+
"^tools/pigz/manifest.yaml$"
2269+
],
2270+
"matchStrings": [
2271+
"version: \"?(?<currentValue>.*?)\"?\\n"
2272+
],
2273+
"depNameTemplate": "madler/pigz",
2274+
"datasourceTemplate": "github-tags",
2275+
"extractVersionTemplate": "^v(?<version>.+?)$",
2276+
"versioningTemplate": "loose"
2277+
},
22662278
{
22672279
"fileMatch": [
22682280
"^tools/podman/manifest.yaml$"

tools/pigz/Dockerfile.template

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
5+
FROM ubuntu:22.04 AS build
6+
RUN <<EOF
7+
apt-get update
8+
apt-get -y install --no-install-recommends \
9+
build-essential \
10+
zlib1g-dev \
11+
make \
12+
git \
13+
ca-certificates
14+
EOF
15+
WORKDIR /tmp/pigz
16+
ARG name
17+
ARG version
18+
RUN <<EOF
19+
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/madler/pigz .
20+
make pigz LDFLAGS=-static
21+
mkdir -p \
22+
/opt/pigz/bin \
23+
/opt/pigz/share/man/man1
24+
cp pigz /opt/pigz/bin/
25+
cp pigz.1 /opt/pigz/share/man/man1/
26+
EOF
27+
28+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
29+
ARG name
30+
ARG version
31+
COPY --from=build /opt/pigz/ ${prefix}${target}/

tools/pigz/manifest.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: pigz
2+
version: 2.7
3+
check: ${binary} --version | cut -d' ' -f2
4+
tags:
5+
- type/cli
6+
- compression
7+
homepage: https://github.com/madler/pigz
8+
description: Parallel implementation of gzip for modern multi-processor, multi-core machines
9+
renovate:
10+
datasource: github-tags
11+
package: madler/pigz
12+
extractVersion: ^v(?<version>.+?)$
13+
versioning: loose

0 commit comments

Comments
 (0)