Skip to content

Commit

Permalink
docs: document Docker usage for mounting files (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
theSoenke authored Jul 17, 2023
1 parent 298d166 commit 126e4f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openapi-generator/templates/cli/README.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ Use the `pull` command to download the most recent locale files back into your p

You can also use `phrase` through a docker image, without installing the cli on your computer.

$ docker run --rm phrase/phrase-cli:2.0.15 help
$ docker run --rm phrase/phrase-cli:{{packageVersion}} help

Some commands are interactive and require the `-it` flag.

$ docker run -it phrase/phrase-cli:2.0.15 init
$ docker run -it phrase/phrase-cli:{{packageVersion}} init

Commands that need to read the config file and write locale files can mount a directory.

$ docker run --volume $(pwd):/code --workdir /code --rm phrase/phrase-cli:{{packageVersion}} pull

You can also use the docker image as base for more complex images.

Expand Down

0 comments on commit 126e4f4

Please sign in to comment.