-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from RedisTimeSeries/updated-api
adjust the adapter to the new redis-timeseries api
- Loading branch information
Showing
5 changed files
with
43 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM circleci/golang:1.11 | ||
RUN echo /go && git clone -b 5.0 --depth 1 https://github.com/antirez/redis.git | ||
RUN cd redis && sudo make -j install | ||
|
||
RUN echo /go && git clone https://github.com/RedisLabsModules/redis-timeseries.git | ||
RUN cd redis-timeseries && \ | ||
git submodule init && \ | ||
git submodule update && \ | ||
cd src && \ | ||
make -j all | ||
|
||
RUN echo daemonize yes > /tmp/sentinel.conf | ||
RUN echo sentinel monitor mymaster 127.0.0.1 6379 1 >> /tmp/sentinel.conf | ||
|
||
WORKDIR /go/src/github.com/RedisLabs/redis-ts-adapter | ||
RUN mkdir -p /go/src/github.com/RedisLabs/redis-ts-adapter | ||
|
||
# This is not nessecerly the right way to do it, but it makes circleci works because it uses a remote docker host | ||
COPY . /go/src/github.com/RedisLabs/redis-ts-adapter | ||
#ENTRYPOINT /bin/bash | ||
CMD redis-sentinel /tmp/sentinel.conf && \ | ||
redis-server --daemonize yes --loadmodule /go/redis-timeseries/src/redistimeseries.so RETENTION_POLICY 0 MAX_SAMPLE_PER_CHUNK 360 && \ | ||
sleep 1 && redis-cli ping && make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters