Lusheng Ji | 6d381a5 | 2018-03-22 14:27:41 -0400 | [diff] [blame] | 1 | # ================================================================================ |
Vijay Venkatesh Kumar | 5d9b841 | 2019-03-29 06:42:10 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved. |
Lusheng Ji | 6d381a5 | 2018-03-22 14:27:41 -0400 | [diff] [blame] | 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========================================================= |
| 16 | FROM redis:4.0.8 |
| 17 | ENV DEBIAN_FRONTEND noninteractive |
Vijay Venkatesh Kumar | 5d9b841 | 2019-03-29 06:42:10 +0000 | [diff] [blame] | 18 | RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list |
| 19 | RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list |
| 20 | RUN apt-get -y -o Acquire::Check-Valid-Until=false update \ |
Lusheng Ji | 6d381a5 | 2018-03-22 14:27:41 -0400 | [diff] [blame] | 21 | && apt-get -y upgrade \ |
Lusheng Ji | 649d242 | 2018-03-25 00:21:12 -0400 | [diff] [blame] | 22 | && apt-get -y --no-install-recommends install ruby wget jq \ |
Lusheng Ji | 6d381a5 | 2018-03-22 14:27:41 -0400 | [diff] [blame] | 23 | && gem install redis -v 3.3.5 \ |
| 24 | && apt-get -y autoremove \ |
| 25 | && apt-get -y clean |
| 26 | RUN wget -O /usr/local/bin/redis-trib http://download.redis.io/redis-stable/src/redis-trib.rb |
| 27 | RUN sed -i -e 's/yes_or_die \"/#yes_or_die \"/g' /usr/local/bin/redis-trib |
| 28 | RUN chmod 755 /usr/local/bin/redis-trib |
Lusheng Ji | 649d242 | 2018-03-25 00:21:12 -0400 | [diff] [blame] | 29 | COPY redis-server-config.sh /usr/local/bin/redis-server-config.sh |
| 30 | RUN chmod 755 /usr/local/bin/redis-server-config.sh |
| 31 | #CMD redis-server |
| 32 | CMD redis-server-config.sh |