-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lack of docs for usage with official wiremock docker image #3
Comments
OK, I seem to have found the working way in the meantime, usage of: https://mvnrepository.com/artifact/org.wiremock.extensions/wiremock-jwt-extension-standalone/0.1.0 with command:
starts properly, listing the expected extensions:
Anyway, might be worth documenting in the Readme.md |
+1 |
Ran into this as well, anybody solved this? |
@johndevs I was able to get this to work by copying the standalone JAR into the @Container
static final GenericContainer<?> wiremock =
new GenericContainer<>(DockerImageName.parse("wiremock/wiremock").withTag("3.10.0"))
.withEnv("WIREMOCK_OPTIONS", "--verbose")
.withNetwork(network)
.withNetworkAliases("wiremock")
.withExposedPorts(8080)
// copy the standalone extension JAR into the extensions directory
.withCopyFileToContainer(
forClasspathResource("wiremock-jwt-extension-standalone.jar"),
"/var/wiremock/extensions/wiremock-jwt-extension-standalone.jar")
.withCopyFileToContainer(forClasspathResource("mappings"), "/home/wiremock/mappings")
.waitingFor(forListeningPorts(8080))
.withLogConsumer(new Slf4jLogConsumer(WIREMOCK_LOGGER)); |
Proposal
The
Readme.md
file should document proper usage in docker.Reproduction steps
Having
Dockerfile
with contents:where
./extensions
dir contains:wiremock-jwt-extension-0.1.0.jar
(downloaded from: https://mvnrepository.com/artifact/org.wiremock.extensions/wiremock-jwt-extension/0.1.0)Running the command results in error:
References
No response
The text was updated successfully, but these errors were encountered: