mirror of
https://github.com/casjaysdevdocker/buildah
synced 2025-01-18 06:34:29 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
3ccf8777fb
commit
15fa3a1dd9
@ -73,8 +73,8 @@ RUN set -ex; \
|
|||||||
RUN echo "$TIMEZONE" >"/etc/timezone" ; \
|
RUN echo "$TIMEZONE" >"/etc/timezone" ; \
|
||||||
echo 'hosts: files dns' >"/etc/nsswitch.conf" ; \
|
echo 'hosts: files dns' >"/etc/nsswitch.conf" ; \
|
||||||
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" ; \
|
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" ; \
|
||||||
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null)" ; \
|
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null || echo '')" ; \
|
||||||
[ -n "$PHP_FPM" ] && [ -z "$(type -P php-fpm)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" ; \
|
[ -n "$PHP_FPM" ] && [ -z "$(type -P php-fpm)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" || true ; \
|
||||||
if [ -f "/etc/profile.d/color_prompt.sh.disabled" ]; then mv -f "/etc/profile.d/color_prompt.sh.disabled" "/etc/profile.d/color_prompt.sh"; fi
|
if [ -f "/etc/profile.d/color_prompt.sh.disabled" ]; then mv -f "/etc/profile.d/color_prompt.sh.disabled" "/etc/profile.d/color_prompt.sh"; fi
|
||||||
|
|
||||||
RUN touch "/etc/profile" "/root/.profile" ; \
|
RUN touch "/etc/profile" "/root/.profile" ; \
|
||||||
|
@ -23,21 +23,21 @@ done
|
|||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# execute command variables
|
# execute command variables
|
||||||
WORKDIR="" # set working directory
|
WORKDIR="" # set working directory
|
||||||
SERVICE_UID="0" # set the user id
|
SERVICE_UID="0" # set the user id
|
||||||
SERVICE_USER="root" # execute command as another user
|
SERVICE_USER="root" # execute command as another user
|
||||||
SERVICE_PORT="" # port which service is listening on
|
SERVICE_PORT="" # port which service is listening on
|
||||||
EXEC_CMD_BIN="build-project" # command to execute
|
EXEC_CMD_BIN="build-project" # command to execute
|
||||||
EXEC_CMD_ARGS="" # command arguments
|
EXEC_CMD_ARGS="" # command arguments
|
||||||
PRE_EXEC_MESSAGE="" # Show message before execute
|
PRE_EXEC_MESSAGE="" # Show message before execute
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Other variables that are needed
|
# Other variables that are needed
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# use this function to update config files - IE: change port
|
# use this function to update config files - IE: change port
|
||||||
__update_conf_files() {
|
__update_conf_files() {
|
||||||
[ -L "/var/lib/containers" ]||
|
[ -L "/var/lib/containers" ] ||
|
||||||
ln -sf "/data/containers" "/var/lib/containers"
|
ln -sf "/data/containers" "/var/lib/containers"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
@ -72,7 +72,7 @@ __pcheck() { [ -n "$(type -P pgrep 2>/dev/null)" ] && pgrep -x "$1" &>/dev/null
|
|||||||
__pgrep() { __pcheck "${1:-EXEC_CMD_BIN}" || __ps aux 2>/dev/null | grep -Fw " ${1:-$EXEC_CMD_BIN}" | grep -qv ' grep' | grep '^' && return 0 || return 10; }
|
__pgrep() { __pcheck "${1:-EXEC_CMD_BIN}" || __ps aux 2>/dev/null | grep -Fw " ${1:-$EXEC_CMD_BIN}" | grep -qv ' grep' | grep '^' && return 0 || return 10; }
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Allow ENV_ variable
|
# Allow ENV_ variable
|
||||||
[ -f "/config/env/$EXEC_CMD_BIN.sh" ] && "/config/env/$EXEC_CMD_BIN.sh" # Import env file
|
[ -f "/config/env/${SERVICE_NAME:-$SCRIPT_NAME}.sh" ] && "/config/env/${SERVICE_NAME:-$SCRIPT_NAME}.sh" # Import env file
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
WORKDIR="${ENV_WORKDIR:-$WORKDIR}" # change to directory
|
WORKDIR="${ENV_WORKDIR:-$WORKDIR}" # change to directory
|
||||||
SERVICE_USER="${ENV_SERVICE_USER:-$SERVICE_USER}" # execute command as another user
|
SERVICE_USER="${ENV_SERVICE_USER:-$SERVICE_USER}" # execute command as another user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user