File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,15 @@ ARG OSNICK=bionic
5
5
# ----------------------------------------------------------------------------------------------
6
6
FROM redislabs/redis-${OSNICK}:5.0.5 AS builder
7
7
8
+ ENV X_NPROC "cat /proc/cpuinfo|grep processor|wc -l"
9
+
8
10
ADD ./ /build
9
11
WORKDIR /build
10
12
11
13
RUN ./deps/readies/bin/getpy2
12
14
RUN ./system-setup.py
13
15
RUN make deps
14
- RUN make -j`nproc`
16
+ RUN make -j$(eval "$X_NPROC" )
15
17
16
18
# ----------------------------------------------------------------------------------------------
17
19
FROM redislabs/redis-${OSNICK}:5.0.5
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ FROM redisfab/redis-${OSNICK}-xbuild:5.0.5 AS builder
7
7
8
8
RUN [ "cross-build-start" ]
9
9
10
+ ENV X_NPROC "cat /proc/cpuinfo|grep processor|wc -l"
11
+
10
12
ADD ./ /build
11
13
WORKDIR /build
12
14
13
15
RUN ./deps/readies/bin/getpy2
14
16
RUN ./system-setup.py
15
17
RUN make deps
16
- RUN make -j`nproc`
18
+ RUN make -j$(eval "$X_NPROC")
17
19
18
20
RUN [ "cross-build-end" ]
19
21
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ FROM ${OS}
7
7
ARG OS=ubuntu:bionic
8
8
ARG TF_VER=v1.13.1
9
9
10
+ ENV X_NPROC "cat /proc/cpuinfo|grep processor|wc -l"
11
+
10
12
RUN set -ex; apt-get update; apt-get install -y git
11
13
12
14
WORKDIR /build
@@ -28,4 +30,4 @@ RUN apt-get install -y python3 python3-dev
28
30
29
31
RUN cd tensorflow ;\
30
32
./configure ;\
31
- bazel build --jobs `nproc` --config=opt //tensorflow:libtensorflow.so
33
+ bazel build --jobs $(eval "$X_NPROC" ) --config=opt //tensorflow:libtensorflow.so
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ FROM ${OS}
6
6
7
7
ARG TF_VER=v1.13.1
8
8
9
+ ENV X_NPROC "cat /proc/cpuinfo|grep processor|wc -l"
10
+
9
11
RUN set -ex; apt-get update; apt-get install -y git
10
12
11
13
WORKDIR /build
@@ -58,4 +60,4 @@ ENV TF_NEED_TENSORRT=0
58
60
59
61
RUN cd tensorflow ;\
60
62
./configure ;\
61
- bazel build --jobs `nproc` --config=opt //tensorflow:libtensorflow.so
63
+ bazel build --jobs $(eval "$X_NPROC" ) --config=opt //tensorflow:libtensorflow.so
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ def __init__(self):
49
49
self .arch = 'x86'
50
50
elif self .arch == 'aarch64' :
51
51
self .arch = 'arm64v8'
52
+ elif self .arch == 'armv7l' :
53
+ self .arch = 'arm32v7'
52
54
53
55
def is_debian_compat (self ):
54
56
return self .dist == 'debian' or self .dist == 'ubuntu'
You can’t perform that action at this time.
0 commit comments