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
Ondrej Sika
April 21, 2018
Programming
0
210
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
Tweet
Share
More Decks by Ondrej Sika
See All by Ondrej Sika
ZEIT, Serverless Deployments
ondrejsika
0
83
Introduction to Docker & Kubernetes @ JavaDays 2019
ondrejsika
1
270
Terraform - Infrastructure as a Code
ondrejsika
1
260
Gitlab CI + Docker (LinuxDays 2018)
ondrejsika
2
260
TechEd 2018, Introduction to Docker
ondrejsika
0
550
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
340
Docker, Zlin, 8. 2. 2018
ondrejsika
0
110
Other Decks in Programming
See All in Programming
Data-Centric Kaggle
isax1015
1
210
PC-6001でPSG曲を鳴らすまでを全部NetBSD上の Makefile に押し込んでみた / osc2025hiroshima
tsutsui
0
210
Vibe codingでおすすめの言語と開発手法
uyuki234
0
170
CSC307 Lecture 02
javiergs
PRO
1
760
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
690
AtCoder Conference 2025
shindannin
0
930
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
250
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.1k
re:Invent 2025 のイケてるサービスを紹介する
maroon1st
0
170
公共交通オープンデータ × モバイルUX 複雑な運行情報を 『直感』に変換する技術
tinykitten
PRO
0
180
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
490
CSC307 Lecture 04
javiergs
PRO
0
630
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
290
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
220
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
130
How to build a perfect <img>
jonoalderson
1
4.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
790
Abbi's Birthday
coloredviolet
0
4.3k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
120
Being A Developer After 40
akosma
91
590k
How GitHub (no longer) Works
holman
316
140k
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