File tree Expand file tree Collapse file tree 5 files changed +23
-10
lines changed
redisinsight/api/test/test-runs Expand file tree Collapse file tree 5 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ RUN mkdir -p /data && chown -R node:node /data
28
28
COPY --chown=node:node ./docker-entry.sh ./
29
29
RUN chmod +x docker-entry.sh
30
30
31
- # since RI is hard-code to port 5000 , expose it from the container
32
- EXPOSE 5000
31
+ # since RI is hard-code to port 5540 , expose it from the container
32
+ EXPOSE 5540
33
33
34
34
# don't run the node process as root
35
35
USER node
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ RUN mkdir -p /data && chown -R node:node /data
28
28
COPY --chown=node:node ./docker-entry.sh ./
29
29
RUN chmod +x docker-entry.sh
30
30
31
- # since RI is hard-code to port 5000 , expose it from the container
32
- EXPOSE 5000
31
+ # since RI is hard-code to port 5540 , expose it from the container
32
+ EXPOSE 5540
33
33
34
34
# don't run the node process as root
35
35
USER node
Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ jobs:
114
114
run : |
115
115
docker image load -i ./release/docker/docker-linux-alpine.amd64.tar
116
116
117
+ - name : Make sure coverage dir exists
118
+ # Important: this directory is mounted on both the `app` and `test` Docker containers.
119
+ run : mkdir -p ./redisinsight/api/test/test-runs/coverage
120
+
117
121
- name : Run tests
118
122
timeout-minutes : 20
119
123
run : |
@@ -122,7 +126,7 @@ jobs:
122
126
fi
123
127
124
128
./redisinsight/api/test/test-runs/start-test-run.sh -r ${{ matrix.rte }} -t ${{ inputs.build }}
125
- mkdir -p mkdir itest/coverages && mkdir -p itest/results
129
+ mkdir -p itest/coverages && mkdir -p itest/results
126
130
127
131
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.json ./itest/results/${{ matrix.rte }}.result.json
128
132
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.xml ./itest/results/${{ matrix.rte }}.result.xml
Original file line number Diff line number Diff line change 1
1
COV_FOLDER = ./coverage
2
2
ID = defaultid
3
3
RTE = defaultrte
4
- APP_IMAGE = riv2:latest
5
- TEST_BE_SERVER = https ://app:5000 /api
4
+ APP_IMAGE = redisinsight:amd64
5
+ TEST_BE_SERVER = http ://app:5540 /api
6
6
RI_NOTIFICATION_UPDATE_URL = https://s3.amazonaws.com/redisinsight.test/public/tests/notifications.json
7
7
CERTS_FOLDER = /root/.redisinsight-v2.0
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ services:
14
14
dockerfile : ./test/test-runs/test.Dockerfile
15
15
tty : true
16
16
volumes :
17
- - ${COV_FOLDER}:/usr/src/app/coverage
18
- - ${COV_FOLDER}:/root/.redisinsight-v2.0
17
+ - shared-data:/usr/src/app/coverage
18
+ - shared-data:/root/.redisinsight-v2.0
19
+ - shared-data:/data
19
20
depends_on :
20
21
- redis
21
22
- app
@@ -34,7 +35,8 @@ services:
34
35
depends_on :
35
36
- redis
36
37
volumes :
37
- - ${COV_FOLDER}:/root/.redisinsight-v2.0
38
+ - shared-data:/root/.redisinsight-v2.0
39
+ - shared-data:/data
38
40
environment :
39
41
RI_REDIS_CLIENTS_FORCE_STRATEGY : ${RI_REDIS_CLIENTS_FORCE_STRATEGY}
40
42
CERTS_FOLDER : " /root/.redisinsight-v2.0"
@@ -49,3 +51,10 @@ networks:
49
51
default :
50
52
name : ${ID}
51
53
54
+ volumes :
55
+ shared-data :
56
+ driver : local
57
+ driver_opts :
58
+ type : none
59
+ device : ${COV_FOLDER}
60
+ o : bind
You can’t perform that action at this time.
0 commit comments