Skip to content

Commit

Permalink
add .so back in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed Oct 16, 2019
1 parent 77e34bf commit 754cb96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ ENV PATH $SPARK_HOME/bin:$PATH
ENV PYTHONPATH /opt/spark/python/lib/py4j-0.10.7-src.zip:/opt/spark/python/lib/pyspark.zip:$PYTHONPATH
ENV PYSPARK_PYTHON python

# Workaround for https://github.com/tensorflow/tensorflow/issues/30635.
RUN wget -q https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow_jni-cpu-linux-x86_64-1.15.0-rc3.tar.gz && \
tar xf libtensorflow_jni-cpu-linux-x86_64-1.15.0-rc3.tar.gz && \
cp libtensorflow_framework.so.1 /usr/lib

# The tensorframes dir will be mounted here.
VOLUME /mnt/tensorframes
WORKDIR /mnt/tensorframes
Expand Down
3 changes: 1 addition & 2 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ object Shading extends Build {
"com.typesafe.scala-logging" %% "scala-logging-api" % "2.1.2",
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2",
// TensorFlow dependencies
"org.tensorflow" % "libtensorflow" % targetTensorFlowVersion,
"org.tensorflow" % "libtensorflow_jni" % targetTensorFlowVersion
"org.tensorflow" % "tensorflow" % targetTensorFlowVersion
)

lazy val testDependencies = Seq(
Expand Down

0 comments on commit 754cb96

Please sign in to comment.