SAM的程式筆記

  • Home

  • Archives

Ansible install and introduction

Posted on 2019-07-05 | Edited on 2021-03-31 | In DevOps

現在要來把之前機器初始化的手動腳本, 改成自動化

如果你是 Mac 又沒裝 XCode 可參考做法 Install Ansible on Mac

如果是 CentOS 就順著往下做就可以

Read more »

Mac 套件工具

Posted on 2019-07-03 | Edited on 2021-03-31 | In 日常

記錄日常小工具

Read more »

Install Ansible on Mac

Posted on 2019-07-02 | Edited on 2021-03-31 | In DevOps

如何在 Mac 上安裝 Ansible?

Read more »

Hexo Next add Google Analytics

Posted on 2019-07-01 | Edited on 2021-03-31 | In 日常

如何在 Hexo 的 Next 模板增加 Google Analytics?

Read more »

Use jOOQ 3.11.11 generation JPA entity

Posted on 2019-06-25 | Edited on 2021-03-31 | In Java

自從 Oracle JDK 喊說要收費後, 就陸續將開發機換成 OpenJDK,
但是以 Windows 來說 Amazon Corretto 提供的最方便安裝了,
但換成 Corretto 11 後, 有缺一些依賴所以又要改一下指令所以紀錄一下.

Read more »

建立 ssh 使用金鑰及免詢問連線

Posted on 2019-05-24 | Edited on 2021-03-31 | In DevOps

假如我新開一台機器, 除了基本初始化後, 還需要有個執行應用的專門帳號來佈署使用

Read more »

更改 Hexo 主題 NexT

Posted on 2019-05-21 | Edited on 2021-03-31 | In 日常

下載

1
2
cd /github/blog
git clone https://github.com/theme-next/hexo-theme-next themes/next

修改 _config.yml

將

1
theme: landscape

改成

1
theme: next

But….

Read more »

註冊 GitLab Runner use Shell

Posted on 2019-05-21 | Edited on 2021-03-31 | In DevOps

原本是在 Runner 內使用 ssh 直接去做佈署, 但是這樣很沒有效率 失誤率也很高, 所以之後會打算使用 Ansible 來做佈署動作, 不過不管哪一種都是需要使用將GitLab Runner 安裝在宿主主機上, 而不是透過 GitLab Runner in Docker 的這種方式, 因為不管要存取 SSH 金鑰還是鑰呼叫 ansible-playbook 都是直接安裝在宿主主機比較方便啊.

這邊就簡單介紹如何配置跟註冊, 並使用簡單的 shell 來操作遠端機器

Read more »

Gitlab CI 拉基礎影像檔時的授權問題

Posted on 2019-05-13 | Edited on 2021-03-31 | In DevOps

事情是這樣的, 原本跑得好好的流水線, 因為資安要求東封西封, 所以就沒辦法從 DockerHub 拉影像檔下來的, 只好把基礎影像檔上傳一份到自己的 Docker Registry 但我們自己的是有權限控制的, 所以當 CI 本身要用的影像檔要下載時就會發生….

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Running with gitlab-runner 11.7.0 (8bb608ff)
on docker-runner ckf36eMz
Using Docker executor with image docker-registry.samchu.com/node:10-alpine ...
Pulling docker image docker-registry.samchu.com/node:10-alpine ...
ERROR: Preparation failed: Error response from daemon: Get https://docker-registry.samchu.com/v2/node/manifests/10-alpine: no basic auth credentials (executor_docker.go:168:0s)
Will be retried in 3s ...
Using Docker executor with image docker-registry.samchu.com/node:10-alpine ...
Pulling docker image docker-registry.samchu.com/node:10-alpine ...
ERROR: Preparation failed: Error response from daemon: Get https://docker-registry.samchu.com/v2/node/manifests/10-alpine: no basic auth credentials (executor_docker.go:168:0s)
Will be retried in 3s ...
Using Docker executor with image docker-registry.samchu.com/node:10-alpine ...
Pulling docker image docker-registry.samchu.com/node:10-alpine ...
ERROR: Preparation failed: Error response from daemon: Get https://docker-registry.samchu.com/v2/node/manifests/10-alpine: no basic auth credentials (executor_docker.go:168:0s)
Will be retried in 3s ...
ERROR: Job failed (system failure): Error response from daemon: Get https://docker-registry.samchu.com/v2/node/manifests/10-alpine: no basic auth credentials (executor_docker.go:168:0s)
Read more »

架設 APM Pinpoint Server

Posted on 2019-05-07 | Edited on 2021-03-31 | In DevOps

Pinpoint 是 Line 背後公司開源的一種 Application Performance Management (APM)
Pinpoint 官網 在這裡
這一篇教你如何架設 Pinpoint Server 來收集應用的資訊

Read more »
123

朱尚禮 Sam Chu

28 posts
6 categories
29 tags
© 2021 朱尚禮 Sam Chu
Powered by Hexo v3.8.0
|
Theme – NexT.Muse v7.1.2