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

Commit e7a8707

Browse files
authored
Merge pull request #897 from jdeathe/centos-7-develop
Release changes for 2.6.1
2 parents fb19762 + 378c503 commit e7a8707

22 files changed

+479
-380
lines changed

.dockerignore

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
.env
2-
.env.example
3-
.git
4-
.gitignore
5-
dist
6-
test
7-
docker-compose.yml
8-
LICENSE
9-
README-short.txt
10-
*.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
1112
!README.md
1213
**/*.mk
13-
**/Makefile
14+
**/Makefile

.env.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
ENABLE_SSHD_BOOTSTRAP=true
2-
ENABLE_SSHD_WRAPPER=true
31
SSH_AUTHORIZED_KEYS=
42
SSH_CHROOT_DIRECTORY=%h
53
SSH_INHERIT_ENVIRONMENT=false

.gitignore

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

CHANGELOG.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,39 @@
11
# Change Log
22

3-
## centos-7
4-
5-
Summary of release changes for Version 2 - CentOS-7
3+
## 2 - centos-7
4+
5+
Summary of release changes.
6+
7+
### 2.6.1 - 2019-09-21
8+
9+
- Deprecate Makefile target `logs-delayed`; replaced with `logsdef`.
10+
- Updates `openssh` package to 7.4p1-21.el7.
11+
- Updates `openssl` package to 1.0.2k-19.el7.
12+
- Updates `sudo` package to 1.8.23-4.el7.
13+
- Updates `yum-plugin-versionlock` package to 1.1.31-52.el7.
14+
- Updates supervisord to 4.0.4.
15+
- Updates `test/health_status` helper script with for consistency.
16+
- Updates Makefile target `logs` to accept `[OPTIONS]` (e.g `make -- logs -ft`).
17+
- Updates `healthcheck` script; state file existence confirms bootstrap completion.
18+
- Updates `system-timezone-wrapper` to improve timer accuracy.
19+
- Updates scripts to explicitly check for a file when handling lock/state files.
20+
- Updates method used for returning current script.
21+
- Updates info/error output for consistency.
22+
- Updates healthcheck failure messages to remove EOL character that is rendered in status response.
23+
- Updates wrapper script; only emit "waiting on" info message if bootstrap hasn't completed.
24+
- Updates CHANGELOG.md to simplify maintenance.
25+
- Updates README.md to simplify contents and improve readability.
26+
- Updates README-short.txt to apply to all image variants.
27+
- Updates Dockerfile `org.deathe.description` metadata LABEL for consistency.
28+
- Updates ordering of Tags and respective Dockerfile links in README.md for readability.
29+
- Adds improved test workflow; added `test-setup` target to Makefile.
30+
- Adds Makefile target `logsdef` to handle deferred logs output within a target chain.
31+
- Adds exec proxy function to `sshd-wrapper` used to pass through nice.
32+
- Adds double quotes around value containing spaces.
33+
- Adds `/docs` directory for supplementary documentation and simplify README.
34+
- Fixes validation failure of 0 second --timeout value in `test/health_status`.
35+
- Removes `ENABLE_SSHD_BOOTSTRAP` from docker-compose example configuration.
36+
- Removes `ENABLE_SSHD_WRAPPER` from docker-compose example configuration.
637

738
### 2.6.0 - 2019-06-20
839

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM centos:7.6.1810
22

3-
ARG RELEASE_VERSION="2.6.0"
3+
ARG RELEASE_VERSION="2.6.1"
44

55
# ------------------------------------------------------------------------------
66
# - Import the RPM GPG keys for repositories
@@ -27,12 +27,12 @@ RUN rpm --rebuilddb \
2727
--setopt=tsflags=nodocs \
2828
--disableplugin=fastestmirror \
2929
inotify-tools-3.14-8.el7 \
30-
openssh-clients-7.4p1-16.el7 \
31-
openssh-server-7.4p1-16.el7 \
32-
openssl-1.0.2k-16.el7 \
30+
openssh-clients-7.4p1-21.el7 \
31+
openssh-server-7.4p1-21.el7 \
32+
openssl-1.0.2k-19.el7 \
3333
python-setuptools-0.9.8-7.el7 \
34-
sudo-1.8.23-3.el7 \
35-
yum-plugin-versionlock-1.1.31-50.el7 \
34+
sudo-1.8.23-4.el7 \
35+
yum-plugin-versionlock-1.1.31-52.el7 \
3636
&& yum versionlock add \
3737
inotify-tools \
3838
openssh \
@@ -43,7 +43,7 @@ RUN rpm --rebuilddb \
4343
yum-plugin-versionlock \
4444
&& yum clean all \
4545
&& easy_install \
46-
'supervisor == 4.0.3' \
46+
'supervisor == 4.0.4' \
4747
'supervisor-stdout == 0.1.1' \
4848
&& mkdir -p \
4949
/var/log/supervisor/ \
@@ -145,7 +145,7 @@ jdeathe/centos-ssh:${RELEASE_VERSION} \
145145
org.deathe.license="MIT" \
146146
org.deathe.vendor="jdeathe" \
147147
org.deathe.url="https://github.com/jdeathe/centos-ssh" \
148-
org.deathe.description="CentOS-7 7.6.1810 x86_64 - SCL, EPEL and IUS Repositories / Supervisor / OpenSSH."
148+
org.deathe.description="OpenSSH 7.4 / Supervisor 4.0 / EPEL/IUS/SCL Repositories - CentOS-7 7.6.1810 x86_64."
149149

150150
HEALTHCHECK \
151151
--interval=1s \

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-short.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CentOS-6 6.10 x86_64 / CentOS-7 7.6.1810 x86_64 - SCL/EPEL/IUS Repos / Supervisor / OpenSSH.
1+
OpenSSH / Supervisor / EPEL/IUS/SCL Repos - CentOS.

0 commit comments

Comments
 (0)