diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f1e84d9..0000000 --- a/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM jekyll/jekyll:4.2.0 - -LABEL version="0.9.2" -LABEL description="develop and generate arc42.org site" -LABEL vendor="req42 (Peter Hruschka, Gernot Starke)" - -COPY Gemfile . - -RUN apk update && \ - apk add ncurses && \ - gem install bundler && \ - bundle install - -WORKDIR /srv/jekyll -EXPOSE 4000 diff --git a/_config-dev.yml b/_config-dev.yml deleted file mode 100644 index 4e1ee9f..0000000 --- a/_config-dev.yml +++ /dev/null @@ -1,2 +0,0 @@ -url : "http://0.0.0.0" # the base hostname & protocol for your site e.g. "https://mmistakes.github.io" -baseurl : # the subpath of your site, e.g. "/blog" diff --git a/_docker-compose-dev.yml b/_docker-compose-dev.yml deleted file mode 100644 index a6220b5..0000000 --- a/_docker-compose-dev.yml +++ /dev/null @@ -1,16 +0,0 @@ -# docker-compose definition for developing the site. -# -version: '2' - -services: - doc-arc42-jekyll: - build: . - image: doc-arc42-site:latest - command: jekyll serve --trace --host 0.0.0.0 --watch --incremental --config _config.yml,_config-dev.yml - environment: - - JEKYLL_ENV=development - ports: - - 4000:4000 - volumes: - - .:/srv/jekyll - diff --git a/_manage-site.sh b/_manage-site.sh deleted file mode 100755 index 39fa587..0000000 --- a/_manage-site.sh +++ /dev/null @@ -1,63 +0,0 @@ -#! /bin/bash -# -# helper, so you don't need to remember docker-compose syntax... - -# what's the site? -site="docs.arc42.org" - -remotedir="." - -# some colors to highlight certain output -GREEN=`tput setaf 2` -RED=`tput setaf 5` -BLUE=`tput setaf 6` -RESET=`tput sgr0` - -clear - -echo -echo "Docker container to develop or build the ${BLUE}$site ${RESET}website:" -echo "============================================================" -echo -echo "Please select wether to ${GREEN}develop ${RESET} or ${RED} build ${RESET} the site:" -echo -echo "${GREEN}(d)evelop ${RESET} starts a jekyll server on port 0.0.0.0:4000," -echo "which performs incremental builds and listens for file changes." -echo -echo "${GREEN}(b)build ${RESET} build the required docker image." -echo -echo "${GREEN}(r)emove ${RESET} the running docker container." -echo -echo "==================================================" -echo - -read -p "Enter your selection (default: develop, d) : " choice - - -if [[ -z $choice ]]; then - choice='develop' -fi - -case "$choice" in - b|B|build) echo "build Docker image" - docker-compose --file _docker-compose-dev.yml build --force-rm - ;; - - d|D|dev|develop) echo "develop, incremental build" - docker-compose --file _docker-compose-dev.yml up - ;; - - r|R|remove) echo "remove running docker container" - docker-compose --file _docker-compose-dev.yml down - ;; - - - - - # catchall: abort - *) echo "${RED} unknown option $choice ${RESET}, aborted." - exit 1 - ;; -esac - -echo "Thanx." diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a8789a8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + jekyll: + image: bretfisher/jekyll-serve + volumes: + - .:/site + ports: + - '4000:4000' \ No newline at end of file