Skip to content

Instantly share code, notes, and snippets.

View spy86's full-sized avatar
🎯
Focusing

Maciej Michalski spy86

🎯
Focusing
View GitHub Profile
#!/bin/bash
echo "DOCKER"
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
#!/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
@spy86
spy86 / DaemonSet.yaml
Last active February 5, 2023 10:59
Change kernel parameters
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: example
namespace: kube-system
labels:
app: example
spec:
template:
metadata:
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' ) {
##(1)
node {
##(2)
stage('Build') {
...
}
...
}
##(1)
pipeline {
##(2)
agent any
##(3)
stages {
##(4)
stage('Build') {
##(5)
if [[ "$(uname -a)" =~ ^Linux.*-microsoft-standard.*GNU\/Linux ]]; then
if [ ! -f "/var/run/docker.pid" ]; then
sudo /usr/sbin/service docker start
fi
fi
#!/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
listView('Docker_builds') {
description('Jobs for build docker images')
filterBuildQueue()
filterExecutors()
jobs {
name('Build_docker_images')
}
columns {
status()
weather()
pipelineJob("Build_Vagrant_Image") {
logRotator(30, -1, 1, -1)
parameters {
stringParam('VAGRANT_BOX_VERSION', '1.1', 'Version of vagrantbox')
choiceParam('IMAGE', ['-----Choose OS for Build----', '-----Ubuntu-----', 'ubuntu1604', 'ubuntu1804', 'ubuntu2004', '-----CentOS-----', 'centos6', 'centos7', 'centos8', '-----Debian-----', 'debian8', 'debian9', 'debian10', '-----FreeBSD-----', 'freebsd11.4', 'freebsd12.2', 'freebsd13.0', ], 'Build OS')
}
definition {
cpsScm {
scm {