Skip to content

Commit

Permalink
v4.5.1 (#129)
Browse files Browse the repository at this point in the history
Minor updates
* Adding BF_ENABLE_INIT_CH to allow disabling permissions during init
* Changing healthcheck definition to match [docs](https://docs.docker.com/engine/reference/builder/#healthcheck)
  • Loading branch information
bfren committed May 20, 2023
1 parent 4c0f4fd commit a3f3050
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 15 deletions.
5 changes: 4 additions & 1 deletion 3.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion 3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
5 changes: 4 additions & 1 deletion Dockerfile.esh
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.5.0
4.5.1
5 changes: 4 additions & 1 deletion edge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ ENV \
ENV \
# cron log levels are from 0 (most verbose) to 8 (default)
BF_CRON_LOG_LEVEL=8 \
# set to 0 to disable setting permissions using ch.d during init phase
BF_ENABLE_INIT_CH=1 \
# disable S6 Overlay service timeout - handle by timeout-up instead
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0

COPY ./overlay /

RUN bf-install

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 CMD [ "healthcheck" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
CMD healthcheck

ENTRYPOINT [ "/init" ]
7 changes: 6 additions & 1 deletion overlay/etc/bf/init.d/02-ch
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ export BF_E=`basename ${0}`


#======================================================================================================================
# Apply ch files.
# Apply ch files unless disabled.
#======================================================================================================================

if [ ! "${BF_ENABLE_INIT_CH}" = "1" ] ; then
bf-echo "Applying ch.d during init is disabled."
exit 0
fi

for FILE in `ls ${BF_CH_D} | sort` ; do
bf-ch-apply "${BF_CH_D}/${FILE}"
done

0 comments on commit a3f3050

Please sign in to comment.