File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,7 @@ for key in "$@"; do
13
13
done
14
14
15
15
# install requirements
16
- export DEBIAN_FRONTEND=noninteractive
17
- apt-get -y update
18
- apt-get -y install \
19
- cmake \
20
- g++-7 \
21
- git \
22
- python3-dev \
23
- python3-numpy \
24
- sudo \
25
- wget
26
-
27
- # install bazel
28
- export BAZEL_VERSION=${BAZEL_VERSION:- `cat ./ tensorflow_cc/ Dockerfiles/ BAZEL_VERSION`}
29
- apt-get -y install pkg-config zip g++ zlib1g-dev unzip python
30
- bazel_installer=bazel-${BAZEL_VERSION} -installer-linux-x86_64.sh
31
- wget -P /tmp https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION} /${bazel_installer}
32
- chmod +x /tmp/${bazel_installer}
33
- /tmp/${bazel_installer}
34
- rm /tmp/${bazel_installer}
16
+ ./tensorflow_cc/ubuntu-requirements.sh
35
17
36
18
if $cuda ; then
37
19
# install libcupti
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
21
21
wget
22
22
23
23
# install bazel
24
- export BAZEL_VERSION=${BAZEL_VERSION:- `cat . / Dockerfiles/ BAZEL_VERSION`}
24
+ export BAZEL_VERSION=${BAZEL_VERSION:- `cat $(dirname " $0 " ) / Dockerfiles/ BAZEL_VERSION`}
25
25
apt-get -y install pkg-config zip g++ zlib1g-dev unzip python
26
26
bazel_installer=bazel-${BAZEL_VERSION} -installer-linux-x86_64.sh
27
27
wget -P /tmp https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION} /${bazel_installer}
You can’t perform that action at this time.
0 commit comments