Skip to content

Commit 4f413e6

Browse files
committed
Merge branch 'master' of github.com:swagger-api/swagger-editor
2 parents f3a81ac + 88da274 commit 4f413e6

File tree

2 files changed

+61
-13
lines changed

2 files changed

+61
-13
lines changed

.github/pull_request_template.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,32 @@
2424

2525

2626

27-
### Types of changes
28-
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
29-
- [ ] No code changes (changes to documentation, CI, metadata, etc)
30-
- [ ] Dependency changes (any modification to dependencies in `package.json`)
31-
- [ ] Bug fix (non-breaking change which fixes an issue)
32-
- [ ] New feature (non-breaking change which adds functionality)
33-
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
34-
35-
### Checklist:
27+
## Checklist
3628
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
3729
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
38-
- [ ] My code follows the code style of this project.
39-
- [ ] My change requires a change to the documentation.
40-
- [ ] I have updated the documentation accordingly.
41-
- [ ] I have added tests to cover my changes.
30+
31+
### My PR contains...
32+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
33+
- [ ] No code changes (`src/` is unmodified: changes to documentation, CI, metadata, etc.)
34+
- [ ] Dependency changes (any modification to dependencies in `package.json`)
35+
- [ ] Bug fixes (non-breaking change which fixes an issue)
36+
- [ ] Improvements (misc. changes to existing features)
37+
- [ ] Features (non-breaking change which adds functionality)
38+
39+
### My changes...
40+
- [ ] are breaking changes to a public API (config options, System API, major UI change, etc).
41+
- [ ] are breaking changes to a private API (Redux, component props, utility functions, etc.).
42+
- [ ] are breaking changes to a developer API (npm script behavior changes, new dev system dependencies, etc).
43+
- [ ] are not breaking changes.
44+
45+
### Documentation
46+
- [ ] My changes do not require a change to the project documentation.
47+
- [ ] My changes require a change to the project documentation.
48+
- [ ] If yes to above: I have updated the documentation accordingly.
49+
50+
### Automated tests
51+
- [ ] My changes can not or do not need to be tested.
52+
- [ ] My changes can and should be tested by unit and/or integration tests.
53+
- [ ] If yes to above: I have added tests to cover my changes.
54+
- [ ] If yes to above: I have taken care to cover edge cases in my tests.
4255
- [ ] All new and existing tests passed.

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,41 @@ To help with the migration, here are the currently known issues with 3.X. This l
4646
- The integration with the codegen is still missing.
4747
- Importing specs from a URL is not implemented.
4848

49+
## Docker
50+
51+
### Running the image from DockerHub
52+
There is a docker image published in [DockerHub](https://hub.docker.com/r/swaggerapi/swagger-editor/).
53+
54+
To use this, run the following:
55+
56+
```
57+
docker pull swaggerapi/swagger-editor
58+
docker run -d -p 80:8080 swaggerapi/swagger-editor
59+
```
60+
61+
This will run swagger-editor (in detached mode) on port 80 on your machine, so you can open it by navigating to `http://localhost` in your browser.
62+
63+
### Building and running an image locally
64+
65+
To build and run a docker image with the code checked out on your machine, run the following from the root directory of the project:
66+
67+
```
68+
# Install npm packages (if needed)
69+
npm install
70+
71+
# Build the app
72+
npm run build
73+
74+
# Build an image
75+
docker build -t swagger-editor .
76+
77+
# Run the container
78+
docker run -d -p 80:8080 swagger-editor
79+
80+
```
81+
82+
You can then view the app by navigating to `http://localhost` in your browser.
83+
4984
## Security contact
5085

5186
Please disclose any security-related issues or vulnerabilities by emailing [[email protected]](mailto:[email protected]), instead of using the public issue tracker.

0 commit comments

Comments
 (0)