Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[Issue #88] Adjust docker commands based on recent updates #89

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

chouinar
Copy link
Collaborator

Summary

Fixes #88

Time to review: 5 mins

Changes proposed

Remove the version field from the docker-compose files

Adjust the docker commands to use docker compose instead of docker-compose

Context for reviewers

A recent version of docker removed the need for specifying a version in the compose files - so the field is now obsolete and just gives a warning whenever you run a command:
https://docs.docker.com/compose/compose-file/04-version-and-name/

The change in the command we run is actually from 2021 and makes sure we use docker compose v2. Depending on how you've setup your local instance of docker, docker-compose may have been aliased to docker compose anyways (I actually think if it wasn't, certain things break anyways). This is just using the proper format for certain.

Additional information

I went through running several docker commands and noticed no difference, as this change shouldn't meaningfully change anything, that is to be expected.

@chouinar chouinar requested a review from rylew1 June 17, 2024 18:40
@github-actions github-actions bot added documentation Improvements or additions to documentation api frontend ci/cd labels Jun 17, 2024
Copy link

Coverage report for ./frontend

St.
Category Percentage Covered / Total
🟢 Statements 83.27% 846/1016
🟡 Branches 68.31% 222/325
🟡 Functions 75.46% 163/216
🟢 Lines 82.81% 795/960

Test suite run success

168 tests passing in 54 suites.

Report generated by 🧪jest coverage report action from 137b56a

@chouinar chouinar merged commit 65e6840 into main Jun 17, 2024
19 checks passed
@chouinar chouinar deleted the chouinar/88-docker-adjustments branch June 17, 2024 18:51
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2063

Remove the version field from the docker-compose files

Adjust the docker commands to use `docker compose` instead of
`docker-compose`

A recent version of docker removed the need for specifying a version in
the compose files - so the field is now obsolete and just gives a
warning whenever you run a command:
https://docs.docker.com/compose/compose-file/04-version-and-name/

The change in the command we run is actually from 2021 and makes sure we
use docker compose v2. Depending on how you've setup your local instance
of docker, `docker-compose` may have been aliased to `docker compose`
anyways (I actually think if it wasn't, certain things break anyways).
This is just using the proper format for certain.

I went through running several docker commands and noticed no
difference, as this change shouldn't meaningfully change anything, that
is to be expected.
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2063

Remove the version field from the docker-compose files

Adjust the docker commands to use `docker compose` instead of
`docker-compose`

A recent version of docker removed the need for specifying a version in
the compose files - so the field is now obsolete and just gives a
warning whenever you run a command:
https://docs.docker.com/compose/compose-file/04-version-and-name/

The change in the command we run is actually from 2021 and makes sure we
use docker compose v2. Depending on how you've setup your local instance
of docker, `docker-compose` may have been aliased to `docker compose`
anyways (I actually think if it wasn't, certain things break anyways).
This is just using the proper format for certain.

I went through running several docker commands and noticed no
difference, as this change shouldn't meaningfully change anything, that
is to be expected.
acouch pushed a commit to HHS/simpler-grants-gov that referenced this pull request Sep 18, 2024
)

Fixes #2063

Remove the version field from the docker-compose files

Adjust the docker commands to use `docker compose` instead of
`docker-compose`

A recent version of docker removed the need for specifying a version in
the compose files - so the field is now obsolete and just gives a
warning whenever you run a command:
https://docs.docker.com/compose/compose-file/04-version-and-name/

The change in the command we run is actually from 2021 and makes sure we
use docker compose v2. Depending on how you've setup your local instance
of docker, `docker-compose` may have been aliased to `docker compose`
anyways (I actually think if it wasn't, certain things break anyways).
This is just using the proper format for certain.

I went through running several docker commands and noticed no
difference, as this change shouldn't meaningfully change anything, that
is to be expected.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api ci/cd documentation Improvements or additions to documentation frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Update docker commands based on recent changes
2 participants