@@ -14,6 +14,7 @@ ARG ARCH=x64
1414ARG CUDA_VER=11.0-cudnn8
1515
1616ARG PACK=0
17+ ARG REDISAI_LITE=0
1718ARG TEST=0
1819
1920#----------------------------------------------------------------------------------------------
@@ -35,13 +36,10 @@ ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
3536WORKDIR /build
3637COPY --from=redis /usr/local/ /usr/local/
3738
38- COPY --from=cuda_10.2 /usr/local/cuda-10.2 /usr/local/cuda-10.2
39- COPY --from=cuda_10.2 /usr/lib/x86_64-linux-gnu/libcu* /usr/lib/x86_64-linux-gnu/
40-
41- RUN echo export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda-11.0/lib64:/usr/local/cuda-10.2/lib64:$LD_LIBRARY_PATH > /etc/profile.d/cuda.sh
39+ RUN echo export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda-11.0/lib64:$LD_LIBRARY_PATH > /etc/profile.d/cuda.sh
4240
4341COPY ./opt/ opt/
44- COPY ./tests/flow/test_requirements.txt tests/flow/
42+ ADD ./tests/flow/ tests/flow/
4543
4644RUN FORCE=1 ./opt/readies/bin/getpy3
4745RUN ./opt/system-setup.py
@@ -55,11 +53,12 @@ ADD ./ /build
5553RUN bash -l -c "make -C opt build GPU=1 $BUILD_ARGS SHOW=1"
5654
5755ARG PACK
56+ ARG REDISAI_LITE
5857ARG TEST
5958
6059RUN mkdir -p bin/artifacts
6160RUN set -e ;\
62- if [ "$PACK" = "1" ]; then bash -l -c "make -C opt pack GPU=1"; fi
61+ if [ "$PACK" = "1" ]; then bash -l -c "make -C opt pack GPU=1 REDISAI_LITE=$REDISAI_LITE "; fi
6362
6463RUN set -e ;\
6564 if [ "$TEST" = "1" ]; then \
@@ -75,13 +74,12 @@ FROM nvidia/cuda:${CUDA_VER}-runtime-${OS}
7574ARG OS
7675
7776RUN if [ ! -z $(command -v apt-get) ]; then apt-get -qq update; apt-get -q install -y libgomp1; fi
78- RUN if [ ! -z $(command -v yum) ]; then yum install -y libgomp; fi
77+ RUN if [ ! -z $(command -v yum) ]; then yum install -y libgomp; fi
7978
8079ENV REDIS_MODULES /usr/lib/redis/modules
8180RUN mkdir -p $REDIS_MODULES/
8281
8382COPY --from=redis /usr/local/ /usr/local/
84- COPY --from=builder /usr/local/cuda-10.2 /usr/local/cuda-10.2
8583COPY --from=builder /usr/lib/x86_64-linux-gnu/libcu* /usr/lib/x86_64-linux-gnu/
8684COPY --from=builder /build/install-gpu/ $REDIS_MODULES/
8785
0 commit comments