Skip to content

Commit 76364b2

Browse files
committed
upgrade 3.2.10
1 parent 0941344 commit 76364b2

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
sudo: required
12
language: bash
23
services: docker
4+
dist: trusty
35

46
branches:
57
only:
68
- master
79

8-
install:
10+
before_install:
911
- docker build -t eswork/redis .
1012

1113
script:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM alpine:3.5
1+
FROM alpine:3.6
22
LABEL maintainer "[email protected]"
33

4-
ENV REDIS_VERSION=3.2.8 \
4+
ENV REDIS_VERSION=3.2.10 \
55
REDIS_USER=redis \
66
REDIS_DATA_DIR=/var/lib/redis \
77
REDIS_LOG_DIR=/var/log/redis \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
## Supported tags and respective `Dockerfile` links
55

6-
- [`latest` , `3.2.8` (3.2.8/Dockerfile)](https://github.com/EsWork/docker-redis/blob/master/Dockerfile)
6+
- [`latest` , `3.2.10` (3.2.10/Dockerfile)](https://github.com/EsWork/docker-redis/blob/master/Dockerfile)
77

88
Introduction
99
---
1010

11-
基于`Alpine linux`镜像构建`Redis-3.2.8`
11+
基于`Alpine linux`镜像构建`Redis-3.2.10`
1212

1313
Getting started
1414

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.8
1+
3.2.10

setup/install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ wget -cq ${REDIS_DOWNLOAD_URL} -O ${REDIS_SETUP_DIR}/src/redis-${REDIS_VERSION}.
1616
tar -zxf ${REDIS_SETUP_DIR}/src/redis-${REDIS_VERSION}.tar.gz
1717
cd ${REDIS_SETUP_DIR}/src/redis-${REDIS_VERSION}
1818

19-
make && make install
19+
grep -q '^#define CONFIG_DEFAULT_PROTECTED_MODE 1$' ${REDIS_SETUP_DIR}/src/redis-${REDIS_VERSION}/src/server.h
20+
sed -ri 's!^(#define CONFIG_DEFAULT_PROTECTED_MODE) 1$!\1 0!' ${REDIS_SETUP_DIR}/src/redis-${REDIS_VERSION}/src/server.h
21+
grep -q '^#define CONFIG_DEFAULT_PROTECTED_MODE 0$' ${REDIS_SETUP_DIR}/src/redis-${REDIS_VERSION}/src/server.h
22+
23+
make -j $(getconf _NPROCESSORS_ONLN) && make install
2024

2125
mkdir -p /etc/redis/
2226
cp redis.conf /etc/redis/redis.conf
@@ -27,6 +31,7 @@ sed 's/^# unixsocket \/tmp\/redis.sock/unixsocket \/run\/redis\/redis.sock/' -i
2731
sed 's/^# unixsocketperm 700/unixsocketperm 777/' -i /etc/redis/redis.conf
2832
sed '/^logfile/d' -i /etc/redis/redis.conf
2933

34+
3035
chown -R ${REDIS_USER}:${REDIS_USER} /etc/redis/
3136

3237
mkdir -p /run/redis

0 commit comments

Comments
 (0)