From 48c70f906f57a3d8d87e98f27f1b1c191fb55c2f Mon Sep 17 00:00:00 2001 From: michaelroytman Date: Fri, 2 Aug 2024 10:43:31 -0400 Subject: [PATCH] build: update CI jobs to use v2 Docker Compose instead of v1 Docker Compose 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 "". 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/. --- .github/workflows/ci.yml | 2 +- README.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a009cb26..7b548116 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | diff --git a/README.rst b/README.rst index 602ecefb..7ce38c45 100644 --- a/README.rst +++ b/README.rst @@ -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