diff --git a/docker/moose-build-docs/Dockerfile b/docker/build-docs/Dockerfile similarity index 94% rename from docker/moose-build-docs/Dockerfile rename to docker/build-docs/Dockerfile index 839828c60..6fd7007ff 100644 --- a/docker/moose-build-docs/Dockerfile +++ b/docker/build-docs/Dockerfile @@ -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 \ No newline at end of file +RUN chmod +x /start.sh diff --git a/docker/moose-build-docs/docker-compose.yml b/docker/build-docs/docker-compose.yml similarity index 100% rename from docker/moose-build-docs/docker-compose.yml rename to docker/build-docs/docker-compose.yml diff --git a/docker/moose-build-docs/start.sh b/docker/build-docs/start.sh similarity index 100% rename from docker/moose-build-docs/start.sh rename to docker/build-docs/start.sh diff --git a/docker/build-includes/Dockerfile b/docker/build-includes/Dockerfile new file mode 100644 index 000000000..2c72a7996 --- /dev/null +++ b/docker/build-includes/Dockerfile @@ -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 diff --git a/docker/build-includes/docker-compose.yml b/docker/build-includes/docker-compose.yml new file mode 100644 index 000000000..e994882fc --- /dev/null +++ b/docker/build-includes/docker-compose.yml @@ -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 diff --git a/docker/build-includes/start.sh b/docker/build-includes/start.sh new file mode 100644 index 000000000..10b29231e --- /dev/null +++ b/docker/build-includes/start.sh @@ -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" diff --git a/docker/gh-pages-check/Dockerfile b/docker/gh-pages-check/Dockerfile new file mode 100644 index 000000000..282c600dd --- /dev/null +++ b/docker/gh-pages-check/Dockerfile @@ -0,0 +1,4 @@ +FROM node:latest + +WORKDIR /usr/app +RUN npm install linkinator \ No newline at end of file diff --git a/docker/gh-pages-check/docker-compose.yml b/docker/gh-pages-check/docker-compose.yml new file mode 100644 index 000000000..30035ba8e --- /dev/null +++ b/docker/gh-pages-check/docker-compose.yml @@ -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/ diff --git a/docker/gh-pages/Dockerfile b/docker/gh-pages/Dockerfile new file mode 100644 index 000000000..a499513b2 --- /dev/null +++ b/docker/gh-pages/Dockerfile @@ -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 diff --git a/docker/gh-pages/docker-compose.yml b/docker/gh-pages/docker-compose.yml new file mode 100644 index 000000000..26e978667 --- /dev/null +++ b/docker/gh-pages/docker-compose.yml @@ -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