You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2019/11/29 09:32:01 UTC

[struts-site] 02/02: Uses official Jekyll Docker image to serve and build website locally

This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch struts-2522
in repository https://gitbox.apache.org/repos/asf/struts-site.git

commit b69867e65f3d88d98aca597111da38c4b81f2f79
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Fri Nov 29 10:31:47 2019 +0100

    Uses official Jekyll Docker image to serve and build website locally
---
 docker-build.fish | 5 ++++-
 docker-build.sh   | 5 ++++-
 docker-run.fish   | 4 +++-
 docker-run.sh     | 5 ++++-
 4 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/docker-build.fish b/docker-build.fish
index fc017a0..f950c11 100755
--- a/docker-build.fish
+++ b/docker-build.fish
@@ -1,2 +1,5 @@
 #!/usr/local/bin/fish
-docker build -t theapachestruts/struts-site-jekyll --pull docker/
+set -x JEKYLL_VERSION 3.8
+
+docker run --rm -v $PWD:/srv/jekyll -it jekyll/jekyll:$JEKYLL_VERSION jekyll build
+
diff --git a/docker-build.sh b/docker-build.sh
index ae6a6b3..f331738 100755
--- a/docker-build.sh
+++ b/docker-build.sh
@@ -1,2 +1,5 @@
 #!/bin/sh
-docker build -t theapachestruts/struts-site-jekyll --pull docker/
+export JEKYLL_VERSION=3.8
+
+docker run --rm -v $PWD:/srv/jekyll -it jekyll/jekyll:$JEKYLL_VERSION jekyll build
+
diff --git a/docker-run.fish b/docker-run.fish
index 1cb2809..6bba623 100755
--- a/docker-run.fish
+++ b/docker-run.fish
@@ -1,2 +1,4 @@
 #!/usr/local/bin/fish
-docker run -v $PWD:/srv/jekyll -it -p 4000:4000 theapachestruts/struts-site-jekyll
+set -x JEKYLL_VERSION 3.8
+
+docker run --rm -v $PWD:/srv/jekyll -it jekyll/jekyll:$JEKYLL_VERSION jekyll serve --watch --trace --host=0.0.0.0 --force_polling --incremental
diff --git a/docker-run.sh b/docker-run.sh
index 3e5d930..70011ab 100755
--- a/docker-run.sh
+++ b/docker-run.sh
@@ -1,2 +1,5 @@
 #!/bin/sh
-docker run -v $(pwd):/srv/jekyll -it -p 4000:4000 theapachestruts/struts-site-jekyll
+export JEKYLL_VERSION 3.8
+
+docker run --rm -v $PWD:/srv/jekyll -it jekyll/jekyll:$JEKYLL_VERSION jekyll serve --watch --trace --host=0.0.0.0 --force_polling --incremental
+