-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
303 additions
and
37 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
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
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 |
---|---|---|
|
@@ -2,12 +2,12 @@ FROM alpine | |
LABEL maintainer="Marc Mettke <[email protected]>" | ||
|
||
ENV SYSTEM https://github.com/mettke/ssh-key-authority.git | ||
ENV TAG v2.0.5 | ||
ENV TAG v2.1.0 | ||
ADD entrypoint.sh /entrypoint.sh | ||
ADD healthcheck.sh /healthcheck.sh | ||
ADD cron /var/spool/cron/crontabs/root | ||
|
||
RUN mkdir -p /var/log/keys/ /run/php/ /ska/ && \ | ||
RUN mkdir -p /var/log/keys/ /var/run/keys /run/php/ /ska/ && \ | ||
adduser --system --disabled-password keys-sync && \ | ||
apk add openssh \ | ||
php7 \ | ||
|
@@ -18,16 +18,19 @@ RUN mkdir -p /var/log/keys/ /run/php/ /ska/ && \ | |
php7-mysqli \ | ||
php7-pcntl \ | ||
php7-posix \ | ||
php7-xml \ | ||
rsync \ | ||
ssmtp \ | ||
sudo && \ | ||
sed -i -e '/listen =/ s/= .*/= 9000/' /etc/php7/php-fpm.d/www.conf && \ | ||
sed -i -e '/user =/ s/.*/user = keys-sync/' /etc/php7/php-fpm.d/www.conf && \ | ||
sed -i -e '/;pid =/ s/.*/pid = \/var\/run\/php-fpm.pid/' /etc/php7/php-fpm.conf && \ | ||
chmod +x /entrypoint.sh /healthcheck.sh && \ | ||
chown keys-sync:nogroup /var/run/keys && \ | ||
ln -sf /dev/stderr /var/log/php7/error.log | ||
RUN apk add git && \ | ||
git clone ${SYSTEM} /ska && \ | ||
git -C /ska checkout ${TAG} && \ | ||
git -C /ska checkout ${TAG} && \ | ||
apk del git && \ | ||
chown -R keys-sync:nogroup /ska/config | ||
|
||
|
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,2 @@ | ||
0 1 * * * /ska/scripts/cron.php | ||
*/1 * * * * /bin/ash -c "PID=$(cat /var/run/keys-sync.pid) && [ -n ${PID} -a -d /proc/${PID} ] || /ska/scripts/syncd.php --user keys-sync" | ||
*/1 * * * * /bin/ash -c "PID=$(cat /var/run/keys/keys-sync.pid) && [ -n ${PID} -a -d /proc/${PID} ] || /ska/scripts/syncd.php --user keys-sync" |
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
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
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
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.