score-spec / docs

Docs for Score Specification.
https://docs.score.dev/docs/
Apache License 2.0
6 stars 12 forks source link

Better/More examples about building versus supplying container image #110

Open mathieu-benoit opened 3 months ago

mathieu-benoit commented 3 months ago

Let's have more and dedicated examples about building versus supplying container image.

For examples:

Today, we have this for the --override-property: https://docs.score.dev/docs/how-to/overrides/#how-to-override-a-property, but we could illustrate for example --image and also with score-compose, we could illustrate something like this:

CONTAINER_NAME=hello-world
CONTAINER_IMAGE=${CONTAINER_NAME}:local
score-compose generate score.yaml \
        --build '${CONTAINER_NAME}={"context":".","tags":["${CONTAINER_IMAGE}"]}'
docker compose up --build -d

With that users can better understand their options, how and when they could build/supply their container images, etc.