Skip to content

Commit 68ba30d

Browse files
committed
Set smoketest Alpine Linux version to 3.21 and fix deprecated chown syntax
1 parent c7c3bb8 commit 68ba30d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker-compose.test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
FS_METHOD: direct
2222

2323
sut:
24-
image: alpine:3
24+
image: alpine:3.21
2525
depends_on:
2626
- wordpress
2727
command: /tmp/run_tests.sh

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ ! "$(ls -A "/var/www/wp-content" 2>/dev/null)" ]; then
88
echo 'Setting up wp-content volume'
99
# Copy wp-content from Wordpress src to volume
1010
cp -r /usr/src/wordpress/wp-content /var/www/
11-
chown -R nobody.nobody /var/www
11+
chown -R nobody:nobody /var/www
1212
fi
1313
# Check if wp-secrets.php exists
1414
if ! [ -f "/var/www/wp-content/wp-secrets.php" ]; then

run_tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
apk --no-cache add curl
3-
while ! curl -fs wordpress > /dev/null; do echo -n '.'; sleep 1; done;
4-
curl --silent --fail http://wordpress/wp-admin/install.php | grep 'wp-core-ui' > /dev/null
3+
for i in $(seq 1 10); do curl -fs wordpress > /dev/null && break || { echo -n '.'; sleep 1; }; done;
4+
curl --silent --fail http://wordpress/wp-admin/install.php | grep 'wp-core-ui'

0 commit comments

Comments
 (0)