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

Commit 06d54fd

Browse files
committed
Added maven/gradle #3616 and jabba/openjdk #2673
1 parent b126606 commit 06d54fd

File tree

9 files changed

+145
-0
lines changed

9 files changed

+145
-0
lines changed

renovate.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,17 @@
14561456
"datasourceTemplate": "github-releases",
14571457
"extractVersionTemplate": "^v(?<version>.+?)$"
14581458
},
1459+
{
1460+
"fileMatch": [
1461+
"^tools/gradle/manifest.yaml$"
1462+
],
1463+
"matchStrings": [
1464+
"version: \"?(?<currentValue>.*?)\"?\\n"
1465+
],
1466+
"depNameTemplate": "gradle/gradle",
1467+
"datasourceTemplate": "github-releases",
1468+
"extractVersionTemplate": "^v(?<version>.+?)$"
1469+
},
14591470
{
14601471
"fileMatch": [
14611472
"^tools/grype/manifest.yaml$"
@@ -1644,6 +1655,16 @@
16441655
"datasourceTemplate": "github-releases",
16451656
"extractVersionTemplate": "^v(?<version>.+?)$"
16461657
},
1658+
{
1659+
"fileMatch": [
1660+
"^tools/jabba/manifest.yaml$"
1661+
],
1662+
"matchStrings": [
1663+
"version: \"?(?<currentValue>.*?)\"?\\n"
1664+
],
1665+
"depNameTemplate": "shyiko/jabba",
1666+
"datasourceTemplate": "github-releases"
1667+
},
16471668
{
16481669
"fileMatch": [
16491670
"^tools/jaq/manifest.yaml$"
@@ -2413,6 +2434,17 @@
24132434
"datasourceTemplate": "github-releases",
24142435
"extractVersionTemplate": "^v(?<version>.+?)$"
24152436
},
2437+
{
2438+
"fileMatch": [
2439+
"^tools/maven/manifest.yaml$"
2440+
],
2441+
"matchStrings": [
2442+
"version: \"?(?<currentValue>.*?)\"?\\n"
2443+
],
2444+
"depNameTemplate": "apache/maven",
2445+
"datasourceTemplate": "github-releases",
2446+
"extractVersionTemplate": "^maven-(?<version>.+?)$"
2447+
},
24162448
{
24172449
"fileMatch": [
24182450
"^tools/mcfly/manifest.yaml$"

tools/gradle/Dockerfile.template

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/openjdk:${ref} AS openjdk
6+
7+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
8+
COPY --from=openjdk / /
9+
ARG name
10+
ARG version
11+
RUN <<EOF
12+
url="https://services.gradle.org/distributions/gradle-${version}-bin.zip"
13+
filename="$(basename "${url}")"
14+
curl --silent --location --remote-name "${url}"
15+
unzip -q -o -d "${prefix}/opt" "${filename}"
16+
mv "${prefix}/opt/gradle-${version}" "${prefix}/opt/gradle"
17+
ln -sf "/opt/gradle/bin/gradle" "${prefix}${target}/bin/gradle"
18+
EOF

tools/gradle/manifest.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: gradle
2+
version: 6.9.3
3+
check: ${binary} -version | grep ^Gradle | cut -d' ' -f2
4+
dependencies:
5+
- openjdk
6+
tags:
7+
- type/cli
8+
- cicd
9+
homepage: https://github.com/gradle/gradle
10+
description: Adaptable, fast automation for all
11+
renovate:
12+
datasource: github-releases
13+
package: gradle/gradle
14+
extractVersion: ^v(?<version>.+?)$

tools/jabba/Dockerfile.template

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location --output "${prefix}${target}/bin/jabba" \
11+
"https://github.com/shyiko/jabba/releases/download/${version}/jabba-${version}-linux-${alt_arch}"
12+
chmod +x "${prefix}${target}/bin/jabba"
13+
EOF

tools/jabba/manifest.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: jabba
2+
version: 0.11.2
3+
check: ${binary} --version
4+
tags:
5+
- type/cli
6+
- category/development
7+
homepage: https://github.com/shyiko/jabba
8+
description: Java Version Manager
9+
renovate:
10+
datasource: github-releases
11+
package: shyiko/jabba

tools/maven/Dockerfile.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/openjdk:${ref} AS openjdk
6+
7+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
8+
COPY --from=openjdk / /
9+
ARG name
10+
ARG version
11+
RUN <<EOF
12+
mkdir -p "${prefix}/opt/maven"
13+
curl --silent --location "https://archive.apache.org/dist/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz" \
14+
| tar --extract --gzip --directory="${prefix}/opt/maven" --strip-components=1 --no-same-owner
15+
ln -sf "/opt/maven/bin/mvn" "${prefix}${target}/bin/mvn"
16+
EOF

tools/maven/manifest.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: maven
2+
version: 3.8.6
3+
binsry: mvn
4+
check: ${binary} -version | grep ^Apache | cut -d' ' -f3
5+
dependencies:
6+
- openjdk
7+
tags:
8+
- type/cli
9+
- cicd
10+
homepage: https://github.com/apache/maven
11+
description: Apache Maven
12+
renovate:
13+
datasource: github-releases
14+
package: apache/maven
15+
extractVersion: ^maven-(?<version>.+?)$

tools/openjdk/Dockerfile.template

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/jabba:${ref} AS jabba
6+
7+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
8+
COPY --from=jabba / /
9+
ARG name
10+
ARG version
11+
RUN <<EOF
12+
jabba install --output "${prefix}/opt/openjdk/" openjdk@1.${version}
13+
ln -sf "/opt/openjdk/bin/javac" "${prefix}${target}/bin/javac"
14+
ln -sf "/opt/openjdk/bin/java" "${prefix}${target}/bin/java"
15+
EOF

tools/openjdk/manifest.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: openjdk
2+
version: 17
3+
binary: ${prefix}/opt/openjdk/bin/javac -version
4+
check: ${binary} -version 2>&1 | grep ^openjdk | cut -d' ' -f3 | tr -d '"'
5+
dependencies:
6+
- jabba
7+
tags:
8+
- type/cli
9+
- category/development
10+
homepage: https://github.com/openjdk
11+
description: OpenJDK

0 commit comments

Comments
 (0)