Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dockerfile and documentation (#51)
* Change CMakeLists cmake version minimum from 3.2 to 3.0, for dockerize the setup. * Add Dockerfile initial version to accelerate setup. Need more refine such as password and port options, etc.al * Update pull request to include documentation
- Loading branch information
Showing
4 changed files
with
44 additions
and
3 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,32 @@ | ||
FROM redis | ||
|
||
ENV ROARING_REDIS_GIT_URL https://github.com/aviggiano/redis-roaring.git | ||
RUN set -ex; \ | ||
\ | ||
BUILD_DEPS=' \ | ||
ca-certificates \ | ||
cmake \ | ||
gcc \ | ||
git \ | ||
g++ \ | ||
make \ | ||
'; \ | ||
apt-get update; \ | ||
apt-get install -y $BUILD_DEPS --no-install-recommends; \ | ||
rm -rf /var/lib/apt/lists/*; \ | ||
git clone "$ROARING_REDIS_GIT_URL"; \ | ||
cd redis-roaring; \ | ||
bash configure.sh; \ | ||
mkdir -p build; \ | ||
cd build; \ | ||
cmake ..; \ | ||
make -j; \ | ||
cp libredis-roaring.so /usr/local/lib/; \ | ||
\ | ||
apt-get purge -y --auto-remove $BUILD_DEPS | ||
ADD http://download.redis.io/redis-stable/redis.conf /usr/local/etc/redis/redis.conf | ||
RUN sed -i '1i loadmodule /usr/local/lib/libredis-roaring.so' /usr/local/etc/redis/redis.conf; \ | ||
chmod 644 /usr/local/etc/redis/redis.conf; \ | ||
sed -i 's/^bind 127.0.0.1/#bind 127.0.0.1/g' /usr/local/etc/redis/redis.conf; \ | ||
sed -i 's/^protected-mode yes/protected-mode no/g' /usr/local/etc/redis/redis.conf | ||
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ] |
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