kopia lustrzana https://github.com/kartoza/docker-postgis
minor tweaks (#401)
rodzic
904607b0a5
commit
e7fd886c38
|
@ -16,4 +16,4 @@ LANGS="en_US.UTF-8,id_ID.UTF-8"
|
||||||
POSTGRES_MAJOR_VERSION=15
|
POSTGRES_MAJOR_VERSION=15
|
||||||
POSTGIS_MAJOR_VERSION=3
|
POSTGIS_MAJOR_VERSION=3
|
||||||
POSTGIS_MINOR_RELEASE=3
|
POSTGIS_MINOR_RELEASE=3
|
||||||
BUILD_TIMESCALE=true
|
BUILD_TIMESCALE=false
|
24
build.sh
24
build.sh
|
@ -4,15 +4,19 @@ if [[ ! -f .env ]]; then
|
||||||
echo "Default build arguments don't exists. Creating one from default value."
|
echo "Default build arguments don't exists. Creating one from default value."
|
||||||
cp .example.env .env
|
cp .example.env .env
|
||||||
fi
|
fi
|
||||||
|
source .env
|
||||||
|
|
||||||
|
if [[ ${BUILD_TIMESCALE} =~ [Ff][Aa][Ll][Ss][Ee] ]];then
|
||||||
|
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
|
||||||
|
docker-compose -f docker-compose.build.yml build postgis-prod
|
||||||
|
else
|
||||||
|
docker compose -f docker-compose.build.yml build postgis-prod
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
|
|
||||||
docker-compose -f docker-compose.build.yml build postgis-prod
|
|
||||||
else
|
else
|
||||||
docker compose -f docker-compose.build.yml build postgis-prod
|
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
|
||||||
fi
|
docker-compose -f docker-compose.build-timescale.yml build postgis-prod
|
||||||
|
else
|
||||||
#if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
|
docker compose -f docker-compose.build-timescale.yml build postgis-prod
|
||||||
#docker-compose -f docker-compose.build-timescale.yml build postgis-prod
|
fi
|
||||||
#else
|
fi
|
||||||
#docker compose -f docker-compose.build-timescale.yml build postgis-prod
|
|
||||||
#fi
|
|
|
@ -78,7 +78,7 @@ fi
|
||||||
|
|
||||||
function generate_random_string() {
|
function generate_random_string() {
|
||||||
STRING_LENGTH=$1
|
STRING_LENGTH=$1
|
||||||
random_pass_string=$(openssl rand -base64 ${STRING_LENGTH})
|
random_pass_string=$(cat /dev/urandom | tr -dc '[:alnum:]' | head -c "${STRING_LENGTH}")
|
||||||
if [[ ! -f /scripts/.pass_${STRING_LENGTH}.txt ]]; then
|
if [[ ! -f /scripts/.pass_${STRING_LENGTH}.txt ]]; then
|
||||||
echo ${random_pass_string} > /scripts/.pass_${STRING_LENGTH}.txt
|
echo ${random_pass_string} > /scripts/.pass_${STRING_LENGTH}.txt
|
||||||
fi
|
fi
|
||||||
|
|
Ładowanie…
Reference in New Issue