blob: 41dbce33db1ac3b95487313b8fb770de36201e00 [file] [log] [blame]
Lusheng Ji6d381a52018-03-22 14:27:41 -04001# ================================================================================
Vijay Venkatesh Kumar5d9b8412019-03-29 06:42:10 +00002# Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved.
Lusheng Ji6d381a52018-03-22 14:27:41 -04003# ================================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15# ============LICENSE_END=========================================================
16FROM redis:4.0.8
17ENV DEBIAN_FRONTEND noninteractive
Vijay Venkatesh Kumar5d9b8412019-03-29 06:42:10 +000018RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
19RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
20RUN apt-get -y -o Acquire::Check-Valid-Until=false update \
Lusheng Ji6d381a52018-03-22 14:27:41 -040021 && apt-get -y upgrade \
Lusheng Ji649d2422018-03-25 00:21:12 -040022 && apt-get -y --no-install-recommends install ruby wget jq \
Lusheng Ji6d381a52018-03-22 14:27:41 -040023 && gem install redis -v 3.3.5 \
24 && apt-get -y autoremove \
25 && apt-get -y clean
26RUN wget -O /usr/local/bin/redis-trib http://download.redis.io/redis-stable/src/redis-trib.rb
27RUN sed -i -e 's/yes_or_die \"/#yes_or_die \"/g' /usr/local/bin/redis-trib
28RUN chmod 755 /usr/local/bin/redis-trib
Lusheng Ji649d2422018-03-25 00:21:12 -040029COPY redis-server-config.sh /usr/local/bin/redis-server-config.sh
30RUN chmod 755 /usr/local/bin/redis-server-config.sh
31#CMD redis-server
32CMD redis-server-config.sh