forked from ucbrise/clipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLIPPER-154] Make a pip package (ucbrise#165)
* Setup for pip package * format code * Made requested changes * Fixup * Made requested changes -- added clipper_admin to requirements.txt and consolidated container build scripts * fixed formatting * Fixed import
- Loading branch information
1 parent
8a47e12
commit bb49084
Showing
18 changed files
with
47 additions
and
19 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include the license file | ||
include LICENSE.txt | ||
include README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM clipper/py-rpc:latest | |
|
||
MAINTAINER Dan Crankshaw <[email protected]> | ||
|
||
COPY noop_container.py /container/ | ||
COPY containers/python/noop_container.py /container/ | ||
|
||
CMD ["python", "/container/noop_container.py"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM clipper/py-rpc:latest | ||
|
||
MAINTAINER Dan Crankshaw <[email protected]> | ||
|
||
COPY containers/python/python_container.py containers/python/python_container_entry.sh /container/ | ||
COPY clipper_admin/pywrencloudpickle.py containers/python/python_container_conda_deps.txt /lib/ | ||
|
||
RUN conda install -y --file /lib/python_container_conda_deps.txt | ||
|
||
CMD ["/container/python_container_entry.sh"] | ||
|
||
# vim: set filetype=dockerfile: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM clipper/py-rpc:latest | |
|
||
MAINTAINER Dan Crankshaw <[email protected]> | ||
|
||
COPY sklearn_cifar_container.py /container/ | ||
COPY containers/python/sklearn_cifar_container.py /container/ | ||
|
||
CMD ["python", "/container/sklearn_cifar_container.py"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ MAINTAINER Dan Crankshaw <[email protected]> | |
|
||
RUN pip install tensorflow==1.0 | ||
|
||
COPY tf_cifar_container.py /container/ | ||
COPY containers/python/tf_cifar_container.py /container/ | ||
|
||
CMD ["python", "/container/tf_cifar_container.py"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ scipy==0.18.1 | |
seaborn==0.7.1 | ||
subprocess32==3.2.7 | ||
tensorflow==0.12.1 | ||
clipper_admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from distutils.core import setup | ||
from setuptools import find_packages | ||
|
||
setup( | ||
name='clipper_admin', | ||
version='0.1', | ||
description='Admin commands for the Clipper prediction-serving system', | ||
author='Dan Crankshaw', | ||
author_email='[email protected]', | ||
url='http://clipper.ai', | ||
packages=['clipper_admin'], | ||
keywords=['clipper', 'prediction', 'model', 'management'], | ||
install_requires=[ | ||
'requests', 'pyparsing', 'appdirs', 'pprint', 'subprocess32', | ||
'sklearn', 'numpy', 'scipy', 'fabric', 'conda', 'pyyaml' | ||
]) |