chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# Integration test template
|
||||
|
||||
# Build the template
|
||||
|
||||
`$ e2b template build -c "cd /basic-nextjs-app/ && sudo npm run dev"`
|
||||
@@ -0,0 +1,11 @@
|
||||
FROM e2bdev/code-interpreter:latest
|
||||
|
||||
# Install stress-ng, a tool to load and stress computer systems
|
||||
RUN apt update
|
||||
RUN apt install -y stress-ng
|
||||
|
||||
# Create a basic Next.js app
|
||||
RUN npx -y create-next-app@latest basic-nextjs-app --yes --ts --use-npm
|
||||
|
||||
# Install dependencies
|
||||
RUN cd basic-nextjs-app && npm install
|
||||
@@ -0,0 +1,18 @@
|
||||
# This is a config for E2B sandbox template.
|
||||
# You can use template ID (2e2z80zhv34yumbrybvn) or template name (integration-test-v1) to create a sandbox:
|
||||
|
||||
# Python SDK
|
||||
# from e2b import Sandbox, AsyncSandbox
|
||||
# sandbox = Sandbox("integration-test-v1") # Sync sandbox
|
||||
# sandbox = await AsyncSandbox.create("integration-test-v1") # Async sandbox
|
||||
|
||||
# JS SDK
|
||||
# import { Sandbox } from 'e2b'
|
||||
# const sandbox = await Sandbox.create('integration-test-v1')
|
||||
|
||||
team_id = "460355b3-4f64-48f9-9a16-4442817f79f5"
|
||||
memory_mb = 512
|
||||
start_cmd = "npm run dev"
|
||||
dockerfile = "e2b.Dockerfile"
|
||||
template_name = "integration-test-v1"
|
||||
template_id = "2e2z80zhv34yumbrybvn"
|
||||
Reference in New Issue
Block a user