Skip to content

Commit 8f78f0d

Browse files
Merge branch 'ideasonpurpose:master' into master
2 parents 7df6359 + b8dfb3a commit 8f78f0d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

boilerplate-tooling/docker-compose.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
# Primary database for the local WordPress development environment.
33
# Image from: https://hub.docker.com/_/mariadb
44
db:
5-
image: &db_img mariadb:11.1.2
5+
image: &db_img mariadb:11.5
66
restart: always
77
volumes:
88
- db_data:/var/lib/mysql
@@ -85,7 +85,7 @@ services:
8585
# Utility service for running composer commands
8686
# Image from: https://hub.docker.com/_/composer
8787
composer:
88-
image: composer:2.6
88+
image: composer:2.7
8989
profiles: ["utility"]
9090
user: "${UID:-1000}:${GID:-1000}"
9191
environment:
@@ -176,13 +176,13 @@ services:
176176
command: |
177177
bash -c 'for i in {1..10}
178178
do echo -e "⏳ \033[33mWaiting for MariaDB server...\033[0m" &&
179-
mariadb -s -h db -e "exit" && break || sleep 3
179+
mariadb --skip-ssl -s -h db -e "exit" && break || sleep 3
180180
done &&
181181
sleep 2 &&
182182
echo -e "✔️ \033[32mConnected to MariaDB\033[0m" &&
183183
export DUMPFILE="/usr/src/'${npm_package_name:-dumpfile}'-$$(date +%FT%H%M%S).sql" &&
184184
echo $${DUMPFILE} &&
185-
mariadb-dump -hdb --databases $${MYSQL_DATABASE} > "$${DUMPFILE}" &&
185+
mariadb-dump --skip-ssl -hdb --databases $${MYSQL_DATABASE} > "$${DUMPFILE}" &&
186186
gzip "$${DUMPFILE}" &&
187187
chown -R $${OWNER_GROUP} /usr/src &&
188188
echo "Successfully dumped database to \"$${DUMPFILE}.gz\""'
@@ -200,15 +200,15 @@ services:
200200
command: |
201201
bash -c 'for i in {1..10}
202202
do echo -e "⏳ \033[33mWaiting for MariaDB server...\033[0m" &&
203-
mariadb -s -h db -e "exit" && break || sleep 3
203+
mariadb --skip-ssl -s -h db -e "exit" && break || sleep 3
204204
done &&
205205
sleep 2 &&
206206
echo -e "✔️ \033[32mConnected to MariaDB\033[0m" &&
207-
mariadb-admin -hdb -v -f drop $${MYSQL_DATABASE} &&
208-
mariadb-admin -hdb -v -f create $${MYSQL_DATABASE} &&
207+
mariadb-admin --skip-ssl -hdb -v -f drop $${MYSQL_DATABASE} &&
208+
mariadb-admin --skip-ssl -hdb -v -f create $${MYSQL_DATABASE} &&
209209
echo Database \"$${MYSQL_DATABASE}\" created &&
210210
echo Reloading database from dumpfile &&
211-
mariadb -hdb $${MYSQL_DATABASE} < $$(ls /usr/src/dumpfiles/*.sql | tail -n1)'
211+
mariadb --skip-ssl -hdb $${MYSQL_DATABASE} < $$(ls /usr/src/dumpfiles/*.sql | tail -n1)'
212212
213213
# Activates the theme directly in the database
214214
theme-activate:
@@ -223,14 +223,14 @@ services:
223223
command: |
224224
bash -c 'for i in {1..10}
225225
do echo -e "⏳ \033[33mWaiting for DB server...\033[0m" &&
226-
mariadb -s -h db -e "exit" && break || sleep 3
226+
mariadb --skip-ssl -s -h db -e "exit" && break || sleep 3
227227
done &&
228228
sleep 2 &&
229229
echo -e "✔️ \033[32mConnected to MariaDB\033[0m" &&
230-
if [[ $$(mariadb -s -h db $${MYSQL_DATABASE} -e "SHOW TABLES LIKE \"wp_options\"") ]]
230+
if [[ $$(mariadb --skip-ssl -s -h db $${MYSQL_DATABASE} -e "SHOW TABLES LIKE \"wp_options\"") ]]
231231
then
232232
echo -e "🎨 \033[36mActivating theme \033[0m\033[1m${npm_package_name:-ioptheme}\033[0m"
233-
mariadb -h db $${MYSQL_DATABASE} \
233+
mariadb --skip-ssl -h db $${MYSQL_DATABASE} \
234234
-e "UPDATE wp_options \
235235
SET option_value = \"'${npm_package_name:-ioptheme}'\" \
236236
WHERE option_name in (\"template\",\"stylesheet\")"

0 commit comments

Comments
 (0)