-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 1.07 KB
/
Dockerfile
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
# syntax=docker/dockerfile:1
FROM maven:3-openjdk-17-slim as builder
MAINTAINER bart.hanssens@bosa.fgov.be
# Install git
RUN apt-get update && \
apt-get install -y git-core && \
useradd -m belgif
USER belgif
# Generate the GCloud REST guidelines (asciidoc to HTML)
RUN mkdir -p /tmp/belgif/specification/rest
RUN cd /home/belgif && \
git clone https://github.com/belgif/rest-guide && \
cd /home/belgif/rest-guide && \
mvn clean compile && \
mv /home/belgif/rest-guide/guide/target/generated-docs /tmp/belgif/specification/rest/api-guide
RUN cd /home/belgif && \
git clone https://github.com/belgif/rest-security && \
cd /home/belgif/rest-security && \
mvn clean site && \
mv /home/belgif/rest-security/target/site/doc /tmp/belgif/specification/rest/security-guide
# Generate the static HTML pages (activities, principles...) based on the RDF files
RUN cd /home/belgif && \
git clone https://github.com/belgif/www-belgif && \
cd /home/belgif/www-belgif && \
mvn clean install -DskipTests && \
java -jar target/www*.jar /home/belgif/www-belgif/data /tmp/belgif