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

Commit 9cf3f38

Browse files
authored
Merge pull request #85 from jdeathe/centos-7-develop
Release changes for 2.2.0
2 parents 95af1e9 + 496e1ac commit 9cf3f38

19 files changed

+1614
-461
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MEMCACHED_CACHESIZE=64
2+
MEMCACHED_MAXCONN=1024
3+
MEMCACHED_OPTIONS=-U 0

.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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ Summary of release changes for Version 2.
66

77
CentOS-7 7.5.1804 x86_64 - Memcached 1.4.
88

9+
### 2.2.0 - 2019-02-12
10+
11+
- Updates source image to [2.5.0](https://github.com/jdeathe/centos-ssh/releases/tag/2.5.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_11211` is set to an empty string or 0.
16+
- Adds placeholder replacement of `RELEASE_VERSION` docker argument to systemd service unit template.
17+
- Adds error messages to healthcheck script and includes supervisord check.
18+
- Adds consideration for event lag into test cases for unhealthy health_status events.
19+
- Adds port incrementation to Makefile's run template for container names with an instance suffix.
20+
- Adds improved memcached-wrapper script including optional Details output.
21+
- Adds validation on `MEMCACHED_CACHESIZE` and `MEMCACHED_MAXCONN` - fails back to default if not a positive non-zero integer.
22+
- Adds docker-compose configuration example.
23+
- Adds improved logging output.
24+
- Removes use of `/etc/services-config` paths.
25+
- Removes X-Fleet section from etcd register template unit-file.
26+
- Removes the unused group element from the default container name.
27+
- Removes the node element from the default container name.
28+
- Removes unused environment variables from Makefile and scmi configuration.
29+
- Removes container log file `/var/log/memcached.log`.
30+
931
### 2.1.1 - 2018-11-16
1032

1133
- Fixes typo in test; using `--format` instead of `--filter`.

Dockerfile

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# =============================================================================
2-
# jdeathe/centos-ssh-memcached
3-
#
4-
# CentOS-7, Memcached 1.4.
5-
# =============================================================================
6-
FROM jdeathe/centos-ssh:2.4.1
1+
FROM jdeathe/centos-ssh:2.5.0
72

3+
ARG RELEASE_VERSION="2.2.0"
4+
5+
# ------------------------------------------------------------------------------
6+
# Base install of required packages
7+
# ------------------------------------------------------------------------------
88
RUN rpm --rebuilddb \
99
&& yum -y install \
1010
--setopt=tsflags=nodocs \
@@ -17,42 +17,43 @@ RUN rpm --rebuilddb \
1717
&& rm -rf /var/cache/yum/* \
1818
&& yum clean all
1919

20-
# -----------------------------------------------------------------------------
20+
# ------------------------------------------------------------------------------
2121
# Copy files into place
22-
# -----------------------------------------------------------------------------
23-
ADD src/usr/bin \
24-
/usr/bin/
25-
ADD src/usr/sbin \
26-
/usr/sbin/
22+
# ------------------------------------------------------------------------------
23+
ADD src/etc \
24+
/etc/
2725
ADD src/opt/scmi \
2826
/opt/scmi/
29-
ADD src/etc/services-config/supervisor/supervisord.d \
30-
/etc/services-config/supervisor/supervisord.d/
31-
ADD src/etc/systemd/system \
32-
/etc/systemd/system/
27+
ADD src/usr \
28+
/usr/
3329

34-
RUN ln -sf \
35-
/etc/services-config/supervisor/supervisord.d/memcached-wrapper.conf \
30+
# ------------------------------------------------------------------------------
31+
# Provisioning
32+
# - Set permissions
33+
# ------------------------------------------------------------------------------
34+
RUN sed -i \
35+
-e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
36+
/etc/systemd/system/centos-ssh-memcached@.service \
37+
&& chmod 644 \
3638
/etc/supervisord.d/memcached-wrapper.conf \
3739
&& chmod 700 \
3840
/usr/{bin/healthcheck,sbin/memcached-wrapper}
3941

4042
EXPOSE 11211
4143

42-
# -----------------------------------------------------------------------------
44+
# ------------------------------------------------------------------------------
4345
# Set default environment variables
44-
# -----------------------------------------------------------------------------
45-
ENV MEMCACHED_AUTOSTART_MEMCACHED_WRAPPER=true \
46+
# ------------------------------------------------------------------------------
47+
ENV MEMCACHED_AUTOSTART_MEMCACHED_WRAPPER="true" \
4648
MEMCACHED_CACHESIZE="64" \
4749
MEMCACHED_MAXCONN="1024" \
4850
MEMCACHED_OPTIONS="-U 0" \
49-
SSH_AUTOSTART_SSHD=false \
50-
SSH_AUTOSTART_SSHD_BOOTSTRAP=false
51+
SSH_AUTOSTART_SSHD="false" \
52+
SSH_AUTOSTART_SSHD_BOOTSTRAP="false"
5153

52-
# -----------------------------------------------------------------------------
54+
# ------------------------------------------------------------------------------
5355
# Set image metadata
54-
# -----------------------------------------------------------------------------
55-
ARG RELEASE_VERSION="2.1.1"
56+
# ------------------------------------------------------------------------------
5657
LABEL \
5758
maintainer="James Deathe <james.deathe@gmail.com>" \
5859
install="docker run \
@@ -82,7 +83,7 @@ jdeathe/centos-ssh-memcached:${RELEASE_VERSION} \
8283
org.deathe.description="CentOS-7 7.5.1804 x86_64 - Memcached 1.4."
8384

8485
HEALTHCHECK \
85-
--interval=0.5s \
86+
--interval=1s \
8687
--timeout=1s \
8788
--retries=4 \
8889
CMD ["/usr/bin/healthcheck"]

0 commit comments

Comments
 (0)