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

Commit edb0ea8

Browse files
authored
Merge pull request #123 from jdeathe/centos-7-develop
Release changes for 2.3.1
2 parents 78c5ef1 + a35a167 commit edb0ea8

22 files changed

+168
-124
lines changed

.dockerignore

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
.env
2-
.env.example
3-
.git
4-
.gitignore
5-
dist
6-
test
7-
var
8-
docker-compose.yml
9-
docker-compose-*.yml
10-
LICENSE
11-
README-short.txt
12-
*.md
1+
/.env
2+
/.env.example
3+
/.git
4+
/.gitignore
5+
/dist
6+
/docs
7+
/test
8+
/docker-compose.yml
9+
/LICENSE
10+
/README-short.txt
11+
/*.md
1312
!README.md
1413
**/*.mk
15-
**/Makefile
14+
**/Makefile

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
.env
2-
dist
1+
/.env
2+
/dist

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44

55
Summary of release changes.
66

7+
### 2.3.1 - 2019-10-10
8+
9+
- Deprecate Makefile target `logs-delayed`; replaced with `logsdef`.
10+
- Updates `rsyslog` package to 8.24.0-41.el7_7.
11+
- Updates source image to [2.6.1](https://github.com/jdeathe/centos-ssh/releases/tag/2.6.1).
12+
- Updates `test/health_status` helper script with for consistency.
13+
- Updates Makefile target `logs` to accept `[OPTIONS]` (e.g `make -- logs -ft`).
14+
- Updates `healthcheck` script; state file existence confirms bootstrap completion.
15+
- Updates healthcheck failure messages to remove EOL character that is rendered in status response.
16+
- Updates wrapper script; only emit "waiting on" info message if bootstrap hasn't completed.
17+
- Updates ordering of Tags and respective Dockerfile links in README.md for readability.
18+
- Adds improved test workflow; added `test-setup` target to Makefile.
19+
- Adds Makefile target `logsdef` to handle deferred logs output within a target chain.
20+
- Adds `/docs` directory for supplementary documentation and simplify README.
21+
- Fixes docker-compose example configuration files to work on CentOS-7 hosts.
22+
- Fixes validation failure of 0 second --timeout value in `test/health_status`.
23+
724
### 2.3.0 - 2019-08-20
825

926
- Updates `haproxy18u` packages to 1.8.20-1.

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM jdeathe/centos-ssh:2.6.0
1+
FROM jdeathe/centos-ssh:2.6.1
22

33
ARG HATOP_VERSION="0.7.7"
4-
ARG RELEASE_VERSION="2.3.0"
4+
ARG RELEASE_VERSION="2.3.1"
55

66
# ------------------------------------------------------------------------------
77
# Base install of required packages
@@ -10,7 +10,7 @@ RUN yum -y install \
1010
--setopt=tsflags=nodocs \
1111
--disableplugin=fastestmirror \
1212
haproxy18u-1.8.20-1.el7.ius \
13-
rsyslog-8.24.0-34.el7 \
13+
rsyslog-8.24.0-41.el7_7 \
1414
socat-1.7.3.2-2.el7 \
1515
&& yum versionlock add \
1616
haproxy \

Makefile

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ Targets:
2525
images Show container's image details.
2626
load Loads from the distribution package. Requires
2727
DOCKER_IMAGE_TAG variable.
28-
logs Display log output from the running container.
29-
logs-delayed Display log output from the running container after
30-
backing off for STARTUP_TIME seconds. This can be
31-
necessary when chaining make targets together.
28+
logs [OPTIONS] Display log output from the container.
29+
logsdef Display log output from the container deferred for
30+
STARTUP_TIME seconds. This will work in a chain
31+
unlike the logs target.
32+
logs-delayed [DEPRECATED] Replaced with logsdef.
3233
pause Pause the running container.
3334
pull Pull the release image from the registry. Requires
3435
the DOCKER_IMAGE_TAG variable.
@@ -45,6 +46,7 @@ Targets:
4546
stop Stop the container when in a running state.
4647
terminate Unpause, stop and remove the container.
4748
test Run all test cases.
49+
test-setup Install test dependencies.
4850
top [ps OPTIONS] Display the running processes of the container.
4951
unpause Unpause the container when in a paused state.
5052

@@ -161,6 +163,7 @@ endef
161163
_require-docker-image-tag \
162164
_require-docker-release-tag \
163165
_require-package-path \
166+
_require-root \
164167
_test-prerequisites \
165168
_usage \
166169
all \
@@ -176,6 +179,7 @@ endef
176179
images \
177180
load \
178181
logs \
182+
logsdef \
179183
logs-delayed \
180184
pause \
181185
pull \
@@ -191,6 +195,7 @@ endef
191195
stop \
192196
terminate \
193197
test \
198+
test-setup \
194199
top \
195200
unpause
196201

@@ -365,9 +370,17 @@ _require-package-path:
365370
exit 1; \
366371
fi
367372

373+
_require-root:
374+
@ if [[ $${EUID} -ne 0 ]]; \
375+
then \
376+
>&2 printf -- '%sMust be run as root\n' \
377+
"$(PREFIX_STEP_NEGATIVE)"; \
378+
exit 1; \
379+
fi
380+
368381
_test-prerequisites:
369382
ifeq ($(shpec),)
370-
$(error "Please install shpec.")
383+
$(error "Please install shpec. Try: DOCKER_NAME=$(DOCKER_NAME) make test-setup")
371384
endif
372385

373386
_usage:
@@ -581,14 +594,20 @@ install: | \
581594
logs: \
582595
_prerequisites \
583596
_require-docker-container
584-
@ $(docker) logs $(DOCKER_NAME)
597+
@ $(docker) logs \
598+
$(filter-out $@, $(MAKECMDGOALS)) \
599+
$(DOCKER_NAME)
600+
%:; @:
585601

586-
logs-delayed: \
602+
logsdef: \
587603
_prerequisites \
588604
_require-docker-container
589605
@ sleep $(STARTUP_TIME)
590606
@ $(MAKE) logs
591607

608+
logs-delayed: \
609+
logsdef
610+
592611
load: \
593612
_prerequisites \
594613
_require-docker-release-tag \
@@ -980,6 +999,18 @@ test: \
980999
"Functional test"
9811000
@ SHPEC_ROOT=$(SHPEC_ROOT) $(shpec)
9821001

1002+
test-setup: \
1003+
_require-root
1004+
@ printf -- '%s%s\n' \
1005+
"$(PREFIX_STEP)" \
1006+
"Installing shpec"
1007+
@ bash -c "$$(curl -LSs \
1008+
https://raw.githubusercontent.com/rylnd/shpec/master/install.sh \
1009+
)"
1010+
@ ln -sf \
1011+
/usr/local/bin/shpec \
1012+
/usr/bin/shpec
1013+
9831014
unpause: \
9841015
_prerequisites \
9851016
_require-docker-container \

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Tags and respective `Dockerfile` links
22

3-
- `centos-7`, `2.3.0` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh-haproxy/blob/centos-7/Dockerfile)
4-
- `centos-6`, `1.3.0` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-haproxy/blob/centos-6/Dockerfile)
3+
- [`2.3.1`](https://github.com/jdeathe/centos-ssh-haproxy/releases/tag/2.3.1), `centos-7` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh-haproxy/blob/centos-7/Dockerfile)
4+
- [`1.3.1`](https://github.com/jdeathe/centos-ssh-haproxy/releases/tag/1.3.1), `centos-6` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-haproxy/blob/centos-6/Dockerfile)
55

66
## Overview
77

@@ -29,7 +29,7 @@ $ docker run -d -t \
2929
-p 443:443 \
3030
--add-host httpd_1:172.17.8.101 \
3131
--add-host httpd_2:172.17.8.102 \
32-
jdeathe/centos-ssh-haproxy:2.3.0
32+
jdeathe/centos-ssh-haproxy:2.3.1
3333
```
3434

3535
Verify the named container's process status and health.
@@ -73,7 +73,7 @@ $ docker stop haproxy.1 && \
7373
--env "HAPROXY_HOST_NAMES=www.app.local app.local localhost.localdomain" \
7474
--add-host httpd_1:172.17.8.101 \
7575
--add-host httpd_2:172.17.8.102 \
76-
jdeathe/centos-ssh-haproxy:2.3.0
76+
jdeathe/centos-ssh-haproxy:2.3.1
7777
```
7878

7979
#### Environment variables

docker-compose-h2-proxy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
VARNISH_VARNISHNCSA_FORMAT: "${VARNISH_VARNISHNCSA_FORMAT}"
5959
VARNISH_VARNISHNCSA_OPTIONS: "${VARNISH_VARNISHNCSA_OPTIONS}"
6060
VARNISH_VCL_CONF: "/var/run/secrets/varnish_vcl_terminated_https"
61-
image: "jdeathe/centos-ssh-varnish:2.4.0"
61+
image: "jdeathe/centos-ssh-varnish:2.5.0"
6262
networks:
6363
tier2:
6464
tier3:
@@ -79,7 +79,7 @@ services:
7979
nproc: 65535
8080
volumes:
8181
# Emulate docker swarm secrets
82-
- "./test/fixture/secrets:/var/run/secrets:ro"
82+
- "${PWD:-.}/test/fixture/secrets:/var/run/secrets:ro"
8383
varnish2:
8484
environment:
8585
ENABLE_VARNISHNCSA_WRAPPER: "true"
@@ -93,7 +93,7 @@ services:
9393
VARNISH_VARNISHNCSA_FORMAT: "${VARNISH_VARNISHNCSA_FORMAT}"
9494
VARNISH_VARNISHNCSA_OPTIONS: "${VARNISH_VARNISHNCSA_OPTIONS}"
9595
VARNISH_VCL_CONF: "/var/run/secrets/varnish_vcl_terminated_https"
96-
image: "jdeathe/centos-ssh-varnish:2.4.0"
96+
image: "jdeathe/centos-ssh-varnish:2.4.1"
9797
networks:
9898
tier2:
9999
tier3:
@@ -114,4 +114,4 @@ services:
114114
nproc: 65535
115115
volumes:
116116
# Emulate docker swarm secrets
117-
- "./test/fixture/secrets:/var/run/secrets:ro"
117+
- "${PWD:-.}/test/fixture/secrets:/var/run/secrets:ro"

docker-compose-http-proxy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ services:
5757
VARNISH_TTL: "${VARNISH_TTL}"
5858
VARNISH_VARNISHNCSA_FORMAT: "${VARNISH_VARNISHNCSA_FORMAT}"
5959
VARNISH_VARNISHNCSA_OPTIONS: "${VARNISH_VARNISHNCSA_OPTIONS}"
60-
VARNISH_VCL_CONF: "/run/secrets/varnish_vcl_default"
61-
image: "jdeathe/centos-ssh-varnish:2.4.0"
60+
VARNISH_VCL_CONF: "/var/run/secrets/varnish_vcl_default"
61+
image: "jdeathe/centos-ssh-varnish:2.5.0"
6262
networks:
6363
tier2:
6464
tier3:
@@ -79,7 +79,7 @@ services:
7979
nproc: 65535
8080
volumes:
8181
# Emulate docker swarm secrets
82-
- "${PWD}/test/fixture/secrets:/run/secrets:ro"
82+
- "${PWD:-.}/test/fixture/secrets:/var/run/secrets:ro"
8383
varnish2:
8484
environment:
8585
ENABLE_VARNISHNCSA_WRAPPER: "true"
@@ -92,8 +92,8 @@ services:
9292
VARNISH_TTL: "${VARNISH_TTL}"
9393
VARNISH_VARNISHNCSA_FORMAT: "${VARNISH_VARNISHNCSA_FORMAT}"
9494
VARNISH_VARNISHNCSA_OPTIONS: "${VARNISH_VARNISHNCSA_OPTIONS}"
95-
VARNISH_VCL_CONF: "/run/secrets/varnish_vcl_default"
96-
image: "jdeathe/centos-ssh-varnish:2.4.0"
95+
VARNISH_VCL_CONF: "/var/run/secrets/varnish_vcl_default"
96+
image: "jdeathe/centos-ssh-varnish:2.4.1"
9797
networks:
9898
tier2:
9999
tier3:
@@ -114,4 +114,4 @@ services:
114114
nproc: 65535
115115
volumes:
116116
# Emulate docker swarm secrets
117-
- "${PWD}/test/fixture/secrets:/run/secrets:ro"
117+
- "${PWD:-.}/test/fixture/secrets:/var/run/secrets:ro"

docker-compose-tcp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ services:
2727
APACHE_SSL_CERTIFICATE: "${APACHE_SSL_CERTIFICATE}"
2828
volumes:
2929
# Emulate docker swarm secrets
30-
- "${PWD}/test/fixture/secrets:/var/run/secrets:ro"
30+
- "${PWD:-.}/test/fixture/secrets:/var/run/secrets:ro"
3131
apache-php2:
3232
environment:
3333
APACHE_MOD_SSL_ENABLED: "true"
3434
APACHE_SSL_CERTIFICATE: "${APACHE_SSL_CERTIFICATE}"
3535
volumes:
3636
# Emulate docker swarm secrets
37-
- "${PWD}/test/fixture/secrets:/var/run/secrets:ro"
37+
- "${PWD:-.}/test/fixture/secrets:/var/run/secrets:ro"

docker-compose.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ services:
5757
nproc: 65535
5858
volumes:
5959
# Emulate docker swarm secrets
60-
- "./test/fixture/secrets:/var/run/secrets:ro"
60+
# On CentOS-7 ${PWD} appears to get unset when running docker-compose.
61+
# Fail back with the "." value for the working directory.
62+
- "${PWD:-.}/test/fixture/secrets:/var/run/secrets:ro"
6163
apache-php1:
6264
depends_on:
6365
- "redis"
@@ -73,7 +75,7 @@ services:
7375
PHP_OPTIONS_SESSION_SAVE_HANDLER: "redis"
7476
PHP_OPTIONS_SESSION_SAVE_PATH: "redis:6379"
7577
SYSTEM_TIMEZONE: "${SYSTEM_TIMEZONE}"
76-
image: "jdeathe/centos-ssh-apache-php:3.3.2"
78+
image: "jdeathe/centos-ssh-apache-php:3.3.3"
7779
networks:
7880
tier3:
7981
aliases:
@@ -100,7 +102,7 @@ services:
100102
PHP_OPTIONS_SESSION_SAVE_HANDLER: "redis"
101103
PHP_OPTIONS_SESSION_SAVE_PATH: "redis:6379"
102104
SYSTEM_TIMEZONE: "${SYSTEM_TIMEZONE}"
103-
image: "jdeathe/centos-ssh-apache-php:3.3.2"
105+
image: "jdeathe/centos-ssh-apache-php:3.3.3"
104106
networks:
105107
tier3:
106108
aliases:
@@ -117,7 +119,7 @@ services:
117119
REDIS_MAXMEMORY: "32mb"
118120
REDIS_TCP_BACKLOG: "2048"
119121
SYSTEM_TIMEZONE: "${SYSTEM_TIMEZONE}"
120-
image: "jdeathe/centos-ssh-redis:3.1.0"
122+
image: "jdeathe/centos-ssh-redis:4.1.1"
121123
networks:
122124
- "tier4"
123125
ports:

0 commit comments

Comments
 (0)