File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 35
35
36
36
- run :
37
37
name : Build all targets
38
- command : cargo build --all --all-targets
38
+ command : |
39
+ cargo build --all --all-targets
40
+ mv target/debug/librejson.so target/debug/rejson.so
39
41
40
42
# - run:
41
43
# name: Nightly Build
59
61
name : Package
60
62
command : |
61
63
cargo build --all --all-targets --release
64
+ mv target/release/librejson.so target/release/rejson.so
62
65
ramp pack -m ramp.yml -n RedisJSON -o ./target/release/$PACKAGE_NAME.{os}-{architecture}.$CIRCLE_BRANCH.zip ./target/release/$MODULE_ARTIFACT
63
66
64
67
# - run:
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ edition = "2018"
6
6
7
7
[lib ]
8
8
crate-type = [" cdylib" ]
9
+ name = " rejson"
9
10
10
11
[dependencies ]
11
12
bson = " 0.14"
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM rust:latest as builder
2
2
3
3
ENV LIBDIR /usr/lib/redis/modules
4
4
ENV DEPS "python python-setuptools python-pip wget unzip build-essential clang-6.0 cmake"
5
+
5
6
# Set up a build environment
6
7
RUN set -ex;\
7
8
deps="$DEPS" ;\
@@ -13,16 +14,15 @@ RUN set -ex;\
13
14
ADD . /REJSON
14
15
WORKDIR /REJSON
15
16
RUN set -ex;\
16
- cargo build --release;
17
- # pip install -r ./test/pytest/requirements.txt; \
18
- # python ./test/pytest/test.py target/release/libredisjson.so;
17
+ cargo build --release;
18
+ mv target/release/librejson.so target/release/rejson.so
19
19
20
20
# Package the runner
21
21
FROM redis:latest
22
22
ENV LIBDIR /usr/lib/redis/modules
23
23
WORKDIR /data
24
24
RUN set -ex;\
25
25
mkdir -p "$LIBDIR" ;
26
- COPY --from=builder /REJSON/target/release/libredisjson .so "$LIBDIR"
26
+ COPY --from=builder /REJSON/target/release/rejson .so "$LIBDIR"
27
27
28
- CMD ["redis-server" , "--loadmodule" , "/usr/lib/redis/modules/libredisjson .so" ]
28
+ CMD ["redis-server" , "--loadmodule" , "/usr/lib/redis/modules/rejson .so" ]
You can’t perform that action at this time.
0 commit comments