Create file /etc/systemd/system/docker-compose@.service
[Unit]
Description=%i service with docker compose
# Requires=docker.service
# After=docker.service
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
{ | |
"streams": [ | |
{ | |
"stream": { | |
"container": "controller", | |
"container_id": "cec7f4ad43cf5d883a04d6a612e65fb6429ea671b7757ef0643b74a20511a666", | |
"fluentd_host": "logging-operator-logging-fluentd-1", | |
"host": "ci01-a3np-ingress-wan-a-vmss000000", | |
"namespace": "nginx-ingress-wan", | |
"pod": "nginx-ingress-wan-controller-86656594b5-bd7qb", |
# Reliable persistent SSH-Tunnel via systemd (not autossh) | |
# https://gist.github.com/aslafy-z/24e2ddb02fa269444620eab1bcfe2932#file-serveo-tunnel-service | |
# | |
# Usage: systemctl start serveo-tunnel@[tunnel-string] (see https://serveo.net for details) | |
# systemctl start serveo-tunnel@mytunnel:80:localhost:8080 | |
# systemctl enable serveo-tunnel@mytunnel:80:localhost:8080 (to make it persist reboot) | |
[Unit] | |
Description=Serveo tunnel for %i | |
After=network.target |
Where XX.XX.XX.XX is your Hamachi IP
pipeline { | |
... | |
stages { | |
stage('Run CI?') { | |
steps { | |
script { | |
if (sh(script: "git log -1 --pretty=%B | grep -F -ie '[skip ci]' -e '[ci skip]'", returnStatus: true) == 0) { | |
currentBuild.result = 'NOT_BUILT' | |
error 'Aborting because commit message contains [skip ci]' |
# Displays the information of the next window to be left-clicked | |
import time | |
import datetime | |
nsClientWindowName = "Netskope Client" | |
username = "" | |
password = "" | |
def window_wait_loose_focus(title, timeOut=0): | |
waited = 0 |
huawei-lte-api
export HUAWEI_ROUTER_IP_ADDRESS="" # Router IP address