Skip to content

Commit

Permalink
Merge pull request #4392 from guardian/an/update-docker-compose-cmd
Browse files Browse the repository at this point in the history
update docker-compose command to new-style "docker compose"
  • Loading branch information
andrew-nowak authored Jan 13, 2025
2 parents 5087074 + b4e74c7 commit 940160f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dev/imgops/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Local version of the imgops service
Imgops runs in a Docker container. It can be run using the command:

```bash
docker-compose up -d imgops
docker compose up -d imgops
```

## Is it running
Expand Down
6 changes: 3 additions & 3 deletions dev/script/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ clean() {
rm -rf "$ROOT_DIR/dev/.localstack"
echo " removed historical localstack data"

docker-compose down -v
docker compose down -v
echo " removed docker containers"

docker-compose build
docker compose build
echo " rebuilt docker containers"
}

startDocker() {
docker-compose up -d
docker compose up -d

echo "waiting for localstack to launch on $LOCALSTACK_ENDPOINT"
while ! curl -s $LOCALSTACK_ENDPOINT >/dev/null; do
Expand Down
4 changes: 2 additions & 2 deletions dev/script/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ startDockerContainers() {
EXISTING_TUNNELS=$(ps -ef | grep ssh | grep 9200 | grep -v grep || true)
if [[ $USE_TEST == true ]]; then
if (docker stats --no-stream &> /dev/null); then
docker-compose down
docker compose down
fi
if [[ -n $EXISTING_TUNNELS ]]; then
echo "RE-USING EXISTING TUNNEL TO TEST ELASTICSEARCH (on port 9200)"
Expand All @@ -107,7 +107,7 @@ startDockerContainers() {
# shellcheck disable=SC2046
kill $(echo $EXISTING_TUNNELS | awk '{print $2}')
fi
docker-compose up -d
docker compose up -d
fi

}
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.2
Expand Down

0 comments on commit 940160f

Please sign in to comment.