From 3edcb76bbcfc9f8bdb119eaf4e698bccd4c83f82 Mon Sep 17 00:00:00 2001
From: Orestis Malaspinas <orestis.malaspinas@hesge.ch>
Date: Wed, 18 Sep 2019 11:18:25 +0200
Subject: [PATCH] added website container

---
 .gitlab-ci.yml            | 11 +++++++++++
 README.md                 |  5 ++++-
 pandoc_website/Dockerfile |  7 +++++++
 3 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 pandoc_website/Dockerfile

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b9aaef9..b520eb7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,6 +41,17 @@ build-rust:
   only:
     - master
 
+build-pandoc-website:
+  tags:
+    - dfromd
+  stage: build
+  script:
+    - cd pandoc_website
+    - docker build --pull -t omalaspinas/pandoc_website .
+    - docker push omalaspinas/pandoc_website
+  only:
+    - master
+
 build-rust-pandoc:
   tags:
     - dfromd
diff --git a/README.md b/README.md
index d5e3bd4..462bc9f 100644
--- a/README.md
+++ b/README.md
@@ -5,4 +5,7 @@ Dockerfiles for different builds
 - clang: used for compilation in C, based on gcc:latest (ubuntu)
 - pandoc: based on alpine and used for pandoc doc generation
 - rust: used for rust compilation/testing
-- rust_pandoc: used for rust_doc to pandoc document generation
\ No newline at end of file
+- rust_pandoc: used for rust_doc to pandoc document generation
+- pandoc_website: used for pandoc document generation with a link checker for website deployment and basic sanity check of links.
+- 
+The images are created in the CI build and push to dockerhub
\ No newline at end of file
diff --git a/pandoc_website/Dockerfile b/pandoc_website/Dockerfile
new file mode 100644
index 0000000..0e73a97
--- /dev/null
+++ b/pandoc_website/Dockerfile
@@ -0,0 +1,7 @@
+FROM omalaspinas/pandoc
+
+LABEL Description="Image used for pandoc compilation, and website linkchecker, based on alpine linux" maintainer="orestis.malaspinas@hesge.ch" Version="0.1"
+
+RUN apk add nodejs-current
+RUN apk add npm
+RUN npm install broken-link-checker -g
-- 
GitLab