You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2022/03/21 15:42:27 UTC
[sling-site] 02/11: Downloads page: include Docker Images for applications, where available
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit fedc623dba4b24c31502c48115ed0cd3d556ee1b
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Mar 18 21:22:22 2022 +0100
Downloads page: include Docker Images for applications, where available
---
src/main/jbake/templates/downloads.tpl | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/main/jbake/templates/downloads.tpl b/src/main/jbake/templates/downloads.tpl
index 728f0b1..ed08572 100644
--- a/src/main/jbake/templates/downloads.tpl
+++ b/src/main/jbake/templates/downloads.tpl
@@ -24,8 +24,8 @@ def slingIDETooling=[
]
def slingApplication=[
- "Sling Starter Feature Archive (Oak-Tar)|A self-container feature archive, for experimenting and learning. Requires the Feature Model Launcher (see below) |org.apache.sling.starter|-oak_mongo_far.far|${starterVersion}|Y",
- "Sling Starter Feature Archive (Oak-Mongo)|A self-container feature archive, for experimenting and learning. Requires the Feature Model Launcher (see below) |org.apache.sling.starter|-oak_tar_far.far|${starterVersion}|Y",
+ "Sling Starter Feature Archive (Oak-Tar)|A self-container feature archive, for experimenting and learning. Requires the Feature Model Launcher (see below) |org.apache.sling.starter|-oak_mongo_far.far|${starterVersion}|Y|apache/sling:${starterVersion}",
+ "Sling Starter Feature Archive (Oak-Mongo)|A self-container feature archive, for experimenting and learning. Requires the Feature Model Launcher (see below) |org.apache.sling.starter|-oak_tar_far.far|${starterVersion}|Y|apache/sling:${starterVersion}",
"Sling Starter Source Release|The released Sling Starter source code|org.apache.sling.starter|-source-release.zip|${starterVersion}|Y",
"Sling CMS App|A reference CMS App built on Apache Sling|org.apache.sling.cms.feature|.jar|1.1.0|org.apache.sling.app.cms",
"Sling Feature Model Launcher|A tool for launching OSGi applications|org.apache.sling.feature.launcher|1.2.0|.jar|Y",
@@ -363,6 +363,11 @@ def githubLink(artifact,ghflag) {
}
}
+def dockerHubLink(image) {
+ image = image.replaceAll(':.*$', '') // remove version for the link
+ a(href:"https://hub.docker.com/r/${image}", "Docker Image")
+}
+
def tableHead(String [] headers) {
thead() {
tr() {
@@ -418,6 +423,10 @@ layout 'layout/main.tpl', true,
td(data[1])
def artifact = "${data[2]}-${data[4]}${data[3]}"
td(){
+ if (data.size() == 7) {
+ dockerHubLink(data[6])
+ yield(", ")
+ }
downloadLink(artifact, artifact, "", "")
}
}