mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Added more docker jobs and apply same naming convention as build jobs
This commit is contained in:
parent
51102e47ae
commit
5c9e3570e2
10
docker/build-includes/Dockerfile
Normal file
10
docker/build-includes/Dockerfile
Normal 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
|
||||||
14
docker/build-includes/docker-compose.yml
Normal file
14
docker/build-includes/docker-compose.yml
Normal 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
|
||||||
20
docker/build-includes/start.sh
Normal file
20
docker/build-includes/start.sh
Normal 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"
|
||||||
4
docker/gh-pages-check/Dockerfile
Normal file
4
docker/gh-pages-check/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM node:latest
|
||||||
|
|
||||||
|
WORKDIR /usr/app
|
||||||
|
RUN npm install linkinator
|
||||||
17
docker/gh-pages-check/docker-compose.yml
Normal file
17
docker/gh-pages-check/docker-compose.yml
Normal 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/
|
||||||
12
docker/gh-pages/Dockerfile
Normal file
12
docker/gh-pages/Dockerfile
Normal 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
|
||||||
14
docker/gh-pages/docker-compose.yml
Normal file
14
docker/gh-pages/docker-compose.yml
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user