Skip to content

Commit af71ac0

Browse files
authored
ramp build changes for module_name (#750)
1 parent 734da7a commit af71ac0

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ ARG OSNICK
2323
ARG OS
2424
ARG ARCH
2525
ARG REDIS_VER
26+
ARG REDISAI_LITE
27+
ARG PACK
28+
ARG TEST
2629

2730
RUN echo "Building for ${OSNICK} (${OS}) for ${ARCH} [with Redis ${REDIS_VER}]"
2831

@@ -41,19 +44,16 @@ RUN if [ "$DEPS_ARGS" = "" ]; then ./get_deps.sh cpu; else env $DEPS_ARGS ./get_
4144

4245
ARG BUILD_ARGS=""
4346
ADD ./ /build
44-
RUN bash -l -c "make -C opt build $BUILD_ARGS SHOW=1"
47+
RUN bash -l -c "make -C opt build REDISAI_LITE=${REDISAI_LITE} $BUILD_ARGS SHOW=1"
4548

46-
ARG PACK
47-
ARG REDISAI_LITE
48-
ARG TEST
4949

5050
RUN mkdir -p bin/artifacts
5151
RUN set -e ;\
52-
if [ "$PACK" = "1" ]; then bash -l -c "make -C opt pack REDISAI_LITE=$REDISAI_LITE"; fi
52+
if [ "$PACK" = "1" ]; then bash -l -c "make -C opt pack REDISAI_LITE=${REDISAI_LITE}"; fi
5353

5454
RUN set -e ;\
5555
if [ "$TEST" = "1" ]; then \
56-
bash -l -c "TEST= make -C opt test $BUILD_ARGS NO_LFS=1" ;\
56+
bash -l -c "TEST= make -C opt test REDISAI_LITE=${REDISAI_LITE} $BUILD_ARGS NO_LFS=1" ;\
5757
if [[ -d test/logs ]]; then \
5858
tar -C test/logs -czf bin/artifacts/test-logs-cpu.tgz . ;\
5959
fi ;\

opt/build/docker/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ REPO=redisai
1212
INT_BRANCHES=1.2
1313

1414
REDIS_VER:=6.0.9
15+
REDISAI_LITE:=0
1516

1617
export ART_DIR=$(ROOT)/bin/artifacts
1718
export ART_INT_DIR=/var/opt/redislabs/artifacts

ramp-lite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
display_name: RedisAI
1+
display_name: RedisAI-Lite
22
author: Tensorwerk and RedisLabs
33
email: support@redislabs.com
44
description: Serving tensors and executing deep learning graphs
55
homepage: https://oss.redislabs.com/redisai/
66
license: Redis Source Available License v1.0
7-
command_line_args: "BACKENDSPATH /var/opt/redislabs/modules/ai/{{NUMVER}}/deps"
7+
command_line_args: "BACKENDSPATH /var/opt/redislabs/modules/ai-lite/{{NUMVER}}/deps"
88
# command_line_args: "BACKENDSPATH /var/opt/redislabs/modules/ai/{{NUMVER}}/deps/backends"
99
min_redis_version: "5.0.7"
1010
min_redis_pack_version: "5.4.14"

ramp-rce.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
display_name: RedisAI
1+
display_name: RedisAI-RCE
22
author: Tensorwerk and RedisLabs
33
email: support@redislabs.com
44
description: Serving tensors and executing deep learning graphs
55
homepage: https://oss.redislabs.com/redisai/
66
license: Redis Source Available License v1.0
7-
command_line_args: "BACKENDSPATH /var/opt/redislabs/modules/ai/{{NUMVER}}/deps"
7+
command_line_args: "BACKENDSPATH /var/opt/redislabs/modules/ai-lite/{{NUMVER}}/deps"
88
# command_line_args: "BACKENDSPATH /var/opt/redislabs/modules/ai/{{NUMVER}}/deps/backends"
99
min_redis_version: "5.0.7"
1010
min_redis_pack_version: "5.4.14"

0 commit comments

Comments
 (0)