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) - -
- -* [🎓 SoftUni Global](https://softuni.org/learn/?utm_source=Python&utm_medium=left+menu&utm_campaign=free+programming+books) -* [👨🏼‍💻 Learn Programming @ SoftUni Global](https://learn.softuni.org/catalog?utm_source=Python&utm_medium=left+menu&utm_campaign=free+programming+books) -* [▶️ SoftUni Global @ YouTube](https://www.youtube.com/c/CodeWithNakov) -* [📚 Nakov's Books](https://introprogramming.info) diff --git a/docs/chapter-02/chapter-02-simple-calculations-exam-problems.md b/docs/.recycle/chapter-02-simple-calculations-exam-problems.md similarity index 100% rename from docs/chapter-02/chapter-02-simple-calculations-exam-problems.md rename to docs/.recycle/chapter-02-simple-calculations-exam-problems.md diff --git a/docs/chapter-03/chapter-03-simple-conditions-exam-problems.md b/docs/.recycle/chapter-03-simple-conditions-exam-problems.md similarity index 100% rename from docs/chapter-03/chapter-03-simple-conditions-exam-problems.md rename to docs/.recycle/chapter-03-simple-conditions-exam-problems.md diff --git a/docs/chapter-04/chapter-04-complex-conditions-exam-problems.md b/docs/.recycle/chapter-04-complex-conditions-exam-problems.md similarity index 100% rename from docs/chapter-04/chapter-04-complex-conditions-exam-problems.md rename to docs/.recycle/chapter-04-complex-conditions-exam-problems.md diff --git a/docs/chapter-05/chapter-05-loops-exam-problems.md b/docs/.recycle/chapter-05-loops-exam-problems.md similarity index 100% rename from docs/chapter-05/chapter-05-loops-exam-problems.md rename to docs/.recycle/chapter-05-loops-exam-problems.md diff --git a/docs/chapter-06/chapter-06-nested-loops-exam-problems.md b/docs/.recycle/chapter-06-nested-loops-exam-problems.md similarity index 100% rename from docs/chapter-06/chapter-06-nested-loops-exam-problems.md rename to docs/.recycle/chapter-06-nested-loops-exam-problems.md diff --git a/docs/chapter-07/chapter-07-complex-loops-exam-problems.md b/docs/.recycle/chapter-07-complex-loops-exam-problems.md similarity index 100% rename from docs/chapter-07/chapter-07-complex-loops-exam-problems.md rename to docs/.recycle/chapter-07-complex-loops-exam-problems.md diff --git a/docs/chapter-08/chapter-08-exam-preparation-part-2.md b/docs/.recycle/chapter-08-exam-preparation-part-2.md similarity index 100% rename from docs/chapter-08/chapter-08-exam-preparation-part-2.md rename to docs/.recycle/chapter-08-exam-preparation-part-2.md diff --git a/docs/chapter-08/chapter-08-exam-preparation.md b/docs/.recycle/chapter-08-exam-preparation.md similarity index 100% rename from docs/chapter-08/chapter-08-exam-preparation.md rename to docs/.recycle/chapter-08-exam-preparation.md diff --git a/docs/chapter-00/chapter-00-preface.md b/docs/chapter-00-preface.md similarity index 100% rename from docs/chapter-00/chapter-00-preface.md rename to docs/chapter-00-preface.md diff --git a/docs/chapter-01/chapter-01-first-steps-in-programming.md b/docs/chapter-01-first-steps-in-programming.md similarity index 100% rename from docs/chapter-01/chapter-01-first-steps-in-programming.md rename to docs/chapter-01-first-steps-in-programming.md diff --git a/docs/chapter-02/chapter-02-simple-calculations.md b/docs/chapter-02-simple-calculations.md similarity index 100% rename from docs/chapter-02/chapter-02-simple-calculations.md rename to docs/chapter-02-simple-calculations.md diff --git a/docs/chapter-03/chapter-03-simple-conditions.md b/docs/chapter-03-simple-conditions.md similarity index 100% rename from docs/chapter-03/chapter-03-simple-conditions.md rename to docs/chapter-03-simple-conditions.md diff --git a/docs/chapter-04/chapter-04-complex-conditions.md b/docs/chapter-04-complex-conditions.md similarity index 100% rename from docs/chapter-04/chapter-04-complex-conditions.md rename to docs/chapter-04-complex-conditions.md diff --git a/docs/chapter-05/chapter-05-loops.md b/docs/chapter-05-loops.md similarity index 100% rename from docs/chapter-05/chapter-05-loops.md rename to docs/chapter-05-loops.md diff --git a/docs/chapter-06/chapter-06-nested-loops.md b/docs/chapter-06-nested-loops.md similarity index 100% rename from docs/chapter-06/chapter-06-nested-loops.md rename to docs/chapter-06-nested-loops.md diff --git a/docs/chapter-07/chapter-07-complex-loops.md b/docs/chapter-07-complex-loops.md similarity index 100% rename from docs/chapter-07/chapter-07-complex-loops.md rename to docs/chapter-07-complex-loops.md diff --git a/docs/chapter-09/chapter-09-problems-for-champions-part-2.md b/docs/chapter-09-problems-for-champions-part-2.md similarity index 100% rename from docs/chapter-09/chapter-09-problems-for-champions-part-2.md rename to docs/chapter-09-problems-for-champions-part-2.md diff --git a/docs/chapter-09/chapter-09-problems-for-champions.md b/docs/chapter-09-problems-for-champions.md similarity index 100% rename from docs/chapter-09/chapter-09-problems-for-champions.md rename to docs/chapter-09-problems-for-champions.md diff --git a/docs/chapter-10/chapter-10-functions.md b/docs/chapter-10-functions.md similarity index 100% rename from docs/chapter-10/chapter-10-functions.md rename to docs/chapter-10-functions.md diff --git a/docs/chapter-11/chapter-11-tricks-and-hacks.md b/docs/chapter-11-tricks-and-hacks.md similarity index 100% rename from docs/chapter-11/chapter-11-tricks-and-hacks.md rename to docs/chapter-11-tricks-and-hacks.md diff --git a/docs/chapter-12/chapter-12-conclusion.md b/docs/chapter-12-conclusion.md similarity index 100% rename from docs/chapter-12/chapter-12-conclusion.md rename to docs/chapter-12-conclusion.md diff --git a/docs/resources/Cover/ISBN-978-619-00-1403-4-Python-Basics-book.png b/docs/resources/Cover/ISBN-978-619-00-1403-4-Python-Basics-book.png deleted file mode 100755 index 0a2c094..0000000 Binary files a/docs/resources/Cover/ISBN-978-619-00-1403-4-Python-Basics-book.png and /dev/null differ diff --git a/docs/resources/Cover/Python-Basics-Nakov-book-back-cover.png b/docs/resources/Cover/Python-Basics-Nakov-book-back-cover.png deleted file mode 100755 index a5aa532..0000000 Binary files a/docs/resources/Cover/Python-Basics-Nakov-book-back-cover.png and /dev/null differ diff --git a/docs/resources/Cover/Python-Basics-Nakov-book-cover.png b/docs/resources/Cover/Python-Basics-Nakov-book-cover.png deleted file mode 100755 index 4b12c14..0000000 Binary files a/docs/resources/Cover/Python-Basics-Nakov-book-cover.png and /dev/null differ diff --git a/docs/resources/Cover/Python-Basics-Nakov-book-front-cover.png b/docs/resources/Cover/Python-Basics-Nakov-book-front-cover.png deleted file mode 100755 index 88fbf6e..0000000 Binary files a/docs/resources/Cover/Python-Basics-Nakov-book-front-cover.png and /dev/null differ diff --git a/docs/resources/Cover/SoftUni-logo.png b/docs/resources/Cover/SoftUni-logo.png deleted file mode 100755 index f584a3a..0000000 Binary files a/docs/resources/Cover/SoftUni-logo.png and /dev/null differ diff --git a/docs/resources/Cover/TODO-python-basics-cover-text.docx b/docs/resources/Cover/TODO-python-basics-cover-text.docx deleted file mode 100755 index 9843520..0000000 Binary files a/docs/resources/Cover/TODO-python-basics-cover-text.docx and /dev/null differ diff --git a/docs/resources/Programming-Basics-Python-v2021.docx b/docs/resources/Programming-Basics-Python-v2021.docx deleted file mode 100755 index f0bbd22..0000000 Binary files a/docs/resources/Programming-Basics-Python-v2021.docx and /dev/null differ diff --git a/index.md b/index.md deleted file mode 100755 index d8df8df..0000000 --- a/index.md +++ /dev/null @@ -1,47 +0,0 @@ -# Kompose - Convert your Docker Compose file to Kubernetes or OpenShift - -An official Kubernetes project, located at github.com/kubernetes/kompose -Go from Docker Compose to Kubernetes. - -“” - -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 +