[Day 20] Oops!gRPC - Auto Protoc Builder with Git Hooks

Git Hooks 在git也有跟webhook類似的強大功能Git Hooks,是在git action觸發的同時去進行一些腳本。 git hooks 列表 Hook 名稱 觸發指令 applypatch-msg git am pre-applypatch git am post-applypatch git am pre-commit git commit prepare-commit-msg git commit post-commit git commit post-checkout git checkout and git clone post-merge git merge or git pull pre-push git push pre-receive git-receive-pack on the remote repo update git-receive-pack on the remote repo post-update git-receive-pack on the remote repo post-rewrite git commit –amend, git-rebase 實作 Auto Protoc Builder 在commit之前觸發上自動幫你透過builder製作proto檔案,並自動git add build完成的files。

[Day 19] Oops!gRPC - Protoc 容器化實作

Oops 安裝 gRPC Protoc好麻煩! 相信每個人在裝gRPC Protoc,可能都要花一些時間,還可能要處理一些環境問題,那就讓我們就把他封裝成容易讓大家用docker run起來build就好了! 目的 Builder: 做一個image可以直接透過docker啟動container去幫你build proto檔案,使用者就不用再安裝proto+gprc了,只需要有裝docker就可以build proto檔案。

[Day 17] Oops!Golang - 讓我們來抓出吃資源的兇手!

是否有看過資源使用數據圖沒有降下來的情況? 是否有遇過機器資源突然吃光的情況? 看code看不出原因的話!這時候就要需要進行效能分析了 說到效能分析就會想到 pprof 本篇文章,先帶大家使用一下golang的pprof套件 https://golang.org/pkg/net/http/pprof/ 檢測功能主要有 cpu: cpu profile 是在哪邊花費CPU的時間。

[Day 15] Oops!Golang - Linter

golangci-lint 是個針對Go語言多個Linters組合而成的Linter,是Linters的大集合。 導入linter在CI流程內,已成為常態,至少會警示你的code可能會遭遇哪些問題,安全性是否有疑慮等問題。 著名使用者們 以下著名的公司也有使用golangci-lint AWS Facebook Google Netflix Arduino Baidu Eclipse Foundation IBM Istio Percona Red Hat OpenShift Samsung Serverless ScyllaDB SoundCloud The New York Times WooCart Xiaomi Yahoo 在github查詢也有上萬個收尋結果唷!

[Day 14] Oops!Drone - Pipelines Services

在Pipelines需要使用DB或其他服務時怎麼辦? 在CI/CD的流程中跑testing是很重要的,但有些test case需要使用DB或其他服務時就可以用Drone Pipelines Service設定把你需要的服務掛進來,例如:redis, mysql, nsq, cassandra or scylla …。 只要相關服務支援使用image讓docker啟動,就能在Pipelines單獨起服務來使用唷!是不是非常非常方便~

[Day 13] Oops!Drone - Cron Jobs

今天來介紹Drone的排程設定功能及應用 有三個方法可以設定排程 From Drone Server UI From Drone CLI From Drone API 此篇主要用 From Drone Server UI & From Drone CLI 兩種方式設定來介紹

[Day 12] Oops!Drone - 進階應用

大家早安 相信大家看完昨日的 [Day 11] Oops!Drone - 快速上手 ,並且練習完昨天的題目後,已經奠定了一些基礎,那麼我們今天來進階練習ㄧ下~ 這些練習或許在未來的某一天,你們可以在某個地方應用的到!