Directories on host machine:
-
/data/certbot/letsencrypt -
/data/certbot/www -
Nginx server in docker container
docker run -d --name nginx \
| <?php | |
| /* | |
| * Copyright by SoftCreatR.dev. | |
| * | |
| * License: https://softcreatr.dev/license-terms | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
Directories on host machine:
/data/certbot/letsencrypt
/data/certbot/www
Nginx server in docker container
docker run -d --name nginx \
| import java.util.ArrayList | |
| import hudson.model.*; | |
| // Remove everything which is currently queued | |
| def q = Jenkins.instance.queue | |
| for (queued in Jenkins.instance.queue.items) { | |
| q.cancel(queued.task) | |
| } | |
| // stop all the currently running jobs |
A clean installation of Ubuntu 18.04.02 LTS was used.
This gist is an extension to the official docs, adding missing parts and instructions.
follow the pre-installation actions on:
| pipeline { | |
| agent any | |
| stages { | |
| stage('Build'){ | |
| steps { | |
| echo "Running job: ${env.JOB_NAME}\nbuild: ${env.BUILD_ID} - ${env.BUILD_URL}\nblue ocean: ${env.RUN_DISPLAY_URL}" | |
| } | |
| } | |
| } |
| #!/bin/bash | |
| # Simple script to wait for named pod | |
| # | |
| # if no arguments are specified it will prompt | |
| # if 1 argument is specified it will look for a pod with that name | |
| # if more than 1 argument is specified it will only use the 1st and ignore the rest | |
| # | |
| # tested against oc 3.9 - might not work with other versions |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf | |
| data: | |
| nginx.conf: | | |
| user nginx; | |
| worker_processes 3; | |
| error_log /var/log/nginx/error.log; | |
| events { |
| alias kc='kubectl' | |
| alias kclf='kubectl logs --tail=200 -f' | |
| alias kcgs='kubectl get service -o wide' | |
| alias kcgd='kubectl get deployment -o wide' | |
| alias kcgp='kubectl get pod -o wide' | |
| alias kcgn='kubectl get node -o wide' | |
| alias kcdp='kubectl describe pod' | |
| alias kcds='kubectl describe service' | |
| alias kcdd='kubectl describe deployment' | |
| alias kcdf='kubectl delete -f' |