🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-09-08 10:40:22 -04:00
parent 7cae057cf8
commit 4c899b9502
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
2 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
FROM casjaysdevdocker/alpine:latest as build FROM casjaysdevdocker/alpine:latest as build
ARG LICENSE=WTFPL \ ARG LICENSE=WTFPL \
IMAGE_NAME=traefix \ IMAGE_NAME=traefik \
TIMEZONE=America/New_York \ TIMEZONE=America/New_York \
PORT= PORT=
@ -13,7 +13,7 @@ ENV SHELL=/bin/bash \
RUN mkdir -p /bin/ /config/ /data/ && \ RUN mkdir -p /bin/ /config/ /data/ && \
rm -Rf /bin/.gitkeep /config/.gitkeep /data/.gitkeep && \ rm -Rf /bin/.gitkeep /config/.gitkeep /data/.gitkeep && \
apk update -U --no-cache && \ apk update -U --no-cache && \
apk add --no-cache traefix apk add --no-cache traefik
COPY ./bin/. /usr/local/bin/ COPY ./bin/. /usr/local/bin/
COPY ./config/. /config/ COPY ./config/. /config/
@ -22,10 +22,10 @@ COPY ./data/. /data/
FROM scratch FROM scratch
ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')" ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"
LABEL org.label-schema.name="traefix" \ LABEL org.label-schema.name="traefik" \
org.label-schema.description="Containerized version of traefix" \ org.label-schema.description="Containerized version of traefik" \
org.label-schema.url="https://hub.docker.com/r/casjaysdevdocker/traefix" \ org.label-schema.url="https://hub.docker.com/r/casjaysdevdocker/traefik" \
org.label-schema.vcs-url="https://github.com/casjaysdevdocker/traefix" \ org.label-schema.vcs-url="https://github.com/casjaysdevdocker/traefik" \
org.label-schema.build-date=$BUILD_DATE \ org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$BUILD_DATE \ org.label-schema.version=$BUILD_DATE \
org.label-schema.vcs-ref=$BUILD_DATE \ org.label-schema.vcs-ref=$BUILD_DATE \
@ -37,7 +37,7 @@ LABEL org.label-schema.name="traefix" \
ENV SHELL="/bin/bash" \ ENV SHELL="/bin/bash" \
TERM="xterm-256color" \ TERM="xterm-256color" \
HOSTNAME="casjaysdev-traefix" \ HOSTNAME="casjaysdev-traefik" \
TZ="${TZ:-America/New_York}" TZ="${TZ:-America/New_York}"
WORKDIR /root WORKDIR /root
@ -49,6 +49,6 @@ EXPOSE $PORT
COPY --from=build /. / COPY --from=build /. /
ENTRYPOINT [ "tini", "--" ] ENTRYPOINT [ "tini", "--" ]
HEALTHCHECK CMD [ "/usr/local/bin/entrypoint-traefix.sh", "healthcheck" ] HEALTHCHECK CMD [ "/usr/local/bin/entrypoint-traefik.sh", "healthcheck" ]
CMD [ "/usr/local/bin/entrypoint-traefix.sh" ] CMD [ "/usr/local/bin/entrypoint-traefik.sh" ]

View File

@ -5,10 +5,10 @@
# @@Author : Jason Hempstead # @@Author : Jason Hempstead
# @@Contact : jason@casjaysdev.com # @@Contact : jason@casjaysdev.com
# @@License : LICENSE.md # @@License : LICENSE.md
# @@ReadME : entrypoint-traefix.sh --help # @@ReadME : entrypoint-traefik.sh --help
# @@Copyright : Copyright: (c) 2022 Jason Hempstead, Casjays Developments # @@Copyright : Copyright: (c) 2022 Jason Hempstead, Casjays Developments
# @@Created : Thursday, Sep 08, 2022 10:06 EDT # @@Created : Thursday, Sep 08, 2022 10:06 EDT
# @@File : entrypoint-traefix.sh # @@File : entrypoint-traefik.sh
# @@Description : # @@Description :
# @@Changelog : New script # @@Changelog : New script
# @@TODO : Better documentation # @@TODO : Better documentation
@ -94,8 +94,8 @@ fi
[ -f "/etc/.env.sh" ] && rm -Rf "/etc/.env.sh" [ -f "/etc/.env.sh" ] && rm -Rf "/etc/.env.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Additional commands # Additional commands
[ -d "/config/traefix" ] || mkdir -p "/config/traefix" [ -d "/config/traefik" ] || mkdir -p "/config/traefik"
[ -f "/config/traefix/.yml" ] || cp -Rf "/etc/traefik/traefik.yml" "/config/traefix" [ -f "/config/traefik/.yml" ] || cp -Rf "/etc/traefik/traefik.yml" "/config/traefik"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case "$1" in case "$1" in
--help) # Help message --help) # Help message
@ -120,7 +120,7 @@ healthcheck) # Docker healthcheck
*) # Execute primary command *) # Execute primary command
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
traefix traefik
else else
__exec_bash "/bin/bash" __exec_bash "/bin/bash"
fi fi