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

Commit

Permalink
feat: extend Docker info (#4061)
Browse files Browse the repository at this point in the history
Co-authored-by: VWSCoronaDashboard24 <[email protected]>
  • Loading branch information
VWSCoronaDashboard24 and VWSCoronaDashboard24 authored Feb 28, 2022
1 parent b822ba9 commit 371abbd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ packages/**/node_modules
packages/app/out
packages/app/.next
.github
.git
.vscode
docs

# Allowlist
!packages/app/*.conf
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ RUN yarn download \
&& yarn workspace @corona-dashboard/cli validate-last-values --fail-early \
&& yarn workspace @corona-dashboard/cms lokalize:export --dataset=$NEXT_PUBLIC_SANITY_DATASET \
&& yarn workspace @corona-dashboard/app build \
&& mkdir /app/packages/app/public/images/choropleth \
&& mkdir -p /app/packages/app/public/images/choropleth \
&& addgroup -g 1001 -S nodejs \
&& adduser -S nextjs -u 1001 \
&& chown -R nextjs:nodejs /app/packages/app/.next \
Expand Down
19 changes: 19 additions & 0 deletions docs/developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ docker build \
.
```

Running:

```sh
docker run --init --publish 8080:8080 local-test
```

Debugging a running container:

```sh
# get the containerId first by running
docker ps

# then use the containerId to connect into it
docker exec -ti <containerId> sh

# you can now run certain commands to debug, to inspect file/dir sizes for example:
du -h -d 1 | sort -n
```

## Testing Windows screenreaders on Mac

To properly test accessibility on Mac, screenreaders for Windows should be
Expand Down

0 comments on commit 371abbd

Please sign in to comment.