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

Commit 05743e3

Browse files
authored
Merge pull request #30 from jdeathe/centos-6-develop
Release changes for 1.1.0
2 parents c2c80a6 + d896601 commit 05743e3

21 files changed

+1771
-556
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.example
13
.git
24
.gitignore
35
dist

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
REDIS_MAXMEMORY=64mb
2+
REDIS_MAXMEMORY_POLICY=allkeys-lru
3+
REDIS_MAXMEMORY_SAMPLES=5
4+
REDIS_OPTIONS=
5+
REDIS_TCP_BACKLOG=1024

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.env
12
dist

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ Summary of release changes for Version 1.
66

77
CentOS-6 6.10 x86_64 - Redis 3.2.
88

9+
### 1.1.0 - 2019-02-17
10+
11+
- Updates source image to [1.10.0](https://github.com/jdeathe/centos-ssh/releases/tag/1.10.0).
12+
- Updates and restructures Dockerfile.
13+
- Updates default HEALTHCHECK interval to 1 second from 0.5.
14+
- Updates container naming conventions and readability of `Makefile`.
15+
- 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.
16+
- Adds placeholder replacement of `RELEASE_VERSION` docker argument to systemd service unit template.
17+
- Adds consideration for event lag into test cases for unhealthy health_status events.
18+
- Adds port incrementation to Makefile's run template for container names with an instance suffix.
19+
- Adds docker-compose configuration example.
20+
- Adds improved logging output.
21+
- Adds improved bootstrap / wrapper scripts.
22+
- Removes use of `/etc/services-config` paths.
23+
- Removes X-Fleet section from etcd register template unit-file.
24+
- Removes the unused group element from the default container name.
25+
- Removes the node element from the default container name.
26+
- Removes unused environment variables from Makefile and scmi configuration.
27+
- Removes container log file `/var/log/redis-server-bootstrap` and `/var/log/redis/redis.log`.
28+
929
### 1.0.1 - 2018-11-19
1030

1131
- Updates source image to [1.9.1](https://github.com/jdeathe/centos-ssh/releases/tag/1.9.1).

Dockerfile

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# =============================================================================
2-
# jdeathe/centos-ssh-redis
3-
#
4-
# CentOS-6, Redis 3.2.
5-
# =============================================================================
6-
FROM jdeathe/centos-ssh:1.9.1
1+
FROM jdeathe/centos-ssh:1.10.0
2+
3+
ARG RELEASE_VERSION="1.1.0"
74

85
RUN yum -y install \
96
--setopt=tsflags=nodocs \
@@ -13,46 +10,47 @@ RUN yum -y install \
1310
redis32u* \
1411
&& yum clean all
1512

16-
# -----------------------------------------------------------------------------
13+
# ------------------------------------------------------------------------------
1714
# Copy files into place
18-
# -----------------------------------------------------------------------------
19-
ADD src/usr/bin \
20-
/usr/bin/
21-
ADD src/usr/sbin \
22-
/usr/sbin/
15+
# ------------------------------------------------------------------------------
16+
ADD src/etc \
17+
/etc/
2318
ADD src/opt/scmi \
2419
/opt/scmi/
25-
ADD src/etc/services-config/supervisor/supervisord.d \
26-
/etc/services-config/supervisor/supervisord.d/
27-
ADD src/etc/systemd/system \
28-
/etc/systemd/system/
20+
ADD src/usr \
21+
/usr/
2922

30-
RUN ln -sf \
31-
/etc/services-config/supervisor/supervisord.d/redis-server-bootstrap.conf \
32-
/etc/supervisord.d/redis-server-bootstrap.conf \
33-
&& ln -sf \
34-
/etc/services-config/supervisor/supervisord.d/redis-server-wrapper.conf \
35-
/etc/supervisord.d/redis-server-wrapper.conf \
36-
&& chmod 700 \
37-
/usr/{bin/healthcheck,sbin/redis-server-{bootstrap,wrapper}} \
38-
&& chmod 750 \
39-
/usr/sbin/redis-server-wrapper \
40-
&& chgrp redis \
41-
/usr/sbin/redis-server-wrapper \
42-
&& sed -i -r \
23+
# ------------------------------------------------------------------------------
24+
# Provisioning
25+
# - Insert placeholders into redis configuration file
26+
# - Replace placeholders with values in systemd service unit template
27+
# - Set permissions
28+
# ------------------------------------------------------------------------------
29+
RUN sed -i -r \
4330
-e "s~^(logfile ).+$~\1\"\"~" \
4431
-e "s~^(bind ).+$~\10.0.0.0~" \
4532
-e "s~^(# *)?(maxmemory ).+$~\2{{REDIS_MAXMEMORY}}~" \
4633
-e "s~^(# *)?(maxmemory-policy ).+$~\2{{REDIS_MAXMEMORY_POLICY}}~" \
4734
-e "s~^(# *)?(maxmemory-samples ).+$~\2{{REDIS_MAXMEMORY_SAMPLES}}~" \
4835
-e "s~^(tcp-backlog ).*$~\1{{REDIS_TCP_BACKLOG}}~" \
49-
/etc/redis.conf
36+
/etc/redis.conf \
37+
&& sed -i \
38+
-e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
39+
/etc/systemd/system/centos-ssh-redis@.service \
40+
&& chmod 644 \
41+
/etc/supervisord.d/redis-server-{bootstrap,wrapper}.conf \
42+
&& chmod 700 \
43+
/usr/{bin/healthcheck,sbin/redis-server-{bootstrap,wrapper}} \
44+
&& chmod 750 \
45+
/usr/sbin/redis-server-wrapper \
46+
&& chgrp redis \
47+
/usr/sbin/redis-server-wrapper
5048

5149
EXPOSE 6379
5250

53-
# -----------------------------------------------------------------------------
51+
# ------------------------------------------------------------------------------
5452
# Set default environment variables
55-
# -----------------------------------------------------------------------------
53+
# ------------------------------------------------------------------------------
5654
ENV REDIS_AUTOSTART_REDIS_BOOTSTRAP="true" \
5755
REDIS_AUTOSTART_REDIS_WRAPPER="true" \
5856
REDIS_MAXMEMORY="64mb" \
@@ -66,7 +64,6 @@ ENV REDIS_AUTOSTART_REDIS_BOOTSTRAP="true" \
6664
# -----------------------------------------------------------------------------
6765
# Set image metadata
6866
# -----------------------------------------------------------------------------
69-
ARG RELEASE_VERSION="1.0.1"
7067
LABEL \
7168
maintainer="James Deathe <james.deathe@gmail.com>" \
7269
install="docker run \
@@ -96,7 +93,7 @@ jdeathe/centos-ssh-redis:${RELEASE_VERSION} \
9693
org.deathe.description="CentOS-6 6.10 x86_64 - Redis 3.2."
9794

9895
HEALTHCHECK \
99-
--interval=0.5s \
96+
--interval=1s \
10097
--timeout=1s \
10198
--retries=4 \
10299
CMD ["/usr/bin/healthcheck"]

0 commit comments

Comments
 (0)