View cronjob-restart-deployment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ServiceAccount | |
apiVersion: v1 | |
metadata: | |
name: restart-deploy | |
namespace: testns | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: |
View docker_ansible.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "DOCKER and DOCKER-COMPOSE" | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common -y |
View DaemonSet.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: example | |
namespace: kube-system | |
labels: | |
app: example | |
spec: | |
template: | |
metadata: |
View wpa_supplicant.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=JP | |
network = { | |
ssid = "<SSID name to connect>" | |
proto = RSN | |
key_mgmt = WPA - EAP | |
pairwise = CCMP | |
auth_alg = OPEN |
View ExampleScriptedPipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
boolean isSuccess = true | |
try { | |
stage( 'Build' ) { | |
build job: "Build", parameters: [[$class: 'StringParameterValue', name: 'Branch', value: "${Branch}"]] | |
} | |
stage( 'Test' ) { | |
build job: "Test", parameters: [] | |
} | |
stage( 'Deploy' ) { |
View ScriptedPipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##(1) | |
node { | |
##(2) | |
stage('Build') { | |
... | |
} | |
... | |
} |
View DeclarativePipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##(1) | |
pipeline { | |
##(2) | |
agent any | |
##(3) | |
stages { | |
##(4) | |
stage('Build') { | |
##(5) |
View docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
traefik: | |
image: traefik:v2.2.0 | |
ports: | |
- "${FRONT_HTTP_PORT:-80}:80" | |
# - "${TRAEFIK_PORT:-8080}:8080" | |
environment: | |
# - TRAEFIK_LOG_LEVEL=DEBUG | |
- TRAEFIK_PROVIDERS_DOCKER_EXPOSEDBYDEFAULT=false |
View WSL2_and_Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ "$(uname -a)" =~ ^Linux.*-microsoft-standard.*GNU\/Linux ]]; then | |
if [ ! -f "/var/run/docker.pid" ]; then | |
sudo /usr/sbin/service docker start | |
fi | |
fi |
View all_in_one.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "DOCKER and DOCKER-COMPOSE" | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common -y |
NewerOlder