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

@ -10,4 +10,4 @@ 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
RUN chmod +x /start.sh

View File

@ -0,0 +1,10 @@
FROM nickblah/lua:5.3-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 luasrcdiet
RUN luarocks install luacheck
COPY start.sh /start.sh
RUN chmod +x /start.sh

View File

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

View File

@ -0,0 +1,20 @@
#!/bin/bash
# Prepare environment
cd /moose/
mkdir -p build/result/Moose_Include_Dynamic
mkdir -p build/result/Moose_Include_Static
GIT_SHA=$(git rev-parse HEAD)
GIT_SHA=$(echo $GIT_SHA|tr -d '\n')
COMMIT_TIME=$(date +%Y-%m-%dT%H:%M:%S)
# Create Includes
lua "./Moose Setup/Moose_Create.lua" S "$COMMIT_TIME-$GIT_SHA" "./Moose Development/Moose" "./Moose Setup" "./build/result/Moose_Include_Static"
lua "./Moose Setup/Moose_Create.lua" D "$COMMIT_TIME-$GIT_SHA" "./Moose Development/Moose" "./Moose Setup" "./build/result/Moose_Include_Dynamic"
# Create Moose_.lua
luasrcdiet --basic --opt-emptylines ./build/result/Moose_Include_Static/Moose.lua -o ./build/result/Moose_Include_Static/Moose_.lua
# Run luacheck
luacheck --std=lua51c --config=.luacheckrc -gurasqq "Moose Development/Moose"

View File

@ -0,0 +1,4 @@
FROM node:latest
WORKDIR /usr/app
RUN npm install linkinator

View File

@ -0,0 +1,17 @@
version: "3.5"
services:
moose-gh-pages-checks:
image: moose/gh-pages-checks
#image: node:latest
#image: joskfg/np
build:
context: .
dockerfile: Dockerfile
container_name: moose-gh-pages-checks
volumes:
- .:/moose
stdin_open: true
tty: true
#command: /bin/bash -c /moose/start.sh
command: npx linkinator https://flightcontrol-master.github.io/MOOSE/

View File

@ -0,0 +1,12 @@
FROM ruby:2.7
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
WORKDIR /usr/src/app
COPY Gemfile just-the-docs.gemspec ./
RUN gem install bundler && bundle install
EXPOSE 4000

View File

@ -0,0 +1,14 @@
version: "3.5"
services:
jekyll:
build:
context: ../../docs
dockerfile: ./Dockerfile
ports:
- 4000:4000
volumes:
- ../../docs:/usr/src/app
stdin_open: true
tty: true
command: bundle exec jekyll serve -H 0.0.0.0 -t --force_polling