Skip to content

Commit

Permalink
chore: remove support for running dev env in Docker (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnugent authored Nov 18, 2024
1 parent a240164 commit 6894837
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 94 deletions.
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,33 +47,3 @@ jobs:
- name: Build project
run: yarn build
if: ${{ github.event_name != 'pull_request' }}

test-docker-compose:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Build the dev container
run: docker-compose build --no-cache --progress plain
env:
SIRV_CLIENT_SECRET_RO: ${{ secrets.SIRV_CLIENT_SECRET_RO }}
SIRV_CLIENT_SECRET_RW: ${{ secrets.SIRV_CLIENT_SECRET_RW }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
AUTH0_CLIENT_SECRET: ${$ secrets.AUTH0_CLIENT_SECRET }}
AUTH0_MGMT_CLIENT_SECRET: ${$ secrets.AUTH0_MGMT_CLIENT_SECRET }}

- name: Start docker compose
run: docker-compose up -d
env:
SIRV_CLIENT_SECRET_RO: ${{ secrets.SIRV_CLIENT_SECRET_RO }}

- name: Wait for the site to be online
run: wget -qO- https://raw.githubusercontent.com/eficode/wait-for/$WAIT_FOR_VERSION/wait-for | sh -s -- -t 180 localhost:3000 -- echo "Site is up"
env:
WAIT_FOR_VERSION: 4df3f9262d84cab0039c07bf861045fbb3c20ab7 # v2.2.3

- name: Stop containers
if: always()
run: docker-compose down
17 changes: 0 additions & 17 deletions Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,6 @@ yarn dev

The application is now available at http://localhost:3000


### Alternate build method using Docker

If you just want to run the app locally without installing node, npm, etc., you can do so with Docker.

**Requirements:** [Docker](https://docs.docker.com/get-docker/)

```
docker compose up
```

The application is now available at http://localhost:3000. The project will rebuild automatically when you make changes to files in `./src` dir.

Note: If you install new NPM packages, you will need to rebuild the docker image with

```
docker compose up --build
```

The application is now available at `http://localhost:3000`

## Tips

### API key errors
Expand Down
23 changes: 0 additions & 23 deletions docker-compose.yml

This file was deleted.

0 comments on commit 6894837

Please sign in to comment.