- (версия с картинками) https://drive.google.com/open?id=0B5jmlxxuu55tT0xTYXg0ZEhfNFk
- (версия с текстом) https://docs.google.com/presentation/d/1kd6zkEUPNxtDFwxybK53bpdw_QMq2GD1mJA1dkn42UQ/edit?usp=sharing
FROM jenkins/jenkins:2.138.1 | |
USER root | |
RUN apt-get update -y && apt-get install -y \ | |
python-pip \ | |
sudo | |
RUN pip install awscli --upgrade |
node { | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' | |
echo 'Using three backslashes still results in preserving the single quotes' |
- Матрица команды разработки
- Матрица команды саппорта (TBA)
- Слайды https://drive.google.com/file/d/1sn6vdosE8-IHDZlRdA7joIXzdTItXNq3/view?usp=sharing
- Programmer Competency Matrix http://sijinjoseph.com/programmer-competency-matrix/
- Fog Creek Professional Ladder https://www.joelonsoftware.com/2009/02/13/fog-creek-professional-ladder/
#!/usr/bin/env bash | |
# MongoDB port | |
PORT=27017 | |
# Consul key to setup the lock | |
MONGO_KEY="mongodb/replicaset" | |
# | |
# Retrieve MongoDB instance IPs from Consul | |
# |
#!/usr/bin/env bash | |
# install docker | |
# https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
# install docker-compose | |
# https://docs.docker.com/compose/install/ | |
# install letsencrypt | |
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 |
Download Google Drive files with WGET | |
Example Google Drive download link: | |
https://docs.google.com/open?id=[ID] | |
To download the file with WGET you need to use this link: | |
https://googledrive.com/host/[ID] | |
Example WGET command: |
In a terminal start a server.
$ python -m SimpleHTTPServer 8000
In another terminal set up the cgroups freezer.
Let's take a look at how Kubernetes jobs are crafted. I had been jamming some kind of work-around shell scripts in the entrypoint* for some containers in the vnf-asterisk project that Leif and I have been working on. And that's not perfect when we can use Kubernetes jobs, or in their new parlance, "run to completion finite workloads" (I'll stick to calling them "jobs"). They're one-shot containers that do one thing, and then end (sort of like a "oneshot" of systemd units, at least how we'll use them today). I like the idea of using them to complete some service discovery for me when other pods are coming up. Today we'll fire up a pod, and spin up a job to discover that pod (by querying the API for info about it), and put info into etcd. Let's get the job done.
This post also exists as a [gist on github](https