Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM python:onbuild
FROM python:alpine3.6
COPY app /app
WORKDIR /app
RUN pip install -r requirements.txt
ENV PORT 8080
EXPOSE 8080
ENTRYPOINT ["python"]
Expand Down
24 changes: 0 additions & 24 deletions app.py

This file was deleted.

15 changes: 15 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/python

from flask import Flask
from flask_restplus import Resource, Api

app = Flask(__name__)
api = Api(app)

@api.route('/hello')
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}

if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080)
1 change: 1 addition & 0 deletions app/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flask-restplus==0.12.1
6 changes: 4 additions & 2 deletions charts/preview/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
dependencies:
- alias: expose
name: exposecontroller
repository: https://chartmuseum.build.cd.jenkins-x.io
# repository: https://chartmuseum.build.cd.jenkins-x.io
repository: http://chartmuseum.jenkins-x.io
version: 2.3.56
- alias: cleanup
name: exposecontroller
repository: https://chartmuseum.build.cd.jenkins-x.io
# repository: https://chartmuseum.build.cd.jenkins-x.io
repository: http://chartmuseum.jenkins-x.io
version: 2.3.56
- alias: preview
name: python-http
Expand Down
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.