SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
DevOps Taiwan Meetup #19 - 那些年
我們踩的 CI 坑
Len Chang, December 14 2018
Outline
● Me
● Issues Discussion
○ CI / CD of gitlab
○ CI / CD of bitbucket
○ logstash of Elastic
● Advertisement time !!
Me
Fear is a choice ~
https://www.linkedin.com/in/huailunchang/
Issues Discussion-CI / CD of gitlab
Q: How to deploy
gitLab-runner ?
Key word
● CI/CD of GitLab
● GitLab-runner
Q: How to deploy gitLab-runner ?
Step 1.
● open GitLab
Server and follow
the steps
Q: How to deploy gitLab-runner ?
Step 2.
● Set up gitlab-runner
● Set parameters
Q: How to deploy gitLab-runner ?
Step 3.
● Config setting
Q: How to deploy
gitLab-runner ?
Something you need to care about….
● permission is important !!!
Q: How to clean
gitLab-runner ?
Key word
● NULL
Q: How to clean gitLab-runner ?
Q: How to clean gitLab-runner ?
gitlab-runner verify --delete. It will delete runners that got removed from GitLab.
Reference
Q: How to clean
gitLab-runner ?
Something you need to care about….
● Still .. NULL
CI / CD of bitbucket
Q: How to deploy
app in Google App
Engine by Bitbucket
Pipelines ?
Key word
● Google App Engine
● Bitbucket Pipelines
Q: How to deploy app in Google App Engine by
Bitbucket Pipelines ?
Step 1.
● Apply GCP / Bitbucket account
● Make sure your app can run on local and
match Google App Engine Environment
Step 2.
● Get auth. key from GCP
Q: How to deploy app in Google App Engine by
Bitbucket Pipelines ?
Step 3.
● Bitbucket Setting
a. Enable your settings
Q: How to deploy app in Google App Engine by
Bitbucket Pipelines ?
Step 4.
● Bitbucket Setting
a. Set repository variables
Q: How to deploy app in Google App Engine by
Bitbucket Pipelines ?
Step 5.
● Bitbucket Setting
a. write pipelines.yaml
Q: How to deploy
app in Google App
Engine by Bitbucket
Pipelines ?
Something you need to care about….
● Limitations of Bitbucket Pipelines
○ Free 50 minutes
● Something will break down forever….
Q: How to deploy
web (Angular)
in Google Cloud
Storage by
Bitbucket Pipelines
?
Key word
● Google Cloud Storage
○ https://cloud.google.com/storage/
● Angular
○ https://angular.io/
Q: How to deploy web (Angular) in Google
Cloud Storage by Bitbucket Pipelines ?
Step 1.
● Apply GCP / Bitbucket account
● Make sure your angular app can run on local
Step 2.
● Get auth. key from GCP
Q: How to deploy web (Angular) in Google
Cloud Storage by Bitbucket Pipelines ?
Step 3.
● Let google know we own the domain
"test123.com" if it's not done before (do this
on Google Search Console)
Q: How to deploy web (Angular) in Google
Cloud Storage by Bitbucket Pipelines ?
Step 4.
● Create a new bucket named
"whatever.test123.com" and upload bundled
webapp
Step 5.
● Assign member named "allUsers" as the
"Storage Object Viewer" of the bucket
Q: How to deploy web (Angular) in Google
Cloud Storage by Bitbucket Pipelines ?
Step 6.
● Set index.html as main page and 404 page
Q: How to deploy web (Angular) in Google
Cloud Storage by Bitbucket Pipelines ?
Step 7.
● Bitbucket Setting
a. Enable your settings
Q: How to deploy web (Angular) in Google
Cloud Storage by Bitbucket Pipelines ?
Step 8.
● Bitbucket Setting
a. Set repository variables
Q: How to deploy app in Google App Engine by
Bitbucket Pipelines ?
Step 9.
● Bitbucket Setting
a. write pipelines.yaml
Q: How to deploy
app in Google App
Engine by Bitbucket
Pipelines ?
Something you need to care about….
● gsutil -m rm gs://aaa.test1234.com/**
○ You need to push data into bucket first otherwise
you will get exception
logstash of Elastic
How to use logstash
to read log files
created by rsyslog?
Key word
● logstash
● rsyslog
How to use logstash to read log files created by
rsyslog?
Q: logstash can’t read log files which “permission
deny…..”
How to use logstash to read log files created by
rsyslog?
Q: logstash can’t read log files which “permission
deny…..”
/etc/syslog.conf (default value)
● $FileCreateMode 0644
● $umask 0077
○ Update to $umask 0022
How to use logstash
to read log files
created by rsyslog?
Summary
● Permission is important….
logstash -
Persistent Queues
Key
- Queue
logstash - Persistent Queues
queue.type
● default: memory
● persisted
○ Info
logstash -
Persistent Queues
Summary
- set queue.type is “persisted”
Advertisement time !!
https://tw.yardian.com/
https://us.yardian.com/

Mais conteúdo relacionado

Mais procurados

Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ GitheyMP
 
How I become Go GDE
How I become Go GDEHow I become Go GDE
How I become Go GDEEvan Lin
 
Changing Etsy's Architectural Foundations with Continuous Deployment
Changing Etsy's Architectural Foundations with Continuous DeploymentChanging Etsy's Architectural Foundations with Continuous Deployment
Changing Etsy's Architectural Foundations with Continuous DeploymentMatt Graham
 
Kotlin react bkk 3.0.0
Kotlin react bkk 3.0.0Kotlin react bkk 3.0.0
Kotlin react bkk 3.0.0Christopher Ng
 
Git workflows (Basics)
Git workflows (Basics)Git workflows (Basics)
Git workflows (Basics)Roman Kuba
 
Exploring Google APIs with Python
Exploring Google APIs with PythonExploring Google APIs with Python
Exploring Google APIs with Pythonwesley chun
 
GitLab_meetup_tokyo_201807
GitLab_meetup_tokyo_201807GitLab_meetup_tokyo_201807
GitLab_meetup_tokyo_201807Shota Ito
 
How to master a programming language: a Golang example"
How to master a programming language: a Golang example"How to master a programming language: a Golang example"
How to master a programming language: a Golang example"Evan Lin
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with gitDídac Ríos
 
Gopenflow demo v1 (english)
Gopenflow demo v1 (english)Gopenflow demo v1 (english)
Gopenflow demo v1 (english)Hiroaki Kawai
 
Gwt training presentation
Gwt training presentationGwt training presentation
Gwt training presentationMUFIX Community
 
Gerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryGerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryLuca Milanesio
 
Gerrit Code Review Analytics
Gerrit Code Review AnalyticsGerrit Code Review Analytics
Gerrit Code Review AnalyticsLuca Milanesio
 
Git使用经验
Git使用经验Git使用经验
Git使用经验Tianpo Gao
 
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)Pedro Moreira da Silva
 

Mais procurados (20)

Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
 
How I become Go GDE
How I become Go GDEHow I become Go GDE
How I become Go GDE
 
Git basics
Git basicsGit basics
Git basics
 
Changing Etsy's Architectural Foundations with Continuous Deployment
Changing Etsy's Architectural Foundations with Continuous DeploymentChanging Etsy's Architectural Foundations with Continuous Deployment
Changing Etsy's Architectural Foundations with Continuous Deployment
 
Advanced Git
Advanced GitAdvanced Git
Advanced Git
 
Kotlin react bkk 3.0.0
Kotlin react bkk 3.0.0Kotlin react bkk 3.0.0
Kotlin react bkk 3.0.0
 
Git workflows (Basics)
Git workflows (Basics)Git workflows (Basics)
Git workflows (Basics)
 
Exploring Google APIs with Python
Exploring Google APIs with PythonExploring Google APIs with Python
Exploring Google APIs with Python
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Besut Kode - Workshop 1
Besut Kode - Workshop 1Besut Kode - Workshop 1
Besut Kode - Workshop 1
 
GitLab_meetup_tokyo_201807
GitLab_meetup_tokyo_201807GitLab_meetup_tokyo_201807
GitLab_meetup_tokyo_201807
 
How to master a programming language: a Golang example"
How to master a programming language: a Golang example"How to master a programming language: a Golang example"
How to master a programming language: a Golang example"
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with git
 
Gopenflow demo v1 (english)
Gopenflow demo v1 (english)Gopenflow demo v1 (english)
Gopenflow demo v1 (english)
 
Git step by step
Git step by stepGit step by step
Git step by step
 
Gwt training presentation
Gwt training presentationGwt training presentation
Gwt training presentation
 
Gerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryGerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-delivery
 
Gerrit Code Review Analytics
Gerrit Code Review AnalyticsGerrit Code Review Analytics
Gerrit Code Review Analytics
 
Git使用经验
Git使用经验Git使用经验
Git使用经验
 
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
 

Semelhante a DevOps Taiwan meetup #19

markedj: The best of markdown processor on JVM
markedj: The best of markdown processor on JVMmarkedj: The best of markdown processor on JVM
markedj: The best of markdown processor on JVMtakezoe
 
Web.dev extended : What's new in Web [GDG Taichung]
Web.dev extended : What's new in Web [GDG Taichung]Web.dev extended : What's new in Web [GDG Taichung]
Web.dev extended : What's new in Web [GDG Taichung]Chieh Kai Yang
 
Front Page of Hacker News with GitLab Pages
Front Page of Hacker News with GitLab PagesFront Page of Hacker News with GitLab Pages
Front Page of Hacker News with GitLab PagesWill Hall
 
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...Nico Meisenzahl
 
Default GitLab CI Pipeline - Auto DevOps
Default GitLab CI Pipeline - Auto DevOpsDefault GitLab CI Pipeline - Auto DevOps
Default GitLab CI Pipeline - Auto DevOpsRajith Bhanuka Mahanama
 
給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version)
給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version) 給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version)
給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version) William Yeh
 
Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5
Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5
Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5MysoreMuleSoftMeetup
 
You're doing it wrong! Git it right!
You're doing it wrong! Git it right!You're doing it wrong! Git it right!
You're doing it wrong! Git it right!Cory Webb
 
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017MarcinStachniuk
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyoneMatt Heusser
 
Shining a light on performance (js meetup)
Shining a light on performance (js meetup)Shining a light on performance (js meetup)
Shining a light on performance (js meetup)Yoav Niran
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingAlessandro Molina
 
Google Cloud: Next'19 Extended Hanoi
Google Cloud: Next'19 Extended HanoiGoogle Cloud: Next'19 Extended Hanoi
Google Cloud: Next'19 Extended HanoiGCPUserGroupVietnam
 
Managing e commerce systems codebase with git
Managing e commerce systems codebase with gitManaging e commerce systems codebase with git
Managing e commerce systems codebase with gitBruno Ricardo Siqueira
 
Introduction to serverless computing on Google Cloud
Introduction to serverless computing on Google CloudIntroduction to serverless computing on Google Cloud
Introduction to serverless computing on Google Cloudwesley chun
 
Getting started with BigQuery
Getting started with BigQueryGetting started with BigQuery
Getting started with BigQueryPradeep Bhadani
 
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by Default
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by DefaultJS Fest 2019. Minko Gechev. Building Fast Angular Applications by Default
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by DefaultJSFestUA
 
Monitoring in the cloud with Puppet
Monitoring in the cloud with PuppetMonitoring in the cloud with Puppet
Monitoring in the cloud with PuppetKris Buytaert
 
GeoServer Developers Workshop
GeoServer Developers WorkshopGeoServer Developers Workshop
GeoServer Developers WorkshopJody Garnett
 

Semelhante a DevOps Taiwan meetup #19 (20)

markedj: The best of markdown processor on JVM
markedj: The best of markdown processor on JVMmarkedj: The best of markdown processor on JVM
markedj: The best of markdown processor on JVM
 
Web.dev extended : What's new in Web [GDG Taichung]
Web.dev extended : What's new in Web [GDG Taichung]Web.dev extended : What's new in Web [GDG Taichung]
Web.dev extended : What's new in Web [GDG Taichung]
 
Front Page of Hacker News with GitLab Pages
Front Page of Hacker News with GitLab PagesFront Page of Hacker News with GitLab Pages
Front Page of Hacker News with GitLab Pages
 
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...
 
Default GitLab CI Pipeline - Auto DevOps
Default GitLab CI Pipeline - Auto DevOpsDefault GitLab CI Pipeline - Auto DevOps
Default GitLab CI Pipeline - Auto DevOps
 
給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version)
給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version) 給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version)
給 RD 的 Kubernetes 初體驗 (GDG Cloud KH 2019-08 version)
 
Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5
Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5
Github Actions for CI/CD Setup | MuleSoft Mysore Meetup #5
 
You're doing it wrong! Git it right!
You're doing it wrong! Git it right!You're doing it wrong! Git it right!
You're doing it wrong! Git it right!
 
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyone
 
Shining a light on performance (js meetup)
Shining a light on performance (js meetup)Shining a light on performance (js meetup)
Shining a light on performance (js meetup)
 
Bitbucket and Git
Bitbucket and GitBitbucket and Git
Bitbucket and Git
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears Training
 
Google Cloud: Next'19 Extended Hanoi
Google Cloud: Next'19 Extended HanoiGoogle Cloud: Next'19 Extended Hanoi
Google Cloud: Next'19 Extended Hanoi
 
Managing e commerce systems codebase with git
Managing e commerce systems codebase with gitManaging e commerce systems codebase with git
Managing e commerce systems codebase with git
 
Introduction to serverless computing on Google Cloud
Introduction to serverless computing on Google CloudIntroduction to serverless computing on Google Cloud
Introduction to serverless computing on Google Cloud
 
Getting started with BigQuery
Getting started with BigQueryGetting started with BigQuery
Getting started with BigQuery
 
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by Default
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by DefaultJS Fest 2019. Minko Gechev. Building Fast Angular Applications by Default
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by Default
 
Monitoring in the cloud with Puppet
Monitoring in the cloud with PuppetMonitoring in the cloud with Puppet
Monitoring in the cloud with Puppet
 
GeoServer Developers Workshop
GeoServer Developers WorkshopGeoServer Developers Workshop
GeoServer Developers Workshop
 

Mais de Len Chang

The issue discussion between dml and ddl deployment
The issue discussion between dml and ddl deploymentThe issue discussion between dml and ddl deployment
The issue discussion between dml and ddl deploymentLen Chang
 
COSCUP 2019 - The discussion between Knex.js and PostgreSQL
COSCUP 2019 - The discussion between Knex.js and PostgreSQLCOSCUP 2019 - The discussion between Knex.js and PostgreSQL
COSCUP 2019 - The discussion between Knex.js and PostgreSQLLen Chang
 
2014 Pixnet Hackathonh - EXIF Mining
2014 Pixnet Hackathonh - EXIF Mining2014 Pixnet Hackathonh - EXIF Mining
2014 Pixnet Hackathonh - EXIF MiningLen Chang
 
Hadoop con2016 - Implement Real-time Centralized logging System by Elastic Stack
Hadoop con2016 - Implement Real-time Centralized logging System by Elastic StackHadoop con2016 - Implement Real-time Centralized logging System by Elastic Stack
Hadoop con2016 - Implement Real-time Centralized logging System by Elastic StackLen Chang
 
Agile scrum in startup
Agile scrum in startup  Agile scrum in startup
Agile scrum in startup Len Chang
 
Hadoop Con2015 - The Data Scientist’s Toolbox
Hadoop Con2015 - The Data Scientist’s ToolboxHadoop Con2015 - The Data Scientist’s Toolbox
Hadoop Con2015 - The Data Scientist’s ToolboxLen Chang
 
Spam user detection report
Spam user detection reportSpam user detection report
Spam user detection reportLen Chang
 

Mais de Len Chang (8)

The issue discussion between dml and ddl deployment
The issue discussion between dml and ddl deploymentThe issue discussion between dml and ddl deployment
The issue discussion between dml and ddl deployment
 
COSCUP 2019 - The discussion between Knex.js and PostgreSQL
COSCUP 2019 - The discussion between Knex.js and PostgreSQLCOSCUP 2019 - The discussion between Knex.js and PostgreSQL
COSCUP 2019 - The discussion between Knex.js and PostgreSQL
 
BI in Xuenn
BI in XuennBI in Xuenn
BI in Xuenn
 
2014 Pixnet Hackathonh - EXIF Mining
2014 Pixnet Hackathonh - EXIF Mining2014 Pixnet Hackathonh - EXIF Mining
2014 Pixnet Hackathonh - EXIF Mining
 
Hadoop con2016 - Implement Real-time Centralized logging System by Elastic Stack
Hadoop con2016 - Implement Real-time Centralized logging System by Elastic StackHadoop con2016 - Implement Real-time Centralized logging System by Elastic Stack
Hadoop con2016 - Implement Real-time Centralized logging System by Elastic Stack
 
Agile scrum in startup
Agile scrum in startup  Agile scrum in startup
Agile scrum in startup
 
Hadoop Con2015 - The Data Scientist’s Toolbox
Hadoop Con2015 - The Data Scientist’s ToolboxHadoop Con2015 - The Data Scientist’s Toolbox
Hadoop Con2015 - The Data Scientist’s Toolbox
 
Spam user detection report
Spam user detection reportSpam user detection report
Spam user detection report
 

Último

Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labsamber724300
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...arifengg7
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxLina Kadam
 
Forming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptForming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptNoman khan
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...
Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...
Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...IJAEMSJORNAL
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionSneha Padhiar
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptJohnWilliam111370
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
Substation Automation SCADA and Gateway Solutions by BRH
Substation Automation SCADA and Gateway Solutions by BRHSubstation Automation SCADA and Gateway Solutions by BRH
Substation Automation SCADA and Gateway Solutions by BRHbirinder2
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESkarthi keyan
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 

Último (20)

Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptx
 
Forming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptForming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).ppt
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...
Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...
Guardians of E-Commerce: Harnessing NLP and Machine Learning Approaches for A...
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
Substation Automation SCADA and Gateway Solutions by BRH
Substation Automation SCADA and Gateway Solutions by BRHSubstation Automation SCADA and Gateway Solutions by BRH
Substation Automation SCADA and Gateway Solutions by BRH
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 

DevOps Taiwan meetup #19

  • 1. DevOps Taiwan Meetup #19 - 那些年 我們踩的 CI 坑 Len Chang, December 14 2018
  • 2. Outline ● Me ● Issues Discussion ○ CI / CD of gitlab ○ CI / CD of bitbucket ○ logstash of Elastic ● Advertisement time !!
  • 3. Me Fear is a choice ~ https://www.linkedin.com/in/huailunchang/
  • 4. Issues Discussion-CI / CD of gitlab
  • 5. Q: How to deploy gitLab-runner ? Key word ● CI/CD of GitLab ● GitLab-runner
  • 6. Q: How to deploy gitLab-runner ? Step 1. ● open GitLab Server and follow the steps
  • 7. Q: How to deploy gitLab-runner ? Step 2. ● Set up gitlab-runner ● Set parameters
  • 8. Q: How to deploy gitLab-runner ? Step 3. ● Config setting
  • 9. Q: How to deploy gitLab-runner ? Something you need to care about…. ● permission is important !!!
  • 10. Q: How to clean gitLab-runner ? Key word ● NULL
  • 11. Q: How to clean gitLab-runner ?
  • 12. Q: How to clean gitLab-runner ? gitlab-runner verify --delete. It will delete runners that got removed from GitLab. Reference
  • 13. Q: How to clean gitLab-runner ? Something you need to care about…. ● Still .. NULL
  • 14. CI / CD of bitbucket
  • 15. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Key word ● Google App Engine ● Bitbucket Pipelines
  • 16. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Step 1. ● Apply GCP / Bitbucket account ● Make sure your app can run on local and match Google App Engine Environment Step 2. ● Get auth. key from GCP
  • 17. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Step 3. ● Bitbucket Setting a. Enable your settings
  • 18. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Step 4. ● Bitbucket Setting a. Set repository variables
  • 19. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Step 5. ● Bitbucket Setting a. write pipelines.yaml
  • 20. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Something you need to care about…. ● Limitations of Bitbucket Pipelines ○ Free 50 minutes ● Something will break down forever….
  • 21. Q: How to deploy web (Angular) in Google Cloud Storage by Bitbucket Pipelines ? Key word ● Google Cloud Storage ○ https://cloud.google.com/storage/ ● Angular ○ https://angular.io/
  • 22. Q: How to deploy web (Angular) in Google Cloud Storage by Bitbucket Pipelines ? Step 1. ● Apply GCP / Bitbucket account ● Make sure your angular app can run on local Step 2. ● Get auth. key from GCP
  • 23. Q: How to deploy web (Angular) in Google Cloud Storage by Bitbucket Pipelines ? Step 3. ● Let google know we own the domain "test123.com" if it's not done before (do this on Google Search Console)
  • 24. Q: How to deploy web (Angular) in Google Cloud Storage by Bitbucket Pipelines ? Step 4. ● Create a new bucket named "whatever.test123.com" and upload bundled webapp Step 5. ● Assign member named "allUsers" as the "Storage Object Viewer" of the bucket
  • 25. Q: How to deploy web (Angular) in Google Cloud Storage by Bitbucket Pipelines ? Step 6. ● Set index.html as main page and 404 page
  • 26. Q: How to deploy web (Angular) in Google Cloud Storage by Bitbucket Pipelines ? Step 7. ● Bitbucket Setting a. Enable your settings
  • 27. Q: How to deploy web (Angular) in Google Cloud Storage by Bitbucket Pipelines ? Step 8. ● Bitbucket Setting a. Set repository variables
  • 28. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Step 9. ● Bitbucket Setting a. write pipelines.yaml
  • 29. Q: How to deploy app in Google App Engine by Bitbucket Pipelines ? Something you need to care about…. ● gsutil -m rm gs://aaa.test1234.com/** ○ You need to push data into bucket first otherwise you will get exception
  • 31. How to use logstash to read log files created by rsyslog? Key word ● logstash ● rsyslog
  • 32. How to use logstash to read log files created by rsyslog? Q: logstash can’t read log files which “permission deny…..”
  • 33. How to use logstash to read log files created by rsyslog? Q: logstash can’t read log files which “permission deny…..” /etc/syslog.conf (default value) ● $FileCreateMode 0644 ● $umask 0077 ○ Update to $umask 0022
  • 34. How to use logstash to read log files created by rsyslog? Summary ● Permission is important….
  • 36. logstash - Persistent Queues queue.type ● default: memory ● persisted ○ Info
  • 37. logstash - Persistent Queues Summary - set queue.type is “persisted”