-
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.
Added ubuntu-redis image, ubuntu version can be designated, and will install the latest redis server.
- Loading branch information
Showing
3 changed files
with
52 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,24 @@ | ||
# ------------------------------------------------- | ||
# Base image for Ubuntu with redis service | ||
# | ||
# Author: Kover CHENG ([email protected]) | ||
# Updated: 12 Sept 2023 | ||
# ------------------------------------------------- | ||
|
||
ARG UBUNTU_VERSION=latest | ||
FROM ubuntu:${UBUNTU_VERSION} | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" | ||
|
||
RUN apt update && \ | ||
apt install --no-install-recommends -y \ | ||
software-properties-common \ | ||
gpg-agent \ | ||
ca-certificates | ||
|
||
RUN add-apt-repository ppa:redislabs/redis | ||
|
||
RUN apt update && \ | ||
apt install --no-install-recommends -y redis && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
redis-server /etc/redis/redis.conf |