Sign inSign up

marcellodesales/swagger-editor

By marcellodesales

•Updated almost 11 years ago

Swagger Editor app, for both 2.0 and 1.2 specs

Image
7

2.0K

marcellodesales/swagger-editor repository overview

⁠ATTENTION

The Swagger Editor team has accepted the pull request...

https://github.com/swagger-api/swagger-editor/blob/master/Dockerfile⁠

You can now directly build the latest Swagger Editor from the source!!!

⁠Maintenance

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:

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

enter image description here

⁠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.

Screenshot of the running application

$ sudo docker run -ti -p 80:9000 marcellodesales/swagger-editor:1.2-spec

⁠Deployment integration

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.

⁠Example

$ 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

Tag summary

Content type

Image

Digest

sha256:e87710ddb…

Size

421.2 MB

Last updated

almost 11 years ago

docker pull marcellodesales/swagger-editor