diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b517a2e..a2b67ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,9 @@ before_script: ruby-2.1-git-2.7-phantomjs-2.1 test: *test_build ruby-2.3-git-2.7-phantomjs-2.1 test: *test_build www-gitlab-com test: *test_build +doc-gitlab-com test: *test_build ruby-2.1-git-2.7-phantomjs-2.1: *build_and_deploy ruby-2.3-git-2.7-phantomjs-2.1: *build_and_deploy www-gitlab-com: *build_and_deploy +doc-gitlab-com: *build_and_deploy diff --git a/Dockerfile.doc-gitlab-com b/Dockerfile.doc-gitlab-com new file mode 100644 index 0000000..9b68137 --- /dev/null +++ b/Dockerfile.doc-gitlab-com @@ -0,0 +1,12 @@ +FROM ruby:2.3-slim + +ENV PACKAGES="git-core pandoc locales" + +ADD / / +RUN /scripts/install-doc-gitlab-com + +# Set UTF-8 http://jaredmarkell.com/docker-and-locales/ +# Must be set after install-essentials is run +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 diff --git a/scripts/install-doc-gitlab-com b/scripts/install-doc-gitlab-com new file mode 100755 index 0000000..8853b7f --- /dev/null +++ b/scripts/install-doc-gitlab-com @@ -0,0 +1,17 @@ +#!/bin/bash + +set -xeo pipefail + +apt-get update +apt-get install -yq --no-install-recommends \ + $PACKAGES + +apt-get autoremove -yq + +# Set UTF-8 +echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +locale-gen +update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 +locale -a + +rm -rf /var/lib/apt/lists/*