Skip to content

Commit

Permalink
feat: Update instrcutions to run the devcontainer outside vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorklauritzen committed Sep 24, 2024
1 parent d05b0fb commit 8bc7ff5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ If you want to have access to the container outside vscode, use the command bell
docker exec -it -w /workspaces/projectNext pn-dev /bin/bash
```

If you want to start the container standalone then you first need to build the docker image. Use this command for building.
```bash
docker build -t pn-dev .devcontainer/
```

Then use this command to start a new container
```bash
docker run -it --rm \
-w /workspaces/projectNext \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ./:/workspaces/projectNext \
-e PROJECT_ROOT="$(pwd)" \
--name pn-dev \
pn-dev /bin/bash
```

#### Working with the DB

To remigrate the db, just rerun the prisma container
Expand Down
2 changes: 1 addition & 1 deletion src/app/_components/OmegaId/reader/OmegaIdReader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function OmegaIdReader({
text: '...',
})

const results = await successCallback(parse.data, decomporessedToken)
const results = await successCallback(parse.data, decomporessedToken.data)

if (results.success && (singleRead ?? false)) {
html5QrcodeScanner.clear()
Expand Down

0 comments on commit 8bc7ff5

Please sign in to comment.