-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfigure.sh
More file actions
executable file
·20 lines (14 loc) · 850 Bytes
/
Copy pathconfigure.sh
File metadata and controls
executable file
·20 lines (14 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MOSQUITTO_VERSION="1.5.5"
MOSQUITTO_AUTH_PLUG_VERSION="0.1.2"
POSTGRES_VERSION="10.5"
echo mosquitto version is $MOSQUITTO_VERSION
echo postgres version is $POSTGRES_VERSION
echo mosquitto auth plug version is $MOSQUITTO_AUTH_PLUG_VERSION
mosquitto_dockerfile="mosquitto/Dockerfile"
postgres_dockerfile="postgres_db/Dockerfile"
sed -i "s/eclipse-mosquitto.*$/eclipse-mosquitto/" $mosquitto_dockerfile
sed -i "s/\<eclipse-mosquitto\>/&:"$MOSQUITTO_VERSION"/" $mosquitto_dockerfile
sed -i "s/ENV MOSQUITTO_AUTH_PLUG_VERSION.*$/ENV MOSQUITTO_AUTH_PLUG_VERSION/" $mosquitto_dockerfile
sed -i "s/\<ENV MOSQUITTO_AUTH_PLUG_VERSION\>/&="$MOSQUITTO_AUTH_PLUG_VERSION" MOSQUITO_VERSION="$MOSQUITTO_VERSION"/" $mosquitto_dockerfile
sed -i "s/postgres.*$/postgres/" $postgres_dockerfile
sed -i "s/\<postgres\>/&:"$POSTGRES_VERSION"/" $postgres_dockerfile