Skip to content

Commit

Permalink
Fixes deprecation of docker compose v1 by changing to v2 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gcardonag committed Aug 6, 2024
1 parent 9f5c697 commit 3e78c72
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/betasite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
echo Build started on `date`
echo Building the webapp...
docker-compose run prod_build
docker compose run prod_build
echo Build completed on `date`
echo Pushing the webapp to S3...
aws s3 sync docker/build s3://beta.phlask.me --acl public-read --delete
2 changes: 1 addition & 1 deletion .github/workflows/build_testsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
echo Build started on `date`
echo Building the webapp...
docker-compose run prod_build
docker compose run prod_build
echo Build completed on `date`
echo Pushing the webapp to S3...
aws s3 sync docker/build s3://test.phlask.me/${GITHUB_SHA} --acl public-read --delete
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prodsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
echo Build started on `date`
echo Building the webapp...
docker-compose run prod_build
docker compose run prod_build
echo Build completed on `date`
echo Pushing the webapp to S3...
aws s3 sync docker/build s3://phlask.me --acl public-read --delete
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Code behind the PHLASK Web Map
│ ├── fixtures <-- Fixtures for mocked out data
│ └── integration <-- Source files for unit tests
├── cypress.json
├── docker-compose.yml
├── docker compose.yml
├── package-lock.json
├── package.json
├── public
Expand Down Expand Up @@ -79,7 +79,7 @@ Note that `core hours per month` means each core on your codespace consumes inde

1. Clone this repo: `git clone git@github.com:phlask/phlask-map.git`
1. Navigate to the root of the cloned repo: `cd phlask-map`
1. Build the container with docker-compose: `docker-compose build app`.
1. Build the container with docker compose: `docker compose build app`.

Note: this may take awhile. In the past this has taken ~5 minutes. If this step takes longer than 10 minutes, kill the process and try again. Final output should look like this:

Expand All @@ -89,7 +89,7 @@ Note that `core hours per month` means each core on your codespace consumes inde
=> => writing image sha256:c98c...
```

1. Run the container with docker-compose: `docker-compose up app`
1. Run the container with docker compose: `docker compose up app`

Note: this may take awhile. Once the application is up, output similar to this should be printed out to the console:

Expand Down

0 comments on commit 3e78c72

Please sign in to comment.