The Swagger Editor team has accepted the pull request...
You can now directly build the latest Swagger Editor from the source!!!
This Docker Image will NOT be maintained anymore. See how you you can build the latest version from source below.
Build from Swagger-Editor Code
Follow the steps below:
- git clone https://github.com/swagger-api/swagger-editor
- docker build swagger-editor .
- docker run -ti -p YOUR_PORT:80 swagger-editor
This container is helpful for those who does API-first design with Swagger. The current project is hosted at https://github.com/wordnik/swagger-editor and features Swagger Spec 2.0. The live demo is running at http://editor.swagger.wordnik.com/.
Swagger 2.0 Spec
Built from the current version of https://github.com/wordnik/swagger-editor.
$ sudo docker run -ti -p 80:9000 marcellodesales/swagger-editor
or using the "2.0-spec" tag:
$ sudo docker run -ti -p 80:9000 marcellodesales/swagger-editor:2.0-spec
Swagger 1.2 Spec
Swagger Editor for Spec 1.2, which is not officially maintained anymore. This is a fork from the original release, which does not exist anymore. https://github.com/marcellodesales/swagger-editor/tree/release/editor-swagger-1.2. This is not being maintained anymore.
$ sudo docker run -ti -p 80:9000 marcellodesales/swagger-editor:1.2-spec
Adjust the container's properties as you like. You can also override the runtime volume with your local source-code changes. However, you need to provide all the dependencies built locally before using.
- Port number: the app exposes port 9000.
- Volume: the image was built with the source-code under /runtime. You can replace the contents with your local source-code, but make sure you also include all the dependencies.
$ sudo docker run -ti -p 80:9000 -v /home/marcellodesales/dev/github/swagger-editor/:/runtime marcellodesales/swagger-editor:1.2-spec Running "serve" task Running "clean:server" (clean) task Running "bowerInstall:app" (bowerInstall) task markdown was not injected in your file. Please go take a look in "app/bower_components/markdown" for the file you need, then manually include it in your file. Running "bowerInstall:sass" (bowerInstall) task markdown was not injected in your file. Please go take a look in "app/bower_components/markdown" for the file you need, then manually include it in your file. Running "concurrent:server" (concurrent) task Running "compass:server" (compass) task directory .tmp/styles write .tmp/styles/editor.css (0.006s) write .tmp/styles/errorMsg.css (0.005s) Done, without errors. Execution Time (2014-09-22 05:11:20 UTC) compass:server 853ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100% Total 856ms Running "autoprefixer:dist" (autoprefixer) task Running "connect:livereload" (connect) task Started connect web server on 0.0.0.0:9000. Running "watch" task
Nice work, Marcello! I was all set to make my own image for swagger-editor when I ran into this. Saved a lot of time.
I have been trying to get a 1.2 version of swagger up and running on my ubuntu but so far I have had no luck, I am fairly new to all docker, github , etc. so Please pardon me if I am commenting in the wrong place. I am desperately seeking help to have this up and running.