Added more docker jobs and apply same naming convention as build jobs

This commit is contained in:
kaltokri
2023-10-29 19:43:55 +01:00
parent 51102e47ae
commit 5c9e3570e2
10 changed files with 92 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
FROM nickblah/lua:5.1.5-luarocks-ubuntu
RUN apt-get -qq update
RUN apt-get -qq install tree
RUN apt-get -qq install build-essential
RUN apt-get -qq install git
RUN luarocks install markdown 0.32-2
RUN luarocks install penlight 1.11.0-1
RUN luarocks install metalua-compiler 0.7.3-1
RUN luarocks install metalua-parser 0.7.3-2
RUN luarocks install checks
COPY start.sh /start.sh
RUN chmod +x /start.sh

View File

@@ -0,0 +1,14 @@
version: "3.5"
services:
lua:
image: moose/build-docs
build:
context: .
dockerfile: Dockerfile
container_name: moose-build-docs
volumes:
- ../../:/moose
stdin_open: true
tty: true
command: /bin/bash -c /start.sh

View File

@@ -0,0 +1,24 @@
#!/bin/sh
# Prepare environment
cd /moose/
mkdir -p build/tools
mkdir -p build/doc
# Checkout luadocumentor
cd /moose/build/tools
if [ ! -f /moose/build/tools/luadocumentor/luadocumentor.lua ]
then
git clone --branch patch-1 --single-branch https://github.com/Applevangelist/luadocumentor.git
fi
# Run luadocumentor
cd /moose/build/tools/luadocumentor
lua luadocumentor.lua -d /moose/build/doc '/moose/Moose Development/Moose'
# Copy generated files in the MOOSE_DOCS repo if it is already there
if [ -d /moose/build/MOOSE_DOCS/Documentation ]; then
rm -rf /moose/build/MOOSE_DOCS/Documentation
mkdir -p /moose/build/MOOSE_DOCS/Documentation
cp /moose/build/doc/* /moose/build/MOOSE_DOCS/Documentation/
fi