Skip to content

Commit

Permalink
build: update CI jobs to use v2 Docker Compose instead of v1 Docker C…
Browse files Browse the repository at this point in the history
…ompose

GitHub deprecated the v1 Docker Compose command on approximately 04/02/2024. See this discussion: https://github.com/orgs/community/discussions/116610. As a result, the call to "docker-compose" in CI is failing with the error "/home/runner/work/_temp/786472f6-82d3-477c-b98d-15e3fef3f0c3.sh: line 1: docker-compose: command not found".

To correct this issue, calls to "docker-compose" must be replace with calls to "docker compose". See the Migrate to Compose V2 guide: https://docs.docker.com/compose/migrate/.
  • Loading branch information
MichaelRoytman committed Aug 2, 2024
1 parent 07ca004 commit 4a14d79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Start Container
run: docker-compose -f .github/docker-compose-ci.yml up -d
run: docker compose -f .github/docker-compose-ci.yml up -d

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ With devstack running and this repo checked-out locally, you'll want to do the f
$ make dev.pull.analyticsapi
$ make dev.up.analyticsapi
$ make dev.provision.analyticsapi # this will provision the DB user, run migrations, etc.
$ docker-compose restart analyticsapi # maybe necessary to reset the DB connection
$ docker compose restart analyticsapi # maybe necessary to reset the DB connection
$ make analyticsapi-logs # make sure the app is running without errors


Expand Down

0 comments on commit 4a14d79

Please sign in to comment.