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 new file mode 100644 index 0000000..580599a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,56 @@ +pipeline { + + agent none + + options { + + disableConcurrentBuilds(abortPrevious: true) + + buildDiscarder(logRotator(numToKeepStr: '10')) + } + + stages { + + stage('docker compose build') { + + agent { + + label "sian" + + } + + steps { + + dir('.') { + + sh 'docker compose build' + + } + + } + + } + + stage('docker compose push') { + + agent { + + label "sian" + + } + + steps { + + dir('.') { + + sh 'docker compose push' + + } + + } + + } + + } + +} diff --git a/compose.yaml b/compose.yaml old mode 100755 new mode 100644 index 6025d6c..c93f19b --- a/compose.yaml +++ b/compose.yaml @@ -1,23 +1,25 @@ -version: "3" - services: - project-documentation-server-mkdocs: + python.softwareshinobi.com: - container_name: project-documentation-server-mkdocs + container_name: python.softwareshinobi.com - image: titom73/mkdocs - -## restart: "never" + image: softwareshinobi/python.softwareshinobi.com + + build: + + context: . + + dockerfile: Dockerfile + + restart: unless-stopped - volumes: - - - ${PWD}:/docs/project-documentation - - ##- ${PWD}/.mkdocs.yml:/mkdocs.yml - - - ${PWD}/.mkdocs.yml:/docs/mkdocs.yml - ports: - - 8888:8000 + - 8000:80 + + volumes: + + - ./docs:/docs/docs + + - ./mkdocs.yml:/docs/mkdocs.yml diff --git a/docs/.paperwork/LICENSE.md b/docs/.paperwork/LICENSE.md deleted file mode 100755 index 1531d08..0000000 --- a/docs/.paperwork/LICENSE.md +++ /dev/null @@ -1 +0,0 @@ -This book is licensed under the [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) open-source license. diff --git a/docs/.paperwork/SUMMARY.md b/docs/.paperwork/SUMMARY.md deleted file mode 100755 index a5c6d21..0000000 --- a/docs/.paperwork/SUMMARY.md +++ /dev/null @@ -1,29 +0,0 @@ -* [Book "Programming Basics" with Python](README.md) -* [Preface](chapter-00-preface.md) -* [1. First Steps in Programming](chapter-01-first-steps-in-programming.md) -* [2.1. Simple Calculations](chapter-02-simple-calculations.md) -* [2.2. Simple Calculations – Exam Problems](chapter-02-simple-calculations-exam-problems.md) -* [3.1. Simple Conditions](chapter-03-simple-conditions.md) -* [3.2. Simple Conditions – Exam Problems](chapter-03-simple-conditions-exam-problems.md) -* [4.1. More Complex Conditions](chapter-04-complex-conditions.md) -* [4.2. More Complex Conditions – Exam Problems](chapter-04-complex-conditions-exam-problems.md) -* [5.1. Loops](chapter-05-loops.md) -* [5.2. Loops – Exam Problems](chapter-05-loops-exam-problems.md) -* [6.1. Nested Loops](chapter-06-nested-loops.md) -* [6.2. Nested Loops – Exam Problems](chapter-06-nested-loops-exam-problems.md) -* [7.1. More Complex Loops](chapter-07-complex-loops.md) -* [7.2. More Complex Loops – Exam Problems](chapter-07-complex-loops-exam-problems.md) -* [8.1. Practical Exam Preparation – Part I](chapter-08-exam-preparation.md) -* [8.2. Practical Exam Preparation – Part II](chapter-08-exam-preparation-part-2.md) -* [9.1. Problems for Champions – Part I](chapter-09-problems-for-champions.md) -* [9.2. Problems for Champions – Part II](chapter-09-problems-for-champions-part-2.md) -* [10. Methods](chapter-10-functions.md) -* [11. Tricks and Hacks](chapter-11-tricks-and-hacks.md) -* [Conclusion](chapter-12-conclusion.md) - -
-
-Kompose is a conversion tool for Docker Compose to container orchestrators such as Kubernetes (or OpenShift).
-
-``` bash
-$ kompose convert -f docker-compose.yaml
-
-$ kubectl apply -f .
-
-$ kubectl get po
-NAME READY STATUS RESTARTS AGE
-frontend-591253677-5t038 1/1 Running 0 10s
-redis-master-2410703502-9hshf 1/1 Running 0 10s
-redis-replica-4049176185-hr1lr 1/1 Running 0 10s
-```
-
-[Installation Guide](developer-guides/installation-guide.md)
-
-## Get started on Kubernetes immediately
-
-So easy your human companion could do it too!
-
-Why do cats (and developers) like Kompose?
-
-Developers love to simplify their development environment with Docker Compose.
-
-With Kompose, you can now push the same file to a production container orchestrator!
-
-[Getting Started](developer-guides/getting-started-guide.md)
-
-## Built for container engineers
-
-Our conversions are not always 1-1 from Docker Compose to Kubernetes, but we will help get you 99% of the way there!
-
-### The awesome features
-
-* Compatibility with multiple versions of Docker Compose
-* A conversion matrix that outlines all compatible values and versions
-* An in-depth user guide to use advanced features such as LoadBalancer, Service and TLS
-* Labels that provide the extra 1% needed to get to 1-1 conversion
-
-[User Guide](developer-guides/user-guide.md)
diff --git a/mkdocs.bash b/mkdocs.bash
index 47fa719..a52d4bd 100755
--- a/mkdocs.bash
+++ b/mkdocs.bash
@@ -1 +1,17 @@
-pkill -9 mkdocs;mkdocs serve
+#!/bin/bash
+
+##
+
+reset
+
+clear
+
+##
+
+set -e
+
+set -x
+
+##
+
+mkdocs serve
diff --git a/mkdocs.yml b/mkdocs.yml
old mode 100755
new mode 100644
index 8ea6d43..4e99cfc
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -1,23 +1,18 @@
-# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages-without
docs_dir: docs
-site_name: Python 101 / Shinobi Academy
+site_name: "Java Team Six: Python"
-exclude_docs: |
- /images-pictures
- images-pictures # A file with this name anywhere.
- images-pictures/ # A "drafts" directory anywhere.
- /requirements.txt # Top-level "docs/requirements.txt".
- *.py # Any file with this extension anywhere.
- !/foo/example.py # But keep this particular file.
-
theme:
- ## features:
-
- ## - navigation.expand
-
+ palette:
+
+ scheme: slate
+
+ primary: deep orange
+
+ accent: purple
+
##
## Find More Themes Here:
##
@@ -25,20 +20,20 @@ theme:
##
## List of theme values:
##
- ## mkdocs, readthedocs, material, cerulean, cosmo,
+ ## mkdocs, readthedocs, material, cerulean, cosmo,
## cyborg, darkly, flatly, journal, litera, lumen, lux,
## materia, minty, pulse, sandstone, simplex, slate, solar,
- ## spacelab, superhero, united, yeti
+ ## spacelab, superhero, united, yeti
##
name: material
-
- ##
+
+ ##
## you can alternate colors for the navigation header.
##
## Allowed values: primary (the default), dark, and light:
##
-
+
nav_style: primary
-extra_css: [styling.css]
+extra_css: [assets/styling.css]
diff --git a/provision.bash b/provision.bash
new file mode 100755
index 0000000..48612f9
--- /dev/null
+++ b/provision.bash
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e
+
+set -x
+
+##
+
+apt update
+
+##
+
+apt install pip -y
+
+pip install mkdocs-material --break-system-packages
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..9474fea
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,2 @@
+# docker.softwareshinobi.com
+