Skip to content

Commit 3bd6e1c

Browse files
author
Artem
authored
Merge pull request #2921 from RedisInsight/e2e/feature/RI-5036/optimize-docker-image
E2e/feature/ri 5036/optimize docker image
2 parents e5bf76c + 89569fe commit 3bd6e1c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ jobs:
462462
command: |
463463
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/web/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
464464
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
465+
RI_SERVER_TLS_CERT="$RI_SERVER_TLS_CERT" \
466+
RI_SERVER_TLS_KEY="$RI_SERVER_TLS_KEY" \
465467
docker-compose \
466468
-f tests/e2e/rte.docker-compose.yml \
467469
-f tests/e2e/docker.web.docker-compose.yml \
@@ -476,6 +478,8 @@ jobs:
476478
command: |
477479
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/web/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
478480
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
481+
RI_SERVER_TLS_CERT="$RI_SERVER_TLS_CERT" \
482+
RI_SERVER_TLS_KEY="$RI_SERVER_TLS_KEY" \
479483
docker-compose \
480484
-f tests/e2e/rte.docker-compose.yml \
481485
-f tests/e2e/local.web.docker-compose.yml \
@@ -871,8 +875,6 @@ jobs:
871875
fi
872876
873877
docker build --build-arg NODE_ENV=<< parameters.env >> \
874-
--build-arg RI_SERVER_TLS_CERT="$RI_SERVER_TLS_CERT" \
875-
--build-arg RI_SERVER_TLS_KEY="$RI_SERVER_TLS_KEY" \
876878
--build-arg RI_SEGMENT_WRITE_KEY="$TELEMETRY" \
877879
-t riv2:latest .
878880

tests/e2e/docker.web.docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ services:
4141
image: riv2:latest
4242
env_file:
4343
- ./.env
44+
environment:
45+
RI_SERVER_TLS_CERT: $RI_SERVER_TLS_CERT
46+
RI_SERVER_TLS_KEY: $RI_SERVER_TLS_KEY
4447
volumes:
4548
- rihomedir:/data
4649
- tmp:/tmp

tests/e2e/local.web.docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ services:
4545
build:
4646
context: ./../../
4747
dockerfile: Dockerfile
48+
environment:
49+
RI_SERVER_TLS_CERT: $RI_SERVER_TLS_CERT
50+
RI_SERVER_TLS_KEY: $RI_SERVER_TLS_KEY
4851
volumes:
4952
- .redisinsight-app:/root/.redisinsight-app
5053
- ./test-data/certs:/root/certs

0 commit comments

Comments
 (0)