Skip to content

Commit

Permalink
improved cargo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Sep 20, 2023
1 parent 0c73315 commit 7b5f57c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/main/resources/com/github/jlangch/venice/cargo.venice
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@

Start rules:

* If a container with another version exists for the container
name remove the container and the image
* Pull the image if not yet locally available
* If the container already runs - use it
* If the container is available but does not run - start it `(docker/start ...)`
* If the container is not available - run it `(docker/run ...)`
* If a container with the passed name exists or is running in another
version, stop that container and remove it together with the image
* Pull the image if it is not yet locally available
* If the container runs with the requested version already - use it
* If the container is available but does not run - start it using
`(docker/start ...)`
* If the container is not available - run it using
`(docker/run ...)`
* Finally check for a successful startup using the supplied `ready?`
function. E.g.: `ready?` may scan the container logs for a success
startup message.
function. E.g.: `ready?` may scan the container logs for a
successful startup message.

Args:

Expand Down

0 comments on commit 7b5f57c

Please sign in to comment.