2022-10-17 07:15:53 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
|
|
|
FROM node:18.7.0
|
|
|
|
ENV NODE_ENV=development
|
2022-11-06 13:21:41 +00:00
|
|
|
ENV RUN_IN_DOCKER=1
|
2022-10-17 07:15:53 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2022-11-06 13:21:41 +00:00
|
|
|
# Git
|
|
|
|
RUN apt update -y && apt install -y git
|
2022-10-17 07:15:53 +00:00
|
|
|
|
2022-11-09 17:18:28 +00:00
|
|
|
# The latest version from io-redis contain changes that we need to have
|
|
|
|
# to successfully run the tests
|
|
|
|
RUN git clone https://github.com/luin/ioredis
|
2022-10-17 07:15:53 +00:00
|
|
|
|
|
|
|
WORKDIR /app/ioredis
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
|
2022-11-06 13:21:41 +00:00
|
|
|
# Script to run the tests that curretly pass successfully.
|
|
|
|
# Note that in DF we still don't have support for cluster and we
|
|
|
|
# want to skip tests such as elasticache, also we have some issues that
|
|
|
|
# need to be resolved such as
|
|
|
|
# https://github.com/dragonflydb/dragonfly/issues/457
|
|
|
|
# and https://github.com/dragonflydb/dragonfly/issues/458
|
|
|
|
ADD .run_ioredis_valid_test.sh run_tests.sh
|
|
|
|
|
2022-10-17 07:15:53 +00:00
|
|
|
ENTRYPOINT [ "npm", "run", "env", "--", "TS_NODE_TRANSPILE_ONLY=true", "NODE_ENV=test" ]
|