You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2020/01/28 05:23:56 UTC
[sling-org-apache-sling-app-cms] branch master updated: Adding
Gitpod (#9)
This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git
The following commit(s) were added to refs/heads/master by this push:
new e2e0486 Adding Gitpod (#9)
e2e0486 is described below
commit e2e04868dbe7d2dd36152101a6034ebf21f816e4
Author: Dan Klco <kl...@users.noreply.github.com>
AuthorDate: Tue Jan 28 00:23:46 2020 -0500
Adding Gitpod (#9)
Adding support for running Sling CMS in GitPod
---
.gitpod.Dockerfile | 12 ++++++++++++
.gitpod.yml | 6 ++++++
README.md | 4 ++++
3 files changed, 22 insertions(+)
diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile
new file mode 100644
index 0000000..a651983
--- /dev/null
+++ b/.gitpod.Dockerfile
@@ -0,0 +1,12 @@
+FROM gitpod/workspace-full
+
+USER gitpod
+
+# Install custom tools, runtime, etc. using apt-get
+# For example, the command below would install "bastet" - a command line tetris clone:
+#
+# RUN sudo apt-get -q update && # sudo apt-get install -yq bastet && # sudo rm -rf /var/lib/apt/lists/*
+#
+# More information: https://www.gitpod.io/docs/42_config_docker/
+RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
+ && sdk install java 8.0.242.hs-adpt"
\ No newline at end of file
diff --git a/.gitpod.yml b/.gitpod.yml
new file mode 100644
index 0000000..7a5fcd8
--- /dev/null
+++ b/.gitpod.yml
@@ -0,0 +1,6 @@
+tasks:
+ - command: mvn install -DskipTests && java -jar builder/target/org.apache.sling.cms.builder-*-SNAPSHOT.jar
+image:
+ file: .gitpod.Dockerfile
+ports:
+ - port: 8080
\ No newline at end of file
diff --git a/README.md b/README.md
index 8d3c6ec..7bd5053 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,10 @@
The Apache Sling CMS is a reference implementation of a fully-featured Content Management System built in Apache Sling. This application showcases multiple Apache Sling features such as Context Aware Configurations, Resource Mapping, Rewriter and Resource Merging.
+## Try It
+
+[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/apache/sling-org-apache-sling-app-cms)
+
## Documentation
* [Quickstart](docs/quickstart.md)