From 2b07ead40b0095e13b4ef7a1de46efae0c26c81f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 25 Feb 2021 23:16:23 -0500 Subject: [PATCH] refactor: move base image reference to Dockerfile This will allow us to take advantage of automatic update software to auto-pull new versions when they are released to docker hub. --- Dockerfile | 1 + config | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..48b01a7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM mysql:5.7.28 diff --git a/config b/config index 6f8316c..bbb1e39 100644 --- a/config +++ b/config @@ -1,6 +1,6 @@ #!/usr/bin/env bash -export MYSQL_IMAGE=${MYSQL_IMAGE:="mysql"} -export MYSQL_IMAGE_VERSION=${MYSQL_IMAGE_VERSION:="5.7.28"} +export MYSQL_IMAGE=${MYSQL_IMAGE:="$(awk -F '[ :]' '{print $2}' Dockerfile)"} +export MYSQL_IMAGE_VERSION=${MYSQL_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' Dockerfile)"} export MYSQL_ROOT=${MYSQL_ROOT:="$DOKKU_LIB_ROOT/services/mysql"} export MYSQL_HOST_ROOT=${MYSQL_HOST_ROOT:=$MYSQL_ROOT}