Retire ailuropoda
This hasn't been used in years. Change-Id: I9754e81bfc538452ffa43f9ff068de8b8672405f Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
4c320ad883
commit
306b0c3768
89
.gitignore
vendored
89
.gitignore
vendored
@ -1,89 +0,0 @@
|
|||||||
# Byte-compiled / optimized / DLL files
|
|
||||||
__pycache__/
|
|
||||||
*.py[cod]
|
|
||||||
*$py.class
|
|
||||||
|
|
||||||
# C extensions
|
|
||||||
*.so
|
|
||||||
|
|
||||||
# Distribution / packaging
|
|
||||||
.Python
|
|
||||||
env/
|
|
||||||
build/
|
|
||||||
develop-eggs/
|
|
||||||
dist/
|
|
||||||
downloads/
|
|
||||||
eggs/
|
|
||||||
.eggs/
|
|
||||||
lib/
|
|
||||||
lib64/
|
|
||||||
parts/
|
|
||||||
sdist/
|
|
||||||
var/
|
|
||||||
*.egg-info/
|
|
||||||
.installed.cfg
|
|
||||||
*.egg
|
|
||||||
|
|
||||||
# PyInstaller
|
|
||||||
# Usually these files are written by a python script from a template
|
|
||||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
||||||
*.manifest
|
|
||||||
*.spec
|
|
||||||
|
|
||||||
# Installer logs
|
|
||||||
pip-log.txt
|
|
||||||
pip-delete-this-directory.txt
|
|
||||||
|
|
||||||
# Unit test / coverage reports
|
|
||||||
htmlcov/
|
|
||||||
.tox/
|
|
||||||
.coverage
|
|
||||||
.coverage.*
|
|
||||||
.cache
|
|
||||||
nosetests.xml
|
|
||||||
coverage.xml
|
|
||||||
*,cover
|
|
||||||
.hypothesis/
|
|
||||||
|
|
||||||
# Translations
|
|
||||||
*.mo
|
|
||||||
*.pot
|
|
||||||
|
|
||||||
# Django stuff:
|
|
||||||
*.log
|
|
||||||
local_settings.py
|
|
||||||
|
|
||||||
# Flask stuff:
|
|
||||||
instance/
|
|
||||||
.webassets-cache
|
|
||||||
|
|
||||||
# Scrapy stuff:
|
|
||||||
.scrapy
|
|
||||||
|
|
||||||
# Sphinx documentation
|
|
||||||
docs/_build/
|
|
||||||
|
|
||||||
# PyBuilder
|
|
||||||
target/
|
|
||||||
|
|
||||||
# IPython Notebook
|
|
||||||
.ipynb_checkpoints
|
|
||||||
|
|
||||||
# pyenv
|
|
||||||
.python-version
|
|
||||||
|
|
||||||
# celery beat schedule file
|
|
||||||
celerybeat-schedule
|
|
||||||
|
|
||||||
# dotenv
|
|
||||||
.env
|
|
||||||
|
|
||||||
# virtualenv
|
|
||||||
venv/
|
|
||||||
ENV/
|
|
||||||
|
|
||||||
# Spyder project settings
|
|
||||||
.spyderproject
|
|
||||||
|
|
||||||
# Rope project settings
|
|
||||||
.ropeproject
|
|
4
.gitreview
Executable file
4
.gitreview
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.opendev.org
|
||||||
|
port=29418
|
||||||
|
project=x/ailuropoda.git
|
25
Dockerfile
25
Dockerfile
@ -1,25 +0,0 @@
|
|||||||
# Dockerfile for ailuropoda
|
|
||||||
# Created 2016-06-02
|
|
||||||
# Author: JJ Asghar <jj@chef.io>
|
|
||||||
#
|
|
||||||
|
|
||||||
# Pull down a standard python container
|
|
||||||
FROM python:2.7.11-alpine
|
|
||||||
|
|
||||||
# Create the place for the application
|
|
||||||
RUN mkdir -p /usr/src/app
|
|
||||||
|
|
||||||
# Do your work in that place
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
# Copy the requirements.txt to get dependencies
|
|
||||||
COPY requirements.txt /usr/src/app/
|
|
||||||
|
|
||||||
# Get the dependencies
|
|
||||||
RUN pip install -v -r requirements.txt
|
|
||||||
|
|
||||||
# Copy the file into the working directory
|
|
||||||
COPY . /usr/src/app
|
|
||||||
|
|
||||||
# Make the pandas cry
|
|
||||||
CMD [ "python", "./main.py" ]
|
|
21
README.md
21
README.md
@ -1,21 +0,0 @@
|
|||||||
# Ailuropoda
|
|
||||||
|
|
||||||
This project is to create a "sad panda" api.
|
|
||||||
|
|
||||||
- v1 will give you back a jpg of a sad panda at location: http://localhost:1901/v1/sad_panda01.png
|
|
||||||
|
|
||||||
## Deployment
|
|
||||||
|
|
||||||
### Dockerfile
|
|
||||||
|
|
||||||
For your convenience there is [Dockerfile](./Dockerfile) located in this directory.
|
|
||||||
You can start up this application assuming you have Docker installed via:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ docker build -t sadpanda .
|
|
||||||
$ docker run -it -p 1901:1901 --rm --name sadpanda sadpanda
|
|
||||||
```
|
|
||||||
|
|
||||||
This will give you a Docker container named sadpanda and start it on port `1901`.
|
|
||||||
|
|
||||||
Go to: http://DOCKERHOST:1901/v1/sad_panda01.png to see the image.
|
|
9
README.rst
Normal file
9
README.rst
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
This project is no longer maintained.
|
||||||
|
|
||||||
|
The contents of this repository are still available in the Git
|
||||||
|
source code management system. To see the contents of this
|
||||||
|
repository before it reached its end of life, please check out the
|
||||||
|
previous commit with "git checkout HEAD^1".
|
||||||
|
|
||||||
|
For any further questions, please email
|
||||||
|
openstack-discuss@lists.openstack.org.
|
Binary file not shown.
Before Width: | Height: | Size: 43 KiB |
14
main.py
14
main.py
@ -1,14 +0,0 @@
|
|||||||
from bottle import Bottle, run, static_file
|
|
||||||
|
|
||||||
app = Bottle()
|
|
||||||
|
|
||||||
@app.route('/')
|
|
||||||
def hello():
|
|
||||||
"""Return a friendly HTTP greeting."""
|
|
||||||
return 'Hello World!'
|
|
||||||
|
|
||||||
@app.route('/v1/<filename:re:.*\.png>')
|
|
||||||
def show_pic(filename):
|
|
||||||
return static_file(filename, root='images/v1/')
|
|
||||||
|
|
||||||
run(app, host='0.0.0.0', port=1901, debug=True)
|
|
@ -1 +0,0 @@
|
|||||||
bottle==0.11.6
|
|
Loading…
x
Reference in New Issue
Block a user