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
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,23 @@ await run(options).catch((err: any) => {
process.exit(0);
});
```

## Production

Build Docker image for the AI agent

```sh
pnpm agent:build
```

> [!WARNING]
>
> When building the Docker image on your MacBook, you need to disable Rosetta on Docker Desktop due to issue <https://github.com/docker/for-mac/issues/7255> Buildx throws Illegal Instruction installing ca-certificates when building for linux/amd64 on M2.
>
> Open Docker Desktop, go to "Settings", visit "Generaral", under "Virtual Machine Options", disable option "Use Rosetta for x86_64/amd64 emulation on Apple Silicon". Apply and restart Docker Desktop.

Push the Docker image to Google Cloud

```sh
pnpm agent:push
```
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"description": "This is the root of the monorepo for the GitHub demo.",
"scripts": {
"preinstall": "pnpm registry-login",
"registry-login": "pnpm exec artifactregistry-auth"
"registry-login": "pnpm exec artifactregistry-auth",
"agent:build": "docker buildx build --no-cache --platform linux/amd64 -t vertesia/github-agent:latest -t vertesia/github-agent:$(git rev-parse HEAD) -t us-docker.pkg.dev/dengenlabs/us.gcr.io/agents/vertesia/github-agent:$(git rev-parse HEAD) -f apps/github-agent/Dockerfile .",
"agent:push": "cd apps/github-agent && docker push us-docker.pkg.dev/dengenlabs/us.gcr.io/agents/vertesia/github-agent:$(git rev-parse HEAD)"
},
"packageManager": "pnpm@9.15.0",
"devDependencies": {
Expand Down