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.
This commit is contained in:
Jose Diaz-Gonzalez
2021-02-25 23:16:23 -05:00
parent 18ce6d43b5
commit f1629b8b51
2 changed files with 3 additions and 2 deletions

1
Dockerfile Normal file
View File

@@ -0,0 +1 @@
FROM redis:5.0.7

4
config
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
export REDIS_IMAGE=${REDIS_IMAGE:="redis"}
export REDIS_IMAGE_VERSION=${REDIS_IMAGE_VERSION:="5.0.7"}
export REDIS_IMAGE=${REDIS_IMAGE:="$(awk -F '[ :]' '{print $2}' Dockerfile)"}
export REDIS_IMAGE_VERSION=${REDIS_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' Dockerfile)"}
export REDIS_ROOT=${REDIS_ROOT:="$DOKKU_LIB_ROOT/services/redis"}
export REDIS_HOST_ROOT=${REDIS_HOST_ROOT:=$REDIS_ROOT}