Skip to content

Commit 1f47946

Browse files
committed
refactor: prefer enve command
1 parent b9e4ede commit 1f47946

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Alpine / MySQL Client
1+
# Alpine / MySQL Client ![Docker Pulls](https://img.shields.io/docker/pulls/joseluisq/alpine-mysql-client)
22

3-
[![dockeri.co](https://dockeri.co/image/joseluisq/alpine-mysql-client)](https://hub.docker.com/r/joseluisq/alpine-mysql-client)
4-
5-
> [MySQL client](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) tools on top of [Alpine Linux x86_64](https://hub.docker.com/_/alpine).
3+
> [MySQL client](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) for easy export and import databases using Docker.
64
75
🐳 View on [Docker Hub](https://hub.docker.com/r/joseluisq/alpine-mysql-client/)
86

docker/tmpl.Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ RUN adduser -h ${USER_HOME_DIR} -s /sbin/nologin -u 1000 -D ${USER_NAME} && \
2929
\
3030
cp /usr/bin/envsubst /usr/local/bin/envsubst && \
3131
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
32+
wget --quiet -O /tmp/enve.tar.gz "https://github.com/joseluisq/enve/releases/download/v1.0.0/enve_v1.0.0_linux_$arch.tar.gz"; \
33+
tar xzvf /tmp/enve.tar.gz -C /usr/local/bin enve; \
34+
rm -f /tmp/enve.tar.gz; \
35+
chmod +x /usr/local/bin/enve
3636

3737
COPY ./__mysqldump.sh /usr/local/bin/__mysqldump.sh
3838
COPY ./mysql_exporter /usr/local/bin/mysql_exporter

mysql_exporter

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [[ -z "$FILE_ENV" ]]; then
1010
fi
1111

1212
if [[ -f $FILE_ENV ]]; then
13-
fenv -f $FILE_ENV __mysqldump.sh
13+
enve -f $FILE_ENV __mysqldump.sh
1414
else
1515
echo "file \`$FILE_ENV\` was not found"
1616
exit 1

mysql_importer

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [[ -z "$FILE_ENV" ]]; then
1010
fi
1111

1212
if [[ -f $FILE_ENV ]]; then
13-
fenv -f $FILE_ENV __mysqlimport.sh
13+
enve -f $FILE_ENV __mysqlimport.sh
1414
else
1515
echo "file \`$FILE_ENV\` was not found"
1616
exit 1

0 commit comments

Comments
 (0)