Skip to content

Commit afec777

Browse files
committed
Updating installation scripts.
1 parent 5f2f5cb commit afec777

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

PADockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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
1+
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

install.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
OSABR=$(echo $(uname)|tr '[:upper:]' '[:lower:]')
22
DWN=/tmp/libtensorflow.tgz
3-
DIR=/tmp/libtf
4-
rm -rf $DIR
5-
mkdir $DIR
6-
rm -f $DWN
73
URL=https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$OSABR-x86_64-1.1.0.tar.gz
84
echo $URL
9-
curl $URL -o $DWN
10-
tar xzf $DWN -C $DIR
11-
sudo cp $DIR/lib/libtensorflow.so /usr/local/lib
12-
rm -rf $DIR
5+
wget $URL -O $DWN
6+
sudo tar xvf $DWN -C /usr/local ./lib/libtensorflow.so
137
rm -f $DWN
148
ls -l /usr/local/lib/libtensorflow.so

0 commit comments

Comments
 (0)