takuyahara / distroless-with-volume

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

distroless-with-volume

version

Distroless イメージを使う際にアプリへ複雑な(引数では十分に対応できない)設定情報を渡したい場合において、設定情報を Volume のマウントによって共有することで要件を満たせることの実証実験。

$ docker run --name distroless-with-volume --rm -v somewhere/config.json:/cfg/config.json ghcr.io/takuyahara/distroless-with-volume:latest
Hello world
Hello world
Hello world
$

somewhere/config.json

{
    "message": "Hello world",
    "repeat": 3
}

About


Languages

Language:Go 45.8%Language:Makefile 38.8%Language:Dockerfile 8.4%Language:Shell 7.0%