Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Probot AWS Lambda",
"image": "mcr.microsoft.com/devcontainers/javascript-node:26-bookworm",
"remoteUser": "node",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
"workspaceFolder": "/workspace",
"mounts": [
"source=${devcontainerId}-node-modules,target=/workspace/node_modules,type=volume"
],
"postCreateCommand": "sudo chown \"$(id -u):$(id -g)\" node_modules && npm ci",
"forwardPorts": [3000],
"portsAttributes": {
"3000": {
"label": "Probot"
}
}
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ npm start

Follow the instructions to register a new GitHub app.

### Develop in a container

With Docker running and the VS Code Dev Containers extension installed, open
this repository and choose **Dev Containers: Reopen in Container**. The
[dev container](.devcontainer/devcontainer.json) uses Node.js 26 and runs
`npm ci`. Dependencies are stored in a separate Docker volume, so they do not
replace any host `node_modules`.

Run `npm test` for a credential-free check, or run `npm start` and open the
forwarded Probot port (3000 by default). If you already have a local `.env`, it
is available in the mounted workspace and is not included in the container image.

## Deployment

In order to deploy the app from you local environment, follow the [Serverless Deploying to AWS documentation](https://www.serverless.com/framework/docs/providers/aws/guide/deploying).
Expand Down