blob: 082b272efd949c825173b9919cc05d7d929bed19 [file] [log] [blame]
Lusheng Ji6d381a52018-03-22 14:27:41 -04001# ================================================================================
2# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
3# ================================================================================
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
18RUN apt-get -y update \
19 && apt-get -y upgrade \
Lusheng Ji649d2422018-03-25 00:21:12 -040020 && apt-get -y --no-install-recommends install ruby wget jq \
Lusheng Ji6d381a52018-03-22 14:27:41 -040021 && gem install redis -v 3.3.5 \
22 && apt-get -y autoremove \
23 && apt-get -y clean
24RUN wget -O /usr/local/bin/redis-trib http://download.redis.io/redis-stable/src/redis-trib.rb
25RUN sed -i -e 's/yes_or_die \"/#yes_or_die \"/g' /usr/local/bin/redis-trib
26RUN chmod 755 /usr/local/bin/redis-trib
Lusheng Ji649d2422018-03-25 00:21:12 -040027COPY redis-server-config.sh /usr/local/bin/redis-server-config.sh
28RUN chmod 755 /usr/local/bin/redis-server-config.sh
29#CMD redis-server
30CMD redis-server-config.sh