File tree Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ RUN adduser -h ${USER_HOME_DIR} -s /sbin/nologin -u 1000 -D ${USER_NAME} && \
2828 apk add --virtual build_deps $BUILD_DEPS && \
2929 \
3030 cp /usr/bin/envsubst /usr/local/bin/envsubst && \
31- apk del build_deps
31+ apk del build_deps && \
32+ wget --quiet -O /tmp/fenv.tar.gz "https://github.com/joseluisq/fenv/releases/download/v1.0.0/fenv_1.0.0_linux_$arch.tar.gz" ; \
33+ tar xzvf /tmp/fenv.tar.gz -C /usr/local/bin fenv; \
34+ rm -f /tmp/fenv.tar.gz; \
35+ chmod +x /usr/local/bin/fenv
3236
3337COPY ./__mysqldump.sh /usr/local/bin/__mysqldump.sh
3438COPY ./mysql_exporter /usr/local/bin/mysql_exporter
Original file line number Diff line number Diff line change 44
55FILE_ENV=$1
66
7- if [ -z " $FILE_ENV " ]; then
7+ if [[ -z " $FILE_ENV " ] ]; then
88 __mysqldump.sh
99 exit 0
1010fi
1111
12- if [ -f $FILE_ENV ]; then
13- export $( cat $FILE_ENV | xargs)
14-
15- __mysqldump.sh
12+ if [[ -f $FILE_ENV ]]; then
13+ fenv -f $FILE_ENV __mysqldump.sh
1614else
1715 echo " file \` $FILE_ENV \` was not found"
1816 exit 1
Original file line number Diff line number Diff line change 11# # MySQL Export template settings
22# # ------------------------------
3- # # Note:
4- # # .env files loading doesn't support comments,
5- # # so they should be removed before
63
74# Connection settings (optional)
85DB_PROTOCOL = tcp
Original file line number Diff line number Diff line change 44
55FILE_ENV=$1
66
7- if [ -z " $FILE_ENV " ]; then
7+ if [[ -z " $FILE_ENV " ] ]; then
88 __mysqlimport.sh
99 exit 0
1010fi
1111
12- if [ -f $FILE_ENV ]; then
13- export $( cat $FILE_ENV | xargs)
14-
15- __mysqlimport.sh
12+ if [[ -f $FILE_ENV ]]; then
13+ fenv -f $FILE_ENV __mysqlimport.sh
1614else
1715 echo " file \` $FILE_ENV \` was not found"
1816 exit 1
Original file line number Diff line number Diff line change 11# # MySQL Import template settings
22# # ------------------------------
3- # # Note:
4- # # .env files loading doesn't support comments,
5- # # so they should be removed before
63
74# Connection settings (optional)
85DB_PROTOCOL = tcp
You can’t perform that action at this time.
0 commit comments