automated terminal push
Some checks reported warnings
learn org at code.softwareshinobi.com/python.softwareshinobi.com/pipeline/head This commit was not built
Some checks reported warnings
learn org at code.softwareshinobi.com/python.softwareshinobi.com/pipeline/head This commit was not built
This commit is contained in:
11
.dockerignore
Normal file
11
.dockerignore
Normal file
@@ -0,0 +1,11 @@
|
||||
.git
|
||||
|
||||
.pristine
|
||||
|
||||
.trash
|
||||
|
||||
.recycle
|
||||
|
||||
.backup
|
||||
|
||||
.template
|
||||
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -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
|
||||
56
Jenkinsfile
vendored
Normal file
56
Jenkinsfile
vendored
Normal file
@@ -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'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
34
compose.yaml
Executable file → Normal file
34
compose.yaml
Executable file → Normal file
@@ -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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
This book is licensed under the [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) open-source license.
|
||||
@@ -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)
|
||||
|
||||
<hr />
|
||||
|
||||
* [🎓 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)
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 829 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.5 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 575 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
Binary file not shown.
47
index.md
47
index.md
@@ -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.
|
||||
|
||||
<img src="images-pictures/cover-image.png" alt= “” wiaadth="225" heighat="225">
|
||||
|
||||
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)
|
||||
18
mkdocs.bash
18
mkdocs.bash
@@ -1 +1,17 @@
|
||||
pkill -9 mkdocs;mkdocs serve
|
||||
#!/bin/bash
|
||||
|
||||
##
|
||||
|
||||
reset
|
||||
|
||||
clear
|
||||
|
||||
##
|
||||
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
##
|
||||
|
||||
mkdocs serve
|
||||
|
||||
35
mkdocs.yml
Executable file → Normal file
35
mkdocs.yml
Executable file → Normal file
@@ -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]
|
||||
|
||||
15
provision.bash
Executable file
15
provision.bash
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
##
|
||||
|
||||
apt update
|
||||
|
||||
##
|
||||
|
||||
apt install pip -y
|
||||
|
||||
pip install mkdocs-material --break-system-packages
|
||||
Reference in New Issue
Block a user