You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2023/07/03 15:31:51 UTC
[james-site] branch asf-site updated: Remove bash + DockerFiles
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/james-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new fe538ba16 Remove bash + DockerFiles
fe538ba16 is described below
commit fe538ba162118e6aa59bbdc55e9ca905a109b9f2
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Jul 3 22:31:25 2023 +0700
Remove bash + DockerFiles
---
content/Dockerfile | 25 -------------------------
content/compile.sh | 43 -------------------------------------------
2 files changed, 68 deletions(-)
diff --git a/content/Dockerfile b/content/Dockerfile
deleted file mode 100644
index 9ee311b98..000000000
--- a/content/Dockerfile
+++ /dev/null
@@ -1,25 +0,0 @@
-FROM ruby:2.6.8-buster
-
-RUN apt-get update \
- && apt-get install -y \
- nodejs \
- python-pygments \
- && apt-get clean \
- && rm -rf /var/lib/apt/lists/
-
-RUN gem install \
- github-pages \
- jekyll \
- jekyll-feed \
- jekyll-redirect-from \
- jekyll-seo-tag \
- kramdown \
- rdiscount \
- rouge
-
-# Copy the script
-COPY compile.sh /root/compile.sh
-
-# Define the entrypoint
-WORKDIR /james-project
-ENTRYPOINT ["/root/compile.sh"]
diff --git a/content/compile.sh b/content/compile.sh
deleted file mode 100755
index bc02c3f45..000000000
--- a/content/compile.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh -e
-#
-
-printUsage() {
- echo "Usage : "
- echo "./compile.sh SHA1"
- echo " SHA1: SHA1 to build (optional)"
- exit 1
-}
-
-ORIGIN=/origin
-DESTINATION=/destination
-
-for arg in "$@"
-do
- case $arg in
- -*)
- echo "Invalid option: -$OPTARG"
- printUsage
- ;;
- *)
- if ! [ -z "$1" ]; then
- SHA1=$1
- fi
- ;;
- esac
- if [ "0" -lt "$#" ]; then
- shift
- fi
-done
-
-if [ -z "$SHA1" ]; then
- SHA1=master
-fi
-
-# Sources retrieval
-git clone $ORIGIN/.
-git checkout $SHA1
-
-# Compilation /james-project/src/jekyll/_site
-
-jekyll build --source src/homepage --destination $DESTINATION
-
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org