forked from spring-projects/spring-data-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
72 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG BASE | ||
FROM ${BASE} | ||
# Any ARG statements before FROM are cleared. | ||
ARG REDIS | ||
|
||
# Copy Spring Data Redis's Makefile into the container | ||
COPY ./Makefile / | ||
|
||
RUN set -eux; \ | ||
# sed -i -e 's/http/https/g' /etc/apt/sources.list ; \ | ||
apt-get update ; \ | ||
apt-get install -y build-essential ; \ | ||
make work/redis/bin/redis-cli work/redis/bin/redis-server REDIS_VERSION=${REDIS}; \ | ||
chmod -R o+rw work; \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/*; |