-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (42 loc) · 1.63 KB
/
Dockerfile
File metadata and controls
60 lines (42 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ubuntu:16.04
#FROM debian:latest
RUN apt-get update
RUN apt-get install -y -qq ruby ruby-dev > /dev/null
RUN gem install minima bundler jekyll
# NOTE We need python-dev to prevent encoding errors when running panflute (why? :/ )
RUN apt-get install -y -qq python3 python3-pip python3-dev > /dev/null
RUN pip install -r requirements.txt
# Make Python 3 the default, so pandoc will use it to run panflute,
# which required at least Python 3.6
RUN rm -f /usr/bin/python
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN scripts/build
ENV WORKDIR="/home/user/code"
WORKDIR "$WORKDIR"
ENV MVD_HOME="$WORKDIR/movedo"
COPY . movedo
# Workaround to get tags, until this bug is solved:
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25373
# This also fetches the whole history, as apparently GitLab
# does a shallow clone by default on its runners.
RUN cd "$MVD_HOME"; \
if $(git rev-parse --is-shallow-repository); \
then \
git fetch --tags --unshallow; \
fi; \
git submodule update --init --recursive
# HACK: As of 4. August 2020, panflute (1.12.5) does not support latest pandoc (2.10.x),
# so we install the latest compatible version
# Relevant discussions can be found here:
# * https://github.com/manubot/rootstock/pull/354
# * https://github.com/sergiocorreia/panflute/issues/142
RUN export MVD_PANDOC_VERSION=2.9.2.1; \
"$MVD_HOME/scripts/install_pandoc"
RUN "$MVD_HOME/scripts/install_panflute" --locales
RUN "$MVD_HOME/scripts/install_pp"
#RUN "$MVD_HOME/scripts/install_pdsite"
#CMD "$MVD_HOME/scripts/build"
LABEL maintainer="Robin Vobruba <TODO>"
LABEL version="1.0"
LABEL description="This text illustrates \
a multi-line text"