https://linen.dev logo
#wiremock-java
Title
# wiremock-java
n

Nuno Frias

01/23/2024, 6:46 PM
Hi all I am building an extension that I intend to run as a standalone process within a container. This extension will need some specific configuration that I would like to load at startup via some configuration file that I would mount on a volume. Is there some interface I can implement where I can retrieve that configuration ? Is there some best practice on where to store this configuration file? Any help or advice is appreciated. 🙌
t

Tom

01/24/2024, 9:23 AM
You could follow the approach taken by the gRPC extension and use a folder under WireMock’s root. That way you can grab it via the
Stores
interface in a way that’ll make it more portable than if you directly accessed the files. See https://github.com/wiremock/wiremock-grpc-extension/blob/0ee8cd719af2bc12ff011fddd[…]3cedf/src/main/java/org/wiremock/grpc/GrpcExtensionFactory.java
n

Nuno Frias

01/24/2024, 6:10 PM
Thank you very much @Tom
4 Views