-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update docker-compose command
- Loading branch information
1 parent
4aa0017
commit 6e7948c
Showing
4 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env bash | ||
docker-compose -f $DOCKER_FILE run --rm -u root cli bash -c "wp --allow-root plugin deactivate classic-editor" | ||
docker compose -f $DOCKER_FILE run --rm -u root cli bash -c "wp --allow-root plugin deactivate classic-editor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
docker-compose -f $DOCKER_FILE down | ||
docker compose -f $DOCKER_FILE down | ||
docker volume prune --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker-compose -f $DOCKER_FILE up -d | ||
docker compose -f $DOCKER_FILE up -d | ||
# Wait for mysql container to be ready. | ||
while docker-compose -f $DOCKER_FILE run --rm -u root cli wp --allow-root db check ; [ $? -ne 0 ]; do | ||
while docker compose -f $DOCKER_FILE run --rm -u root cli wp --allow-root db check ; [ $? -ne 0 ]; do | ||
echo "Waiting for db to be ready... " | ||
sleep 1 | ||
done | ||
# install WP | ||
docker-compose -f $DOCKER_FILE run --rm -u root cli bash -c "/var/www/html/bin/cli-setup.sh" | ||
|
||
|
||
|
||
docker compose -f $DOCKER_FILE run --rm -u root cli bash -c "/var/www/html/bin/cli-setup.sh" |