Skip to content

Commit

Permalink
Set smoketest Alpine Linux version to 3.21 and fix deprecated chown s…
Browse files Browse the repository at this point in the history
…yntax
  • Loading branch information
TrafeX committed Jan 5, 2025
1 parent c7c3bb8 commit 68ba30d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
FS_METHOD: direct

sut:
image: alpine:3
image: alpine:3.21
depends_on:
- wordpress
command: /tmp/run_tests.sh
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ ! "$(ls -A "/var/www/wp-content" 2>/dev/null)" ]; then
echo 'Setting up wp-content volume'
# Copy wp-content from Wordpress src to volume
cp -r /usr/src/wordpress/wp-content /var/www/
chown -R nobody.nobody /var/www
chown -R nobody:nobody /var/www
fi
# Check if wp-secrets.php exists
if ! [ -f "/var/www/wp-content/wp-secrets.php" ]; then
Expand Down
4 changes: 2 additions & 2 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
apk --no-cache add curl
while ! curl -fs wordpress > /dev/null; do echo -n '.'; sleep 1; done;
curl --silent --fail http://wordpress/wp-admin/install.php | grep 'wp-core-ui' > /dev/null
for i in $(seq 1 10); do curl -fs wordpress > /dev/null && break || { echo -n '.'; sleep 1; }; done;
curl --silent --fail http://wordpress/wp-admin/install.php | grep 'wp-core-ui'

0 comments on commit 68ba30d

Please sign in to comment.