From a6f5f339c3175800e96391faf09104931a58e4e2 Mon Sep 17 00:00:00 2001 From: Software Shinobi Date: Thu, 5 Jun 2025 19:02:09 -0400 Subject: [PATCH] automated terminal push --- .dockerignore | 11 +++++++++++ .gitignore | 0 Dockerfile | 13 +++++++++++++ Jenkinsfile | 4 +++- compose.bash | 11 ++++++++--- landing/docs/{training.md => training.md1} | 0 mkdocs.bash | 17 +++++++++++++++++ 7 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 Dockerfile rename landing/docs/{training.md => training.md1} (100%) create mode 100755 mkdocs.bash diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..43cb65d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +.git + +.pristine + +.trash + +.recycle + +.backup + +.template diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3f3a508 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM titom73/mkdocs AS MKDOCS_BUILD + +RUN pip install markupsafe==2.0.1 + +WORKDIR /docs + +COPY . . + +RUN mkdocs build + +FROM mengzyou/bbhttpd:1.35 + +COPY --from=MKDOCS_BUILD --chown=www:www /docs/site /home/www/html diff --git a/Jenkinsfile b/Jenkinsfile index 1989729..580599a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,4 +51,6 @@ pipeline { } -}} + } + +} diff --git a/compose.bash b/compose.bash index baeca42..b1c7bd0 100755 --- a/compose.bash +++ b/compose.bash @@ -2,13 +2,18 @@ ## -set -e; +reset -set -x; +clear + +## + +set -e + +set -x ## docker compose down --remove-orphans docker compose up --build -d - diff --git a/landing/docs/training.md b/landing/docs/training.md1 similarity index 100% rename from landing/docs/training.md rename to landing/docs/training.md1 diff --git a/mkdocs.bash b/mkdocs.bash new file mode 100755 index 0000000..a52d4bd --- /dev/null +++ b/mkdocs.bash @@ -0,0 +1,17 @@ +#!/bin/bash + +## + +reset + +clear + +## + +set -e + +set -x + +## + +mkdocs serve