Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/francescou/compose-registry

self hosted Docker Compose registry
https://github.com/francescou/compose-registry

Last synced: 5 days ago
JSON representation

self hosted Docker Compose registry

Awesome Lists containing this project

README

        

Compose Registry
===

Disclaimer: This is a work in progress and software is still in alpha stage.

## Running the server
To run the server, run:

```
docker run --rm \
--name compose-registry \
--volume $(pwd)/demo-projects/:/projects/:ro \
--publish 8080:8080 \
--read-only \
francescou/compose-registry:0.2
```

To view the Swagger UI interface:

```
open http://localhost:8080/docs
```

## Overview
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.

### How to generate a python (Flask) server

```
docker run --rm \
-v $(pwd)/python-flask/:/output/ \
-v $(pwd)/api/:/data/:ro \
swaggerapi/swagger-codegen-cli \
generate -l python-flask -i /data/swagger.yaml -o /output/
```

documentation to generate a server stub for a couple different frameworks: [Server stub generator HOWTO](https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO)