Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Automation using Gitlab CI and Docker, DevHeave...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ondrej Sika
April 21, 2018
Programming
210
0
Share
Automation using Gitlab CI and Docker, DevHeaven 2018
https://ondrej-sika.cz/blog/2018/talk-automatizace-pomoci-gitlab-ci-a-dockeru/
Ondrej Sika
April 21, 2018
More Decks by Ondrej Sika
See All by Ondrej Sika
ZEIT, Serverless Deployments
ondrejsika
0
87
Introduction to Docker & Kubernetes @ JavaDays 2019
ondrejsika
1
290
Terraform - Infrastructure as a Code
ondrejsika
1
270
Gitlab CI + Docker (LinuxDays 2018)
ondrejsika
2
260
TechEd 2018, Introduction to Docker
ondrejsika
0
560
Lightning Network aneb Bitcoin 2.0, Plzensky Barcamp, 7.4.2018
ondrejsika
0
100
Python Libraries for Bitcoin and Ethereum, PyCon SK 2018
ondrejsika
1
160
i3 tiling window manager, Install Fest 2018
ondrejsika
1
350
Docker, Zlin, 8. 2. 2018
ondrejsika
0
120
Other Decks in Programming
See All in Programming
How to stabilize UI tests using XCTest
akkeylab
0
150
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
500
Java 21/25 Virtual Threads 소개
debop
0
310
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
270
PHPで TLSのプロトコルを実装してみる
higaki_program
0
610
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
200
Geminiをパートナーに神社DXシステムを個人開発した話(いなめぐDX 開発振り返り)
fujiba
0
130
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
710
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
830
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
380
AI活用のコスパを最大化する方法
ochtum
0
360
モダンOBSプラグイン開発
umireon
0
190
Featured
See All Featured
Bash Introduction
62gerente
615
210k
From π to Pie charts
rasagy
0
160
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Claude Code のすすめ
schroneko
67
220k
The Invisible Side of Design
smashingmag
302
51k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Amusing Abliteration
ianozsvald
0
150
We Have a Design System, Now What?
morganepeng
55
8k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
180
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.2k
Transcript
Automation using Gitlab CI and Docker Ondrej Sika
[email protected]
DevHeaven,
Pilsen CZ, 21. 4. 2018
Goals - Build application - Auto deploy to test -
Manual deploy to production
None
Tools - Git - Gitlab + Gitlab CI - Docker
- Traefik
Setup CI environment
Gitlab CI Runner docker-machine create runner eval $(docker-machine env runner)
git clone
[email protected]
:ondrejsika/gitlab-ci-runner.git cd gitlab-ci-runner ./create-runner.sh ./register-runner.sh GITLAB_CI_TOKEN
Server
Traefik Proxy git clone
[email protected]
:ondrejsika/traefik-ssl.git cd traefik-ssl # put SSL
cert.pem and key.pem to certs/ dit docker-compose up -d
Gitlab
Gitlab - Create Gitlab project - Setup CI sercret variables
- SSLPASS (password to server which runs the app)
Application
Application - Dockerize project - Add .gitlab-ci.yml (CI config)
Clone Jekyll Website git clone
[email protected]
:ondrejsika/jekyll-demo.git cd jekyll-demo git remote
rename origin github git remote add origin
[email protected]
:test/jekyll.git git push origin master -u
Dockerize git reset --hard github/docker cat Dockerfile
Add Gitlab CI configuration git reset --hard github/gitlab-ci cat .gitlab-ci.yml
Push & some magic hapens
Push git push origin master -u
Make some changes git checkout -b awesome-header vim index.md git
commit -am 'make header awesome' git push origin awesome-header -u
Resources - https://github.com/ondrejsika/jekyll-demo - https://github.com/ondrejsika/traefik-ssl - https://github.com/ondrejsika/gitlab-ci-runner - https://github.com/ondrejsika/ondrejsika-ci-docker -
https://traefik.io/
Thank you & Questions Ondrej Sika email:
[email protected]
web: ondrej-sika.cz
twitter: @ondrejsika linkedin: /in/ondrejsika/ Slides: https://sika.link/devheaven2018