DockerでWireMockを動かす
#WireMock
Dockerから使える
wiremock-docker
Running in Docker https://wiremock.org/docs/docker/
Inside the container, the WireMock uses /home/wiremock as the root from which it reads the mappings and __files directories.
mappingsと__filesディレクトリを用意
-v $PWD:/home/wiremockとマウント。自動で読み込む(mappingsがメモリに入る)
__filesの下を探すのは必要になった時(-vマウントで書き換えられた)
コマンドライン引数
--verbose
--disable-banner
これらはdocker runしたときの出力から見当をつけた
--global-response-templating
ref: https://wiremock.org/docs/standalone/docker/#building-your-own-image
ドキュメントにあったが未検証
--https-port 8443:コンテナ内のportを指定できる
http://localhost:8080/__admin/mappings (REST API)