Skip to content

Commit

Permalink
documentation for wiremock options as env variable in docker (#216)
Browse files Browse the repository at this point in the history
* documentation for wiremock options as env variable in docker

* review comment change

Co-authored-by: Oleg Nenashev <[email protected]>

* adding proper quotes to env variable - review comment change

Co-authored-by: Oleg Nenashev <[email protected]>

* adding docker version from where support starts - review comment change

Co-authored-by: Oleg Nenashev <[email protected]>

---------

Co-authored-by: Oleg Nenashev <[email protected]>
  • Loading branch information
kapishmalik and oleg-nenashev authored Oct 16, 2023
1 parent 26272e5 commit 973292f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _docs/standalone/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ docker run -it --rm \
--https-port 8443 --verbose
```

#### Passing command line arguments as environment variable

Starting from `3.2.0-2`, the Docker image supports passing command line arguments [standalone version](../java-jar#command-line-options) as the environment variable.
Environment variable `WIREMOCK_OPTIONS` can be passed to container consisting of all command line arguments e.g.:

```sh
docker run -it --rm \
-e WIREMOCK_OPTIONS='--https-port 8443 --verbose'
-p 8443:8443 \
--name wiremock \
wiremock/wiremock:{{ site.wiremock_version }}
```

### Mounting stub mapping files

Inside the container, the WireMock uses `/home/wiremock` as the root from which it reads the `mappings` and `__files` directories.
Expand Down

0 comments on commit 973292f

Please sign in to comment.