Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 383de2e

Browse files
authored
Merge pull request #52 from jdeathe/centos-7-redis40u-develop
Release changes for 4.0.0
2 parents a8c4a57 + 261ec92 commit 383de2e

File tree

6 files changed

+21
-56
lines changed

6 files changed

+21
-56
lines changed

CHANGELOG.md

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,11 @@
11
# Change Log
22

3-
## centos-7
3+
## centos-7-redis40u
44

5-
Summary of release changes for Version 2.
5+
Summary of release changes for Version 4.
66

7-
CentOS-7 7.5.1804 x86_64 - Redis 4.0.
7+
CentOS-7 7.5.1804 x86_64 - IUS Redis 4.0.
88

9-
### 2.1.1 - 2019-03-21
10-
11-
- **Notice: This will be the last Version 2 release. The Version 3 release will be based on EPEL `redis` packages (i.e Redis 3.2). Version 4 will be based on IUS `redis40u` packages (i.e Redis 4.0).**
12-
- Updates source image to [2.5.1](https://github.com/jdeathe/centos-ssh/releases/tag/2.5.1).
13-
- Updates Dockerfile with combined ADD to reduce layer count in final image.
14-
- Fixes binary paths in systemd unit files for compatibility with both EL and Ubuntu hosts.
15-
- Adds improvement to pull logic in systemd unit install template.
16-
- Adds `SSH_AUTOSTART_SUPERVISOR_STDOUT` with a value "false", disabling startup of `supervisor_stdout`.
17-
- Adds improved `healtchcheck` script.
18-
- Adds `docker-compose.yml` to `.dockerignore`.
19-
- Disables disk persistence by default; primary use-case being an LRU cache.
20-
21-
### 2.1.0 - 2019-02-17
22-
23-
- Updates source image to [2.5.0](https://github.com/jdeathe/centos-ssh/releases/tag/2.5.0).
24-
- Updates and restructures Dockerfile.
25-
- Updates default HEALTHCHECK interval to 1 second from 0.5.
26-
- Updates container naming conventions and readability of `Makefile`.
27-
- Fixes issue with unexpected published port in run templates when `DOCKER_PORT_MAP_TCP_6379` or `DOCKER_PORT_MAP_UDP_6379` is set to an empty string or 0.
28-
- Adds placeholder replacement of `RELEASE_VERSION` docker argument to systemd service unit template.
29-
- Adds consideration for event lag into test cases for unhealthy health_status events.
30-
- Adds port incrementation to Makefile's run template for container names with an instance suffix.
31-
- Adds docker-compose configuration example.
32-
- Adds improved logging output.
33-
- Adds improved bootstrap / wrapper scripts.
34-
- Removes use of `/etc/services-config` paths.
35-
- Removes X-Fleet section from etcd register template unit-file.
36-
- Removes the unused group element from the default container name.
37-
- Removes the node element from the default container name.
38-
- Removes unused environment variables from Makefile and scmi configuration.
39-
- Removes container log file `/var/log/redis-server-bootstrap` and `/var/log/redis/redis.log`.
40-
41-
### 2.0.1 - 2018-11-19
42-
43-
- Updates source image to [2.4.1](https://github.com/jdeathe/centos-ssh/releases/tag/2.4.1).
44-
45-
### 2.0.0 - 2018-11-03
9+
### 4.0.0 - 2019-03-22
4610

4711
- Initial release.

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM jdeathe/centos-ssh:2.5.1
22

3-
ARG RELEASE_VERSION="2.1.1"
3+
ARG RELEASE_VERSION="4.0.0"
44

55
# ------------------------------------------------------------------------------
66
# Base install of required packages
77
# ------------------------------------------------------------------------------
88
RUN yum -y install \
99
--setopt=tsflags=nodocs \
1010
--disableplugin=fastestmirror \
11-
redis40u-4.0.11-1.ius.centos7 \
11+
redis40u-4.0.13-1.ius.centos7 \
1212
&& yum versionlock add \
1313
redis40u* \
1414
&& yum clean all
@@ -90,7 +90,7 @@ jdeathe/centos-ssh-redis:${RELEASE_VERSION} \
9090
org.deathe.license="MIT" \
9191
org.deathe.vendor="jdeathe" \
9292
org.deathe.url="https://github.com/jdeathe/centos-ssh-redis" \
93-
org.deathe.description="CentOS-7 7.5.1804 x86_64 - Redis 4.0."
93+
org.deathe.description="CentOS-7 7.5.1804 x86_64 - IUS Redis 4.0."
9494

9595
HEALTHCHECK \
9696
--interval=1s \

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 James Deathe (jdeathe)
1+
Copyright (c) 2019 James Deathe (jdeathe)
22
https://github.com/jdeathe/centos-ssh-redis
33

44
Permission is hereby granted, free of charge, to any person obtaining

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@ centos-ssh-redis
33

44
Docker Image including:
55

6-
- CentOS-6 6.10 x86_64 and Redis 3.2.
7-
- CentOS-7 7.5.1804 x86_64 and Redis 4.0.
6+
- CentOS-6 6.10 x86_64 and EPEL Redis 3.2.
7+
- CentOS-7 7.5.1804 x86_64 and EPEL Redis 3.2.
8+
- CentOS-7 7.5.1804 x86_64 and IUS Redis 4.0.
89

910
## Overview & links
1011

11-
The latest CentOS-6 / CentOS-7 based releases can be pulled from the `centos-6` / `centos-7` Docker tags respectively. For production use it is recommended to select a specific release tag - the convention is `centos-6-1.1.1` OR `1.1.1` for the [1.1.1](https://github.com/jdeathe/centos-ssh-redis/tree/1.1.1) release tag and `centos-7-2.1.1` OR `2.1.1` for the [2.1.1](https://github.com/jdeathe/centos-ssh-redis/tree/2.1.1) release tag.
12-
1312
### Tags and respective `Dockerfile` links
1413

15-
- `centos-7`,`centos-7-2.1.1`,`2.1.1` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh-redis/blob/centos-7/Dockerfile)
14+
- `centos-7-redis40u`,`centos-7-redis40u-4.0.0`,`4.0.0` [(centos-7-redis40u/Dockerfile)](https://github.com/jdeathe/centos-ssh-redis/blob/centos-7-redis40u/Dockerfile)
15+
- `centos-7`,`centos-7-3.0.0`,`3.0.0` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh-redis/blob/centos-7/Dockerfile)
1616
- `centos-6`,`centos-6-1.1.1`,`1.1.1` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-redis/blob/centos-6/Dockerfile)
1717

1818
Included in the build are the [SCL](https://www.softwarecollections.org/), [EPEL](http://fedoraproject.org/wiki/EPEL) and [IUS](https://ius.io) repositories. Installed packages include [OpenSSH](http://www.openssh.com/portable.html) secure shell, [vim-minimal](http://www.vim.org/), are installed along with python-setuptools, [supervisor](http://supervisord.org/) and [supervisor-stdout](https://github.com/coderanger/supervisor-stdout).
1919

20-
Supervisor is used to start the redis-server (and optionally the sshd) daemon when a docker container based on this image is run. To enable simple viewing of stdout for the service's subprocess, supervisor-stdout is included. This allows you to see output from the supervisord controlled subprocesses with `docker logs {docker-container-name}`.
20+
Supervisor is used to start the redis-server (and optionally the sshd) daemon when a docker container based on this image is run.
2121

2222
If enabling and configuring SSH access, it is by public key authentication and, by default, the [Vagrant](http://www.vagrantup.com/) [insecure private key](https://github.com/mitchellh/vagrant/blob/master/keys/vagrant) is required.
2323

24+
2425
### SSH Alternatives
2526

2627
SSH is not required in order to access a terminal for the running container. The simplest method is to use the docker exec command to run bash (or sh) as follows:
@@ -40,7 +41,7 @@ $ docker run -d \
4041
--name redis.1 \
4142
-p 6379:6379/tcp \
4243
--sysctl "net.core.somaxconn=1024" \
43-
jdeathe/centos-ssh-redis:2.1.1
44+
jdeathe/centos-ssh-redis:4.0.0
4445
```
4546

4647
Now you can verify it is initialised and running successfully by inspecting the container's logs.
@@ -74,7 +75,7 @@ $ docker run \
7475
--env "REDIS_MAXMEMORY_SAMPLES=10" \
7576
--env "REDIS_OPTIONS=--loglevel verbose" \
7677
--env "REDIS_TCP_BACKLOG=2048" \
77-
jdeathe/centos-ssh-redis:2.1.1
78+
jdeathe/centos-ssh-redis:4.0.0
7879
```
7980

8081
#### Environment Variables

environment.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ DOCKER_IMAGE_NAME := centos-ssh-redis
66
SHPEC_ROOT := test/shpec
77

88
# Tag validation patterns
9-
DOCKER_IMAGE_TAG_PATTERN := ^(latest|centos-[6-7]|((1|2|centos-(6-1|7-2))\.[0-9]+\.[0-9]+))$
10-
DOCKER_IMAGE_RELEASE_TAG_PATTERN := ^(1|2|centos-(6-1|7-2))\.[0-9]+\.[0-9]+$
9+
DOCKER_IMAGE_TAG_PATTERN := ^(latest|centos-[6-7]|centos-7-redis40u|((1|3|4|centos-(6-1|7-3|7-redis40u-4))\.[0-9]+\.[0-9]+))$
10+
DOCKER_IMAGE_RELEASE_TAG_PATTERN := ^(1|3|4|centos-(6-1|7-3|7-redis40u-4))\.[0-9]+\.[0-9]+$
1111

1212
# ------------------------------------------------------------------------------
1313
# Variables

src/opt/scmi/environment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ readonly DOCKER_USER=jdeathe
55
readonly DOCKER_IMAGE_NAME=centos-ssh-redis
66

77
# Tag validation patterns
8-
readonly DOCKER_IMAGE_TAG_PATTERN='^(latest|centos-[6-7]|((1|2|centos-(6-1|7-2))\.[0-9]+\.[0-9]+))$'
9-
readonly DOCKER_IMAGE_RELEASE_TAG_PATTERN='^(1|2|centos-(6-1|7-2))\.[0-9]+\.[0-9]+$'
8+
readonly DOCKER_IMAGE_TAG_PATTERN='^(latest|centos-[6-7]|centos-7-redis40u|((1|3|4|centos-(6-1|7-3|7-redis40u-4))\.[0-9]+\.[0-9]+))$'
9+
readonly DOCKER_IMAGE_RELEASE_TAG_PATTERN='^(1|3|4|centos-(6-1|7-3|7-redis40u-4))\.[0-9]+\.[0-9]+$'
1010

1111
# ------------------------------------------------------------------------------
1212
# Variables

0 commit comments

Comments
 (0)