-
Notifications
You must be signed in to change notification settings - Fork 2
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 #139 from essentialkaos/develop
Version 1.23.2
- Loading branch information
Showing
10 changed files
with
250 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## WEBKAOS UNPRIVILEGED IMAGE ################################################## | ||
|
||
FROM essentialkaos/oraclelinux:7 | ||
|
||
LABEL org.opencontainers.image.title="WEBKAOS (Unprivileged)" \ | ||
org.opencontainers.image.description="WEBKAOS Image on OracleLinux 7" \ | ||
org.opencontainers.image.vendor="ESSENTIAL KAOS" \ | ||
org.opencontainers.image.authors="Anton Novojilov" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://kaos.sh/webkaos" \ | ||
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos" | ||
|
||
ARG UID=1001 | ||
ARG GID=1001 | ||
|
||
# hadolint ignore=DL3031,DL3033 | ||
RUN yum -y -q install https://yum.kaos.st/kaos-repo-latest.el7.noarch.rpm && \ | ||
yum -y -q install webkaos webkaos-module-brotli gettext && \ | ||
yum clean all && \ | ||
rm -rf /var/cache/yum && \ | ||
rm -rf /tmp/* && \ | ||
rm -rf /var/tmp/* && \ | ||
usermod -u $UID webkaos && \ | ||
groupmod -g $GID webkaos && \ | ||
mkdir /var/run/webkaos && \ | ||
chown -R $UID:$GID /etc/webkaos /var/run/webkaos /var/log/webkaos && \ | ||
ln -sf /dev/stdout /var/log/webkaos/access.log && \ | ||
ln -sf /dev/stderr /var/log/webkaos/error.log && \ | ||
mkdir /etc/webkaos/templates | ||
|
||
COPY --chown=$UID:$GID SOURCES/webkaos-docker-unprivileged.conf /etc/webkaos/webkaos.conf | ||
COPY .docker/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
EXPOSE 8080 | ||
|
||
USER $UID | ||
|
||
STOPSIGNAL SIGTERM | ||
|
||
CMD ["webkaos", "-g", "daemon off;"] | ||
|
||
################################################################################ |
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,35 @@ | ||
## WEBKAOS IMAGE ############################################################### | ||
|
||
FROM essentialkaos/oraclelinux:7 | ||
|
||
LABEL org.opencontainers.image.title="WEBKAOS" \ | ||
org.opencontainers.image.description="WEBKAOS Image on OracleLinux 7" \ | ||
org.opencontainers.image.vendor="ESSENTIAL KAOS" \ | ||
org.opencontainers.image.authors="Anton Novojilov" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://kaos.sh/webkaos" \ | ||
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos" | ||
|
||
# hadolint ignore=DL3031,DL3033 | ||
RUN yum -y -q install https://yum.kaos.st/kaos-repo-latest.el7.noarch.rpm && \ | ||
yum -y -q install webkaos webkaos-module-brotli gettext && \ | ||
yum clean all && \ | ||
rm -rf /var/cache/yum && \ | ||
rm -rf /tmp/* && \ | ||
rm -rf /var/tmp/* && \ | ||
ln -sf /dev/stdout /var/log/webkaos/access.log && \ | ||
ln -sf /dev/stderr /var/log/webkaos/error.log && \ | ||
mkdir /etc/webkaos/templates | ||
|
||
COPY SOURCES/webkaos-docker.conf /etc/webkaos/webkaos.conf | ||
COPY .docker/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
EXPOSE 80 | ||
|
||
STOPSIGNAL SIGTERM | ||
|
||
CMD ["webkaos", "-g", "daemon off;"] | ||
|
||
################################################################################ |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Cloudflare IPs (https://www.cloudflare.com/ips) | ||
set_real_ip_from 103.21.244.0/22; | ||
set_real_ip_from 103.22.200.0/22; | ||
set_real_ip_from 103.31.4.0/22; | ||
set_real_ip_from 104.16.0.0/13; | ||
set_real_ip_from 104.24.0.0/14; | ||
set_real_ip_from 108.162.192.0/18; | ||
set_real_ip_from 131.0.72.0/22; | ||
set_real_ip_from 141.101.64.0/18; | ||
set_real_ip_from 162.158.0.0/15; | ||
set_real_ip_from 172.64.0.0/13; | ||
set_real_ip_from 173.245.48.0/20; | ||
set_real_ip_from 188.114.96.0/20; | ||
set_real_ip_from 190.93.240.0/20; | ||
set_real_ip_from 197.234.240.0/22; | ||
set_real_ip_from 198.41.128.0/17; | ||
set_real_ip_from 2400:cb00::/32; | ||
set_real_ip_from 2606:4700::/32; | ||
set_real_ip_from 2803:f800::/32; | ||
set_real_ip_from 2405:b500::/32; | ||
set_real_ip_from 2405:8100::/32; | ||
set_real_ip_from 2a06:98c0::/29; | ||
set_real_ip_from 2c0f:f248::/32; |
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,23 @@ | ||
#!/bin/bash | ||
|
||
################################################################################ | ||
|
||
main() { | ||
local opt | ||
|
||
for opt in "$@" ; do | ||
case "$opt" in | ||
"-v" | "-V" | "-h" | "-?") | ||
/usr/sbin/webkaos "$@" 2>&1 | sed '1!b;s/webkaos/nginx/g' 1>&2 | ||
exit 0 ;; | ||
esac | ||
done | ||
|
||
/usr/sbin/webkaos "$@" | ||
|
||
exit $? | ||
} | ||
|
||
################################################################################ | ||
|
||
main "$@" |
Oops, something went wrong.