-
Notifications
You must be signed in to change notification settings - Fork 280
Adds support for deploying PySpark models #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8ebebed
2b83074
d3fc6c7
f45fa0f
e5a77b2
58090d8
8a21741
ff31db3
63cbf9a
74cdb85
a84d2c4
5f7da90
0fd8a00
1b1920d
83e7caf
5b3ddc7
8e4fb0c
7a63115
874e042
3a3815f
b885989
c9331c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| FROM clipper/py-rpc:latest | ||
|
|
||
| MAINTAINER Dan Crankshaw <dscrankshaw@gmail.com> | ||
|
|
||
| COPY containers/python/python_container_conda_deps.txt /lib/ | ||
|
|
||
| RUN curl -o /spark.tgz https://d3kbcqa49mib13.cloudfront.net/spark-2.1.1-bin-hadoop2.7.tgz \ | ||
| && cd / && tar zxf /spark.tgz && mv /spark-2.1.1-bin-hadoop2.7 /spark \ | ||
| && echo deb http://ftp.de.debian.org/debian jessie-backports main >> /etc/apt/sources.list \ | ||
| && apt-get update --fix-missing \ | ||
| && apt-get install -yqq -t jessie-backports openjdk-8-jdk \ | ||
| && conda install -y --file /lib/python_container_conda_deps.txt \ | ||
| && pip install findspark | ||
|
|
||
| COPY containers/python/pyspark_container.py containers/python/pyspark_container_entry.sh /container/ | ||
| COPY clipper_admin/ /lib/clipper_admin/ | ||
|
|
||
| ENV SPARK_HOME="/spark" | ||
|
|
||
| CMD ["/container/pyspark_container_entry.sh"] | ||
|
|
||
| # vim: set filetype=dockerfile: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove commented code
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This actually isn't a comment, it's a vim modeline directive http://vim.wikia.com/wiki/Modeline_magic |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,7 +120,18 @@ function run_frontend_tests { | |
| function run_integration_tests { | ||
| echo -e "\nRunning integration tests\n\n" | ||
| cd $DIR | ||
| if [ -z ${SPARK_HOME+x} ]; then | ||
| echo "Downloading Spark" | ||
| curl -o spark.tgz https://d3kbcqa49mib13.cloudfront.net/spark-2.1.1-bin-hadoop2.7.tgz | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we pull vars for these versions? |
||
| tar zxf spark.tgz && mv spark-2.1.1-bin-hadoop2.7 spark | ||
| export SPARK_HOME=`pwd`/spark | ||
| else | ||
| echo "Found Spark at $SPARK_HOME" | ||
| fi | ||
| pip install findspark | ||
| python ../integration-tests/clipper_manager_tests.py | ||
| python ../integration-tests/deploy_pyspark_models.py | ||
| python ../integration-tests/deploy_pyspark_pipeline_models.py | ||
| python ../integration-tests/many_apps_many_models.py 2 3 | ||
| } | ||
|
|
||
|
|
@@ -131,11 +142,12 @@ function run_all_tests { | |
| redis-cli -p $REDIS_PORT "flushall" | ||
| run_management_tests | ||
| redis-cli -p $REDIS_PORT "flushall" | ||
| run_integration_tests | ||
| redis-cli -p $REDIS_PORT "flushall" | ||
| run_jvm_container_tests | ||
| redis-cli -p $REDIS_PORT "flushall" | ||
| run_rpc_container_tests | ||
| redis-cli -p $REDIS_PORT "flushall" | ||
| run_integration_tests | ||
| } | ||
|
|
||
| if [ "$#" == 0 ] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we extract vars for these versions and
envsubstorBUILDARGSthem in?