Skip to content

Commit 70e9a60

Browse files
authored
Adding documentation for usage with docker (#24)
<!-- Please describe your pull request here. --> ## References - #11 <!-- References to relevant GitHub issues and pull requests, esp. upstream and downstream changes --> ## Submitter checklist - [ ] The PR request is well described and justified, including the body and the references - [ ] The PR title represents the desired changelog entry - [ ] The repository's code style is followed (see the contributing guide) - [ ] Test coverage that demonstrates that the change works as expected - [ ] For new features, there's necessary documentation in this pull request or in a subsequent PR to [wiremock.org](https://github.com/wiremock/wiremock.org) <!-- Put an `x` into the [ ] to show you have filled the information. The template comes from https://github.com/wiremock/.github/blob/main/.github/pull_request_template.md You can override it by creating .github/pull_request_template.md in your own repository -->
1 parent 17128db commit 70e9a60

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Wiremock State extension
1+
# WireMock State extension
22

33
Adds support to transport state across different stubs.
44

@@ -238,7 +238,23 @@ storing any data.
238238
The standalone jar can be downloaded from [GitHub](https://github.com/wiremock/wiremock-extension-state/packages/1902576) .
239239

240240
```bash
241-
java -cp "wiremock-state-extension-standalone-0.0.4.jar:wiremock-standalone-3.0.0-beta-11.jar" wiremock.Run
241+
java -cp "wiremock-state-extension-standalone-0.0.5.jar:wiremock-standalone-3.0.0-beta-11.jar" wiremock.Run
242+
```
243+
244+
### Docker
245+
246+
Using the extension with docker is similar to its usage with usage [standalone](#standalone): it just has to be available on
247+
the classpath to be loaded automatically - it does not have to be added via `--extensions` .
248+
249+
**Note:** This extension depends on the current WireMock beta development, thus the tag `3x` has to be used:
250+
251+
252+
```bash
253+
docker run -it --rm \
254+
-p 8080:8080 \
255+
--name wiremock \
256+
-v $PWD/extensions:/var/wiremock/extensions \
257+
wiremock/wiremock:3x
242258
```
243259

244260
## Record a state

0 commit comments

Comments
 (0)