forked from tensorflow/models
-
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.
Updating TF submodule to latest and adding a Dockerfile example. (ten…
…sorflow#117) * Updating TF submodule to latest and adding a Dockerfile example. * Extra \n in ./configure. * Updating Dockerfile to use bazel 0.2.2b. * Replacing a mention of treebank_union with PMP in the README.
- Loading branch information
Showing
13 changed files
with
62 additions
and
19 deletions.
There are no files selected for viewing
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,33 @@ | ||
FROM java:8 | ||
|
||
ENV SYNTAXNETDIR=/opt/tensorflow PATH=$PATH:/root/bin | ||
|
||
RUN mkdir -p $SYNTAXNETDIR \ | ||
&& cd $SYNTAXNETDIR \ | ||
&& apt-get update \ | ||
&& apt-get install git zlib1g-dev file swig python2.7 python-dev python-pip -y \ | ||
&& pip install --upgrade pip \ | ||
&& pip install -U protobuf==3.0.0b2 \ | ||
&& pip install asciitree \ | ||
&& pip install numpy \ | ||
&& wget https://github.com/bazelbuild/bazel/releases/download/0.2.2b/bazel-0.2.2b-installer-linux-x86_64.sh \ | ||
&& chmod +x bazel-0.2.2b-installer-linux-x86_64.sh \ | ||
&& ./bazel-0.2.2b-installer-linux-x86_64.sh --user \ | ||
&& git clone --recursive https://github.com/tensorflow/models.git \ | ||
&& cd $SYNTAXNETDIR/models/syntaxnet/tensorflow \ | ||
&& echo "\n\n\n" | ./configure | ||
|
||
RUN cd $SYNTAXNETDIR/models/syntaxnet \ | ||
&& bazel test --genrule_strategy=standalone syntaxnet/... util/utf8/... \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean | ||
|
||
WORKDIR $SYNTAXNETDIR/models/syntaxnet | ||
|
||
CMD [ "sh", "-c", "echo 'Bob brought the pizza to Alice.' | syntaxnet/demo.sh" ] | ||
|
||
# COMMANDS to build and run | ||
# =============================== | ||
# mkdir build && cp Dockerfile build/ && cd build | ||
# docker build -t syntaxnet . | ||
# docker run syntaxnet |
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
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
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
Submodule tensorflow
updated
2096 files