Community maintained Docker config for the knot server

add docs around variables

psychedeli.ca 7a3aeec0 01623cf6

verified
+15 -18
+14 -17
docker-bake.hcl
··· 1 1 variable "UID" { 2 2 default = "1000" 3 + description = "User ID for the git and spindle users" 3 4 } 4 5 5 6 variable "GID" { 6 7 default = "1000" 7 - } 8 - 9 - group "edge" { 10 - targets = ["knot-edge", "spindle-edge"] 8 + description = "Group ID for the git and spindle users" 11 9 } 12 10 13 - target "knot-edge" { 11 + # 12 + # Build the latest commit from the master branch 13 + # 14 + target "edge" { 15 + name = "${APP}-edge" 14 16 context = "." 15 - target = "knot" 16 - args = { 17 - TAG = "master" 18 - UID = UID 19 - GID = GID 17 + target = "${APP}" 18 + matrix = { 19 + APP = ["knot", "spindle"] 20 20 } 21 - tags = ["tngl/knot:edge"] 22 - } 23 - 24 - target "spindle-edge" { 25 - context = "." 26 - target = "spindle" 27 21 args = { 28 22 TAG = "master" 29 23 UID = UID 30 24 GID = GID 31 25 } 32 - tags = ["tngl/spindle:edge"] 26 + tags = ["tngl/${APP}:edge"] 33 27 } 34 28 29 + # 30 + # Build supported legacy releases 31 + # 35 32 target "all" { 36 33 name = "${APP}-${replace(TAG, ".", "-")}" 37 34 context = "."
+1 -1
readme.md
··· 11 11 There is a [repository](https://hub.docker.com/r/tngl) of pre-built images 12 12 for tags starting at `v1.8.0-alpha` if you prefer. 13 13 14 - ``` 14 + ```sh 15 15 docker pull tngl/knot:v1.10.0-alpha 16 16 docker pull tngl/spindle:v1.10.0-alpha 17 17 ```