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

Commit cea6f05

Browse files
authored
Merge pull request #825 from jdeathe/centos-6-develop
Release changes for 1.11.0
2 parents c2855c9 + 9daed1a commit cea6f05

26 files changed

+2103
-1145
lines changed

.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1+
ENABLE_SSHD_BOOTSTRAP=true
2+
ENABLE_SSHD_WRAPPER=true
13
SSH_AUTHORIZED_KEYS=
2-
SSH_AUTOSTART_SSHD=true
3-
SSH_AUTOSTART_SSHD_BOOTSTRAP=true
44
SSH_CHROOT_DIRECTORY=%h
55
SSH_INHERIT_ENVIRONMENT=false
66
SSH_PASSWORD_AUTHENTICATION=false
77
SSH_SUDO=ALL=(ALL) ALL
8-
SSH_TIMEZONE=UTC
98
SSH_USER=app-admin
109
SSH_USER_FORCE_SFTP=false
1110
SSH_USER_HOME=/home/%u
1211
SSH_USER_ID=500:500
1312
SSH_USER_PASSWORD=
1413
SSH_USER_PASSWORD_HASHED=false
1514
SSH_USER_PRIVATE_KEY=
16-
SSH_USER_SHELL=/bin/bash
15+
SSH_USER_SHELL=/bin/bash
16+
SYSTEM_TIMEZONE=UTC

CHANGELOG.md

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

55
Summary of release changes for Version 1 - CentOS-6
66

7+
### 1.11.0 - 2019-06-20
8+
9+
- Deprecates `SSH_AUTOSTART_SSHD`, replaced with `ENABLE_SSHD_WRAPPER`.
10+
- Deprecates `SSH_AUTOSTART_SSHD_BOOTSTRAP`, replaced with `ENABLE_SSHD_BOOTSTRAP`.
11+
- Deprecates `SSH_AUTOSTART_SUPERVISOR_STDOUT`, replaced with `ENABLE_SUPERVISOR_STDOUT`.
12+
- Deprecates `SSH_TIMEZONE`, replaced with `SYSTEM_TIMEZONE`.
13+
- Updates source image from `centos6.10` tag to `6.10`.
14+
- Updates supervisord to 3.4.0.
15+
- Updates default value of `ENABLE_SUPERVISOR_STDOUT` to false.
16+
- Updates `sshd-bootstrap` and `sshd-wrapper` configuration to send error log output to stderr.
17+
- Updates order of values in SSH/SFTP Details log output.
18+
- Updates bootstrap timer to use UTC date timestamps.
19+
- Updates bootstrap supervisord configuration file/priority to `20-sshd-bootstrap.conf`/`20`.
20+
- Updates wrapper supervisord configuration file/priority to `50-sshd-wrapper.conf`/`50`.
21+
- Adds reference to `python-setuptools` in README; removed in error.
22+
- Adds `inspect`, `reload` and `top` Makefile targets.
23+
- Adds improved lock/state file implementation in bootstrap and wrapper scripts.
24+
- Adds improved `clean` Makefile target; includes exited containers and dangling images.
25+
- Adds improved wait on bootstrap completion in wrapper script.
26+
- Adds `system-timezone` and `system-timezone-wrapper` to handle system time zone setup.
27+
- Adds system time zone validation to healthcheck.
28+
- Fixes port incrementation failures when installing systemd units via `scmi`.
29+
- Fixes etcd port registration failures when installing systemd units via `scmi` with the `--register` option.
30+
- Fixes binary paths in systemd unit files for compatibility with both EL and Ubuntu hosts.
31+
- Fixes use of printf binary instead of builtin in systemd unit files.
32+
- Fixes docker host connection status check in Makefile.
33+
- Fixes make clean error thrown when removing exited containers.
34+
- Removes support for long image tags (i.e. centos-6-1.x.x).
35+
- Removes system time zone setup from `sshd-bootstrap`.
36+
- Removes redundant directory test from `sshd-bootstrap`; state file ensures it's a one-shot process.
37+
738
### 1.10.1 - 2019-02-28
839

940
- Deprecates use of `supervisor_stdout` - the default value of `SSH_AUTOSTART_SUPERVISOR_STDOUT` will be switched to "false" in a future release.

Dockerfile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM centos:centos6.10
1+
FROM centos:6.10
22

3-
ARG RELEASE_VERSION="1.10.1"
3+
ARG RELEASE_VERSION="1.11.0"
44

55
# ------------------------------------------------------------------------------
66
# - Import the RPM GPG keys for repositories
@@ -23,13 +23,18 @@ RUN rpm --rebuilddb \
2323
centos-release-scl-rh \
2424
epel-release \
2525
https://centos6.iuscommunity.org/ius-release.rpm \
26+
&& yum -y install \
27+
--setopt=tsflags=nodocs \
28+
--disableplugin=fastestmirror \
29+
inotify-tools-3.14-1.el6 \
2630
openssh-clients-5.3p1-123.el6_9 \
2731
openssh-server-5.3p1-123.el6_9 \
2832
python-setuptools-0.6.10-4.el6_9 \
2933
sudo-1.8.6p3-29.el6_9 \
3034
yum-plugin-versionlock-1.1.30-42.el6_10 \
3135
xz-4.999.9-0.5.beta.20091007git.el6 \
3236
&& yum versionlock add \
37+
inotify-tools \
3338
openssh \
3439
openssh-clients \
3540
openssh-server \
@@ -45,7 +50,7 @@ RUN rpm --rebuilddb \
4550
sysvinit-tools \
4651
&& yum clean all \
4752
&& easy_install \
48-
'supervisor == 3.3.5' \
53+
'supervisor == 3.4.0' \
4954
'supervisor-stdout == 0.1.1' \
5055
&& mkdir -p \
5156
/var/log/supervisor/ \
@@ -93,33 +98,33 @@ RUN ln -sf \
9398
-e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
9499
/etc/systemd/system/centos-ssh@.service \
95100
&& chmod 644 \
96-
/etc/{supervisord.conf,supervisord.d/sshd-{bootstrap,wrapper}.conf} \
101+
/etc/{supervisord.conf,supervisord.d/{20-sshd-bootstrap,50-sshd-wrapper}.conf} \
97102
&& chmod 700 \
98-
/usr/{bin/healthcheck,sbin/{scmi,sshd-{bootstrap,wrapper}}}
103+
/usr/{bin/healthcheck,sbin/{scmi,sshd-{bootstrap,wrapper},system-{timezone,timezone-wrapper}}}
99104

100105
EXPOSE 22
101106

102107
# ------------------------------------------------------------------------------
103108
# Set default environment variables
104109
# ------------------------------------------------------------------------------
105110
ENV \
111+
ENABLE_SSHD_BOOTSTRAP="true" \
112+
ENABLE_SSHD_WRAPPER="true" \
113+
ENABLE_SUPERVISOR_STDOUT="false" \
106114
SSH_AUTHORIZED_KEYS="" \
107-
SSH_AUTOSTART_SSHD="true" \
108-
SSH_AUTOSTART_SSHD_BOOTSTRAP="true" \
109-
SSH_AUTOSTART_SUPERVISOR_STDOUT="true" \
110115
SSH_CHROOT_DIRECTORY="%h" \
111116
SSH_INHERIT_ENVIRONMENT="false" \
112117
SSH_PASSWORD_AUTHENTICATION="false" \
113118
SSH_SUDO="ALL=(ALL) ALL" \
114-
SSH_TIMEZONE="UTC" \
115119
SSH_USER="app-admin" \
116120
SSH_USER_FORCE_SFTP="false" \
117121
SSH_USER_HOME="/home/%u" \
118122
SSH_USER_ID="500:500" \
119123
SSH_USER_PASSWORD="" \
120124
SSH_USER_PASSWORD_HASHED="false" \
121125
SSH_USER_PRIVATE_KEY="" \
122-
SSH_USER_SHELL="/bin/bash"
126+
SSH_USER_SHELL="/bin/bash" \
127+
SYSTEM_TIMEZONE="UTC"
123128

124129
# ------------------------------------------------------------------------------
125130
# Set image metadata

0 commit comments

Comments
 (0)