This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #748 from jdeathe/centos-7-develop
Release changes for 2.5.1
- Loading branch information
Showing
26 changed files
with
996 additions
and
788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.env | ||
.env.example | ||
.git | ||
.gitignore | ||
dist | ||
test | ||
docker-compose.yml | ||
LICENSE | ||
README-short.txt | ||
*.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
SSH_AUTHORIZED_KEYS= | ||
SSH_AUTOSTART_SSHD=true | ||
SSH_AUTOSTART_SSHD_BOOTSTRAP=true | ||
SSH_CHROOT_DIRECTORY=%h | ||
SSH_INHERIT_ENVIRONMENT=false | ||
SSH_PASSWORD_AUTHENTICATION=false | ||
SSH_SUDO=ALL=(ALL) ALL | ||
SSH_TIMEZONE=UTC | ||
SSH_USER=app-admin | ||
SSH_USER_FORCE_SFTP=false | ||
SSH_USER_HOME=/home/%u | ||
SSH_USER_ID=500:500 | ||
SSH_USER_PASSWORD= | ||
SSH_USER_PASSWORD_HASHED=false | ||
SSH_USER_PRIVATE_KEY= | ||
SSH_USER_SHELL=/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.env | ||
packages | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
FROM centos:7.5.1804 | ||
|
||
ARG RELEASE_VERSION="2.5.0" | ||
ARG RELEASE_VERSION="2.5.1" | ||
|
||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
# - Import the RPM GPG keys for repositories | ||
# - Base install of required packages | ||
# - Install supervisord (used to run more than a single process) | ||
# - Install supervisor-stdout to allow output of services started by | ||
# supervisord to be easily inspected with "docker logs". | ||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
RUN rpm --rebuilddb \ | ||
&& rpm --import \ | ||
http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7 \ | ||
|
@@ -48,27 +48,20 @@ RUN rpm --rebuilddb \ | |
&& rm -rf /{root,tmp,var/cache/{ldconfig,yum}}/* \ | ||
&& > /etc/sysconfig/i18n | ||
|
||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
# Copy files into place | ||
# ----------------------------------------------------------------------------- | ||
ADD src/usr/bin \ | ||
/usr/bin/ | ||
ADD src/usr/sbin \ | ||
/usr/sbin/ | ||
ADD src/opt/scmi \ | ||
/opt/scmi/ | ||
ADD src/etc \ | ||
/etc/ | ||
# ------------------------------------------------------------------------------ | ||
ADD src / | ||
|
||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
# Provisioning | ||
# - UTC Timezone | ||
# - Networking | ||
# - Configure SSH defaults for non-root public key authentication | ||
# - Enable the wheel sudoers group | ||
# - Replace placeholders with values in systemd service unit template | ||
# - Set permissions | ||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
RUN ln -sf \ | ||
/usr/share/zoneinfo/UTC \ | ||
/etc/localtime \ | ||
|
@@ -88,18 +81,20 @@ RUN ln -sf \ | |
-e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \ | ||
/etc/systemd/system/[email protected] \ | ||
&& chmod 644 \ | ||
/etc/{sshd-bootstrap.{conf,env},supervisord.conf,supervisord.d/sshd-{bootstrap,wrapper}.conf} \ | ||
/etc/{supervisord.conf,supervisord.d/sshd-{bootstrap,wrapper}.conf} \ | ||
&& chmod 700 \ | ||
/usr/{bin/healthcheck,sbin/{scmi,sshd-{bootstrap,wrapper}}} | ||
|
||
EXPOSE 22 | ||
|
||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
# Set default environment variables | ||
# ----------------------------------------------------------------------------- | ||
ENV SSH_AUTHORIZED_KEYS="" \ | ||
# ------------------------------------------------------------------------------ | ||
ENV \ | ||
SSH_AUTHORIZED_KEYS="" \ | ||
SSH_AUTOSTART_SSHD="true" \ | ||
SSH_AUTOSTART_SSHD_BOOTSTRAP="true" \ | ||
SSH_AUTOSTART_SUPERVISOR_STDOUT="true" \ | ||
SSH_CHROOT_DIRECTORY="%h" \ | ||
SSH_INHERIT_ENVIRONMENT="false" \ | ||
SSH_PASSWORD_AUTHENTICATION="false" \ | ||
|
@@ -114,9 +109,9 @@ ENV SSH_AUTHORIZED_KEYS="" \ | |
SSH_USER_PRIVATE_KEY="" \ | ||
SSH_USER_SHELL="/bin/bash" | ||
|
||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
# Set image metadata | ||
# ----------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------------ | ||
LABEL \ | ||
maintainer="James Deathe <[email protected]>" \ | ||
install="docker run \ | ||
|
@@ -153,4 +148,4 @@ HEALTHCHECK \ | |
--retries=5 \ | ||
CMD ["/usr/bin/healthcheck"] | ||
|
||
CMD ["/usr/bin/supervisord", "--configuration=/etc/supervisord.conf"] | ||
CMD ["/usr/bin/supervisord", "--configuration=/etc/supervisord.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.