Commit 8720917d authored by Idriss Neumann's avatar Idriss Neumann
Browse files

Upgrade kompose and kubectl

parent 81b77921
Pipeline #6348 passed with stages
in 3 minutes and 30 seconds
......@@ -15,7 +15,7 @@ mirror:
kompose-api-x86:
stage: publish
script:
- setsid ./ci/docker-deliver.sh "kompose-api" "2.13" "x86"
- setsid ./ci/docker-deliver.sh "kompose-api" "3.0" "x86"
only:
refs:
- /^(main.*)$/
......
FROM python:3-alpine
ENV ENABLE_KUBECTL_APPLY=false \
K8S_VERSION=1.18.2 \
KOMPOSE_VERSION_N=1.22.0 \
KOMPOSE_VERSION_NLESS1=1.21.0 \
K8S_VERSION=1.22.1 \
KOMPOSE_VERSION_N=1.24.0 \
KOMPOSE_VERSION_NLESS1=1.23.0 \
ARCH=amd64 \
FLASK_APP=/api.py \
FLASK_RUN_HOST=0.0.0.0 \
......@@ -13,7 +13,7 @@ ENV ENABLE_KUBECTL_APPLY=false \
README_FILE_PATH=/README.md \
KOMPOSE_DOC_URL=http://127.0.0.1:8080/doc
COPY ./README.md ./api.py ./manifest.json ./versions.sh ./konvert.sh ./requirements.txt /
COPY ./api ./README.md ./manifest.json /
RUN pip3 install --upgrade pip && \
pip3 install -r /requirements.txt && \
......
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
......
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