Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

On September 4, DevOps Slurm started in St. Petersburg.

All the necessary factors for an exciting three-day intensive have gathered in one place and at one time: a comfortable Selectel conference room, seven dozen curious developers in the hall and 32 online participants, Selectel servers for practice. And a green dinosaur lurking in the corner.

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

On the first day of Slurm, three speakers addressed the participants.

Pavel Selivanov, Solutions Architect at Southbridge, has been in administration for over 10 years and is a Certified Kubernetes Administrator. Slurm's regular speaker. He made presentations at the Moscow Kubernetes Meetup and UWDC conferences. He has extensive experience in implementing Kubernetes: 5 projects - individual work, 20+ projects as part of a team.

Artyom Galonsky, STO "BuroByuro", specially arrived at Slurm DevOps from Kaliningrad. Over 12 years experience in commercial development. Acted as a team leader of the development department since 2011. He became technical director in 2016. He thinks that a devops engineer is something like a unicorn. Not in the sense that only a virgin can catch him. And the fact that no one knows what it really is.

Alexey Stepanenko, Selectel Cloud Platform Engineer, deals with infrastructure tasks for maintaining the OpenStack cloud: monitoring, CI / CD and configuration management.

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur
“... and then I caught a vo-o-from such a bug.”

Pavel Selivanov was the first to attack the participants with knowledge - and from an unexpected side. It would seem that what is so special about Git is what seems to be the simplest and most ordinary, elementary truths. But in fact, few people know how to properly work with Git. We went through the basic commands git init, commit, add, diff, log, status, pull, push. We remembered git flow, branches and tags, merge strategies.

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

Then Pavel Selivanov devoted time to team work with Git. Went through fork, remote, pull request. And then we discussed conflicts, releases, and once again returned to Gitflow and other flows in relation to teams.

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur
"Oh, what an admin!"

After lunch, when the participants gained some strength and got ready to listen further, it was the turn of CI / CD.

Artyom Galonskiy started with the topic "CI/CD: Introduction to Automation". I went into detail about the bash, make, gradle tools, as well as using git-hooks to automate processes. He spoke about factory assembly lines and their application in IT. Shared an example of building a "general" pipeline. Discussed modern CI/CD software: Drone CI, BitBucket Pipelines, Travis.

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

Closer to six o'clock in the evening, the participants began to slowly exhaust themselves. There were suggestions to take breaks more often. From actively working neocortexes in the conference room, it became noticeably warmer. A hard-won request even appeared in the working chat: "Colleagues, let's not get carried away and take more breaks #support"

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur
- Mary Ivanna, can I go out? “No, sit!”

Artyom Galonsky ruthlessly continued to upload knowledge to the participants. After the coffee break, I opened the next topic "CI / CD: Working with Gitlab".

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur
“Now hold on tight to your laptops. And-and-and, let's go!

He talked about Gitlab CI, configuration features, best practices, then about Gitlab Runner, their types and applications. Reviewed Gitlab CI steps and Gitlab CI variables. Following the control and execution restrictions (only, when), he talked about working with artifacts. Showed the templates inside .gitlab-ci.yml, reusing actions in different parts of the Include pipeline - sections. Completed centralized management of gitlab-ci.yml: one file and automatic push to other repositories.

After the next cookies and coffee, Alexey Stepanenko spoke to the participants with the topic “Infrastructure as Code: Approach to Infrastructure as Code”. In the hall, the audience was keenly interested in the theme of the next day "IaC on the example of Terraform", they demanded sentimental stories.

Никита Суворов, [4 сент. 2019 г., 20:27:35]:
@f3exx а по терраформу будут душещипательные истории или все закончится лабами?

Aleksey Stepanenko, [4 сент. 2019 г., 20:28:32]:
Будет одна точно)

Dmitriy Miroshnichenko, [4 сент. 2019 г., 20:28:38]:
эээ, например какие?
джун взял стейт и все убил?

At the fifth Slurm, we tried the "ladder" scheme, when the material is given from simple to complex - starting from Git and finishing on SRE. It didn’t work out very well: cool participants got bored on easy topics. Let's see how the difficult part of the intensive goes on Friday.

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

In Slurm's chat they write:

Николай Кононенко, [4 сент. 2019 г., 16:17:28]:
Все вроде получается, но темп такой что ты просто успеваешь это сделать не осмыслив. очень похоже на то как находя рандомную инструкцию на одном из сайтов ты просто копируешь по шагам  и вставляешь, только у тебя нет возможности остановиться а нужно бежать от шага к шагу. ну или ты это уже знаешь и тебе норм

Alexander B, [4 сент. 2019 г., 16:18:06]:
да, успеваешь что-то одно - либо слушать, либо выполнять

Fedor, [4 сент. 2019 г., 16:18:21]:
+1
Еще из минусов, пока ты занимаешься копи пастом инструкций пропускаешь 80% слов Артема

Кирилл, [4 сент. 2019 г., 16:19:01]:
нужно два runners запускать
один раннер слушает 
а второй копипастит )

If you slow down the Slurm, less information will fit into it. Something must be sacrificed - we sacrificed a comfortable pace. Especially in order to fit and tamp everything in the head, there are recordings of the intensive.

Slurm DevOps. The first day. Git, CI/CD, IaC and the green dinosaur

Pavel Selivanov asked the audience several times how ready they are to continue further or to postpone a number of IaC subtopics to the next day. For a long time, friendship and neutrality won the vote. And only at half past eight in the evening won those who still remembered that at night, in theory, you need to sleep.

We responsibly declare that during the first day of Slurm from DevOps engineers, not a single dinosaur was injured. There are two more intense days ahead. The most interesting, complex and delicious: IaC and SRE.

Source: habr.com

Add a comment