Castle Mock: Official Docker image
Castle Mock is a web application that provides the functionality to mock out RESTful APIs and SOAP web services. This functionality allows client-side developers to completely mimic a server side behaviour and shape the responses themselves.
Castle Mock enables you to upload both WSDL or WADL files. The web services defined within the files will be mocked automatically by Castle Mock. Once the mocks for the web services are created, they can be configured to mock the service or forward the request to the original endpoint. The response from the forwarded requests can be recorded automatically and used to create new mocked responses.
Castle Mock is completely free and open source (Apache License). It is built with Java and the application itself is deployed to an Apache Tomcat server.
Start Castle Mock by running the following command:
docker run -d -p 8080:8080 castlemock/castlemock
Castle Mock is now accessible from the following IP address:
The data files created by Castle Mock can be accessed and stored outside the Docker container. In order to achieve this, you need to create a new volume. This is done by using the -v flag. Run the following command to store Castle Mock's data files in the directory your currenty at.
docker run -d -p 8080:8080 -v $(pwd):/root/.castlemock castlemock/castlemock
Non-source downloads such as WAR files can be found on our website: https://www.castlemock.com/.
Our latest and greatest source of Castle Mock can be found on GitHub.
Bugs and Feedback
For bugs, questions and discussions please use the GitHub Issues
Castle Mock' continuous integration environment is publicly available and can be access on the following link: Travis CI
News and Website
All information about Castle Mock can be found on our website. Follow us on Twitter: castlemock.
Castle Mock is licensed under the Apache License. The terms of the license are as follows:
Apache License Copyright 2015 Karl Dahlgren and a number of other contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.