Skip to content

Commit

Permalink
move to use docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Aug 13, 2024
1 parent 00f9fe8 commit 0d377ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/cached-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ runs:
- name: Build and tag relevant app from docker-compose
shell: bash
run: |
docker-compose -f ${{ inputs.docker_compose_file }} build ${{ inputs.docker_compose_file_app }}
docker compose -f ${{ inputs.docker_compose_file }} build ${{ inputs.docker_compose_file_app }}
docker tag "$IMAGE_NAME" "$REGISTRY/$IMAGE_NAME"
for val in $TAGS; do
docker tag "$IMAGE_NAME" "$val"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/in-container/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
composeFiles="-f docker-compose.yml"
fi
shellCommands='$@'
echo "docker-compose $composeFiles run --volume /home/runner:/home/runner/ ${{ inputs.app }} ${{ inputs.shell }} $shellCommands" > ${{ github.action_path }}/docker_command.sh
echo "docker compose $composeFiles run --volume /home/runner:/home/runner/ ${{ inputs.app }} ${{ inputs.shell }} $shellCommands" > ${{ github.action_path }}/docker_command.sh
echo "${{ github.action_path }}" >> $GITHUB_PATH
env:
USE_DEV_IMAGE: ${{ inputs.use_dev_image}}
Expand Down
4 changes: 2 additions & 2 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export BUILD_COMMIT=$(git log -1 --pretty=%h)
script/bootstrap

docker build . -t mysocietyorg/caps:latest -t mysocietyorg/caps:${BUILD_COMMIT} --build-arg BUILD_COMMIT=${BUILD_COMMIT}
docker-compose pull solr
docker-compose pull postgres
docker compose pull solr
docker compose pull postgres
10 changes: 5 additions & 5 deletions script/setup
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -e
cd `dirname $0`/..

echo "==> Cleaning up any lingering Docker development environments..."
docker-compose down -v
docker compose down -v

echo "==> Removing any local data..."
rm -fr media/
Expand All @@ -23,14 +23,14 @@ script/bootstrap

# Start the local Docker environment in the background.
echo "==> Starting development docker environment in the background..."
docker-compose up -d
docker compose up -d

# Run the data import
echo "==> Importing data..."
docker-compose exec app script/update --all
docker compose exec app script/update --all

# Tear it all down
echo "==> Stopping environment..."
docker-compose stop
docker compose stop

echo '==> Done. You can now start an interactive environment by running `docker-compose up`'
echo '==> Done. You can now start an interactive environment by running `docker compose up`'

0 comments on commit 0d377ca

Please sign in to comment.