Skip to content

Commit

Permalink
Updating installation scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
RockfordWei committed Jun 15, 2017
1 parent 5f2f5cb commit afec777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion PADockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
RUN curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.1.0.tar.gz -o /tmp/tflib.tgz && rmdir -rf /tmp/tf && mkdir /tmp/tf && tar xzf /tmp/tflib.tgz -C /tmp/tf && sudo cp /tmp/tf/lib/libtensorflow.so /usr/local/lib && rm -rf /tmp/tf && rm /tmp/tflib.tgz
RUN wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.1.0.tar.gz -O /tmp/tflib.tgz && tar xvf /tmp/tflib.tgz -C /usr/local ./lib/libtensorflow.so && rm /tmp/tflib.tgz
10 changes: 2 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
OSABR=$(echo $(uname)|tr '[:upper:]' '[:lower:]')
DWN=/tmp/libtensorflow.tgz
DIR=/tmp/libtf
rm -rf $DIR
mkdir $DIR
rm -f $DWN
URL=https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$OSABR-x86_64-1.1.0.tar.gz
echo $URL
curl $URL -o $DWN
tar xzf $DWN -C $DIR
sudo cp $DIR/lib/libtensorflow.so /usr/local/lib
rm -rf $DIR
wget $URL -O $DWN
sudo tar xvf $DWN -C /usr/local ./lib/libtensorflow.so
rm -f $DWN
ls -l /usr/local/lib/libtensorflow.so

0 comments on commit afec777

Please sign in to comment.