A Docker image to run the api:Console for your REST API documentation with RAML.
docker pull slecache/api-console
docker build -t slecache/api-console .
Your can start your free swarm server for 4 hours by clicking on the following button:
Your can start your free demo server for 2 hours by clicking on the following button:
docker run -p 9000:9000 -d slecache/api-console
Then, access it via http://localhost:9000
in a browser.
Your main RAML file MUST be named main.raml
.
docker run -v /your_local_folder_where_are_your_raml_files:/data/dist/apis --name DATA busybox true
docker run --volumes-from DATA -p 9000:9000 -p 35729:35729 -d slecache/api-console
Please note that the live reload is activated. The edition of any files in your folder will provoke the auto-reloading of your api:Console in your browser.
At the root of your RAML documentation folder where the main.raml
MUST be present, create the following Dockerfile
:
FROM slecache/api-console
Then, run the build command :
docker build -t your_image_name .
All yours documentations files will be copied in the /data/dist/apis
of the Docker Image.
Issues
If you have any problems with or questions about this image, please contact us through a GitHub issue.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request