Skip to content

Commit

Permalink
Fixed MySQL socket usage in web-interface image
Browse files Browse the repository at this point in the history
  • Loading branch information
dotneft committed Jul 14, 2023
1 parent ece3769 commit efe612d
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 9 deletions.
6 changes: 5 additions & 1 deletion Dockerfiles/web-apache-mysql/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-apache-mysql/centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-apache-mysql/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-apache-mysql/ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-nginx-mysql/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-nginx-mysql/centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-nginx-mysql/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-nginx-mysql/rhel/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/web-nginx-mysql/ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ file_env() {

# Check prerequisites for MySQL database
check_variables() {
: ${DB_SERVER_HOST:="mysql-server"}
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"}

file_env MYSQL_USER
Expand Down

0 comments on commit efe612d

Please sign in to comment.