<Типо вступительные слова про RC v0.1>. Итак, поехали.
- пишем @botfather
- Вводим /newbot
- Отвечаем на вопросы
| { | |
| "authorization-plugins": [], | |
| "data-root": "", | |
| "dns": [], | |
| "dns-opts": [], | |
| "dns-search": [], | |
| "exec-opts": [], | |
| "exec-root": "", | |
| "experimental": false, | |
| "features": {}, |
| [Service] | |
| Environment="DOCKER_OPTS= --data-root=/var/lib/docker --log-opt max-size=50m --log-opt max-file=5 --iptables=false -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --insecure-registry 0.0.0.0/0" |
Just auto-translate of The Creation of the UNIX* Operating System. Result and script available.
For run this script you need API token, add them on line #15 Bearer <API_TOKEN_HERE>.
| # =============================================================== | |
| # base image | |
| FROM debian:9.9 | |
| RUN \ | |
| apt-get update -q && \ | |
| apt-get install -yq \ | |
| --no-install-recommends \ |
| /* | |
| Example Jenkinsfile for build docker images. | |
| Just place inside VCS and use multibranch project. | |
| */ | |
| node('master') { | |
| checkout scm | |
| stage("build") { | |
| /* build it */ |
| #!/bin/sh | |
| # Random UUID for this config | |
| vpnUuid=`` | |
| # Address of VPN server | |
| serverName="" | |
| # The group of usernames that is allowed in | |
| groupName="" | |
| # The name of connection type displayed in GUI | |
| labelName="" |
| # variables for run | |
| NAME=cloudflare.com | |
| SRCIP=1.1.1.1 | |
| # delete droplet | |
| doctl compute droplet delete "${NAME}" --force | |
| # create new droplet | |
| doctl compute droplet create \ |
| #!/bin/bash -xe | |
| # debian[-based] | |
| apt-get update -q | |
| apt-get install -yq gnupg2 curl apt-transport-https default-jre | |
| curl -sL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - | |
| echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" > /etc/apt/sources.list.d/elastic.list |