Skip to content

Commit

Permalink
add docker compose migration
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Aug 8, 2024
1 parent cb3ec00 commit 98f5856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/envs/down.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
export DOCKER_FILE=docker-compose.ci.yml
docker-compose -f $DOCKER_FILE down
docker compose -f $DOCKER_FILE down
docker volume prune --force
6 changes: 3 additions & 3 deletions bin/envs/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ fi
export DOCKER_FILE=docker-compose.ci.yml

# Bring stack up.
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

# Run setup
echo "Setting up environment $WP_ENV"

docker-compose -f $DOCKER_FILE run --rm -u root cli bash -c "/var/www/html/bin/envs/cli-setup.sh $ZIP_URL $WP_VERSION $WP_ENV $SKIP_CACHE"
docker compose -f $DOCKER_FILE run --rm -u root cli bash -c "/var/www/html/bin/envs/cli-setup.sh $ZIP_URL $WP_VERSION $WP_ENV $SKIP_CACHE"

0 comments on commit 98f5856

Please sign in to comment.