Skip to content

Commit

Permalink
Add documentation on how to troubleshoot Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Feb 13, 2020
1 parent f64c944 commit 7cd2c6c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ You need to set the NPM_TOKEN parameter to the NPM token to the private registry
$ docker build --build-arg NPM_TOKEN="YOURTOKENHERE" .
```

#### Troubleshooting

If the docker image doesn't start you can debug the image using an interactive shell session. This allows you to browse the folders, update the files to test things and run the portal.

```bash
$ docker run --rm -it opensource-portal sh
/usr/src/repos $ ls
app.js data lib package.json tsconfig.tsbuildinfo webhooks
app.js.map entities localEnvironment.js routes user
bin features localEnvironment.js.map test utils.js
business github middleware transitional.js utils.js.map
config jobs node_modules transitional.js.map views
/usr/src/repos $ npm run start-in-container
```

### Test

This project is starting to get improved testability. But it will be a long slog.
Expand Down

0 comments on commit 7cd2c6c

Please sign in to comment.