-
Couldn't load subscription status.
- Fork 677
Convert base template to E2B SDK #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
|
||
| RUN groupadd --gid 1000 node \ | ||
| && useradd --uid 1000 --gid node --shell /bin/bash --create-home node | ||
| RUN groupadd -r node && useradd -r -g node -s /bin/bash -m node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was edited because I was getting:
groupadd: GID '1000' already exists
| # const sandbox = await Sandbox.create('base') | ||
|
|
||
| team_id = "460355b3-4f64-48f9-9a16-4442817f79f5" | ||
| memory_mb = 512 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the memory setup should be explicitly set as the defaults can change
| import { defaultBuildLogger, Template } from '../../packages/js-sdk/src' | ||
| import { template, alias } from './template' | ||
|
|
||
| await Template.build(template, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the base template is already built in the Infra repo. I think we might want to have here only the Docker image build, no template at all
I haven't modified the source for compatibility reasons, so it can still be released as a Docker image
Note
Switches the base template to JS SDK-driven builds (dev/prod), adds package.json and template config, updates Dockerfile user creation, and removes e2b.toml.
build.dev.tsandbuild.prod.tsusingTemplate.buildwithdefaultBuildLogger()and alias handling.template.tsexportingalias: 'base'andTemplate().fromDockerfile('e2b.Dockerfile'); addpackage.jsonwithbuild:devandbuild:prodscripts.groupadd -r/useradd -r).e2b.toml.Written by Cursor Bugbot for commit 6f55a51. This will update automatically on new commits. Configure here.