Commit f7de3ee7 authored by Idriss Neumann's avatar Idriss Neumann
Browse files

Deploy new version and patch like the other flask restfull api

parent e3a60dc2
Pipeline #5536 passed with stages
in 2 minutes and 47 seconds
......@@ -15,7 +15,7 @@ mirror:
kompose-api-x86:
stage: publish
script:
- setsid ./ci/docker-deliver.sh "kompose-api" "2.9" "x86"
- setsid ./ci/docker-deliver.sh "kompose-api" "2.10" "x86"
only:
refs:
- /^(main.*)$/
......
from flask import Flask, request, Response
## https://github.com/flask-restful/flask-restful/pull/913
import flask.scaffold
flask.helpers._endpoint_from_view_func = flask.scaffold._endpoint_from_view_func
from flask_restful import Resource, Api, reqparse
from werkzeug.datastructures import FileStorage
from subprocess import check_output
......@@ -122,7 +127,7 @@ class DocEndPoint(Resource):
return {'status': 'error', 'reason': err}, 500
kompose_routes = ['/']
kompose_routes = ['/', '/v1', '/v1/']
versions_routes = ['/versions', '/versions/', '/v1/versions', '/v1/versions/']
manifest_routes = ['/manifest', '/manifest/', '/v1/manifest', '/v1/manifest/']
doc_routes = ['/doc', '/doc/', '/v1/doc', '/v1/doc/']
......
......@@ -2,7 +2,7 @@ version: "3.3"
services:
kompose-api:
image: comworkio/kompose-api:2.8
image: comworkio/kompose-api:2.10
user: root
environment:
- FLASK_RUN_PORT=8072
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment