or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Rails 容器化最佳實踐 - Cindy
tags:
COSCUP2021
zh-tw
COSCUP2021
RubyConf Taiwan 2021
TR214 - Ruby Conf
歡迎來到 https://hackmd.io/@coscup/2021 共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。
Slido: https://app.sli.do/event/8knkiskn
Slide: https://hackmd.io/@cindyliu923/SkDyRZeYd#/
Q & A
怎麼知道要裝哪些套件?
基本知道的就會先裝,其他不確定的看錯誤訊息再補上。
比較難的方式:在 Mac (
otool
)與 Linux (ldd
)可以使用指令找動態依賴套件。在 local 的話可以用
docker-compose
跑起來看看訊息。比較好的方式:一定要有類似 production 的測試環境。
在
asset precompile
時需要 env var 的 value,請問在 CI 上可以如何處理?不清楚問題的實際場景,先跳過了。
Cindy 補充:
想問一下,為什麼要新增 rails user?
Docker 通常預設的 user 是 root,為了安全性考量,會建議額外建立執行指令的 user。
Top 20 Dockerfile best practices - Rootless containers
Best practices for writing Dockerfiles
如何在 apline linx 環境中安裝並使用 mysql 8.0 函式庫?除了改用 postgresql 與 mariadb 以外
不確定,希望有經驗的人可以分享