基於官方Drone-CI 的alpine版本最簡化新增亞洲時區Dockerfile構建支援.
iotd@Github: drone-ci-based-alpine-timezone-build
如新增其他基於alpine os的images映象新增亞洲時區包支援,修改一下Dockerfile檔案FROM
即可。
-
Drone-CI 容器版本建立在alpine OS上,alpine對相關時區設定沒有提供相對完整的支援(如Asia/Shanghai),導致通過環境變數設定和檔案掛載時區檔案
/etc/localtime
設定無效的問題,這是一個比較簡單的解決方案。 -
Drone-CI 基於alpine os時區(亞洲/上海)構建Dockerfile。Drone-CI( drone/drone,drone/agent)
-
最簡化修改。
docker iamges
REPOSITORY | TAG |
---|---|
drone/agent | timezone-asia |
drone/drone | timezone-asia |
注意事項
- Dockerfile多級構建。
- Docker版本>=17.05
- 建議您指定一個docker 映象tag版本號標籤
聯絡
- 網站: https://wdft.com
- 網: labsec
- QQ: 404691073
- 電子郵件:stackgo@163.com
歡迎交流和學習。?
Drone-CI based alpine Timezone Build
-
Drone-CI is officially built on alpine OS,Alpine does not provide relatively complete support for the relevant time zone Settings(such as Asia/Shanghai), which is a simpler solution.
-
drone ci based alpine os timezone(Asia/shanghai) build Dockerfile. Drone-CI( drone/drone,drone/agent )
-
Minimal modification.
docker images
REPOSITORY | TAG |
---|---|
drone/agent | timezone-asia |
drone/drone | timezone-asia |
Matters needing attention
- Dockerfile Multi Stage build.
- Docker version >=17.05
- It is recommended that you specify a docker image tag version number build
Contact
- site: wdft.com
- Webchat: labsec
- QQ:404691073
- Email: stackgo@163.com
Welcome to communicate and study.?