curl -X GET http://huahaohuahua.ddns.net:3009/api-keys -H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDk4NjQxMTUsImlhdCI6MTc0OTg2MDUxNSwic3ViIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0.hyn12yqQVxRRFB9NKBRlPqpJegZxnOYMZjzyJSTSZMU”
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDk4NjQxMTUsImlhdCI6MTc0OTg2MDUxNSwic3ViIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0.hyn12yqQVxRRFB9NKBRlPqpJegZxnOYMZjzyJSTSZMU
curl -v -X POST http://huahaohuahua.ddns.net:3009/access-tokens
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDk5NjMwMzgsImlhdCI6MTc0OTk1OTQzOCwic3ViIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0.trMP4UEuVB8s0EchO4HcTCnaCZ5IOta5HJzC0CQmeFw”
-H “X-Supabase-Team: bbbb1111-2222-3333-4444-555566667777”
curl -v -X GET http://huahaohuahua.ddns.net:3009/sandboxes
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDk4NjQxMTUsImlhdCI6MTc0OTg2MDUxNSwic3ViIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0.hyn12yqQVxRRFB9NKBRlPqpJegZxnOYMZjzyJSTSZMU”
-H “X-Supabase-Team: bbbb1111-2222-3333-4444-555566667777”
curl -X POST http://huahaohuahua.ddns.net:3009/sandboxes
-H “Content-Type: application/json”
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDk4OTA5MDMsImlhdCI6MTc0OTg4NzMwMywic3ViIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0.CZiHdzCxBV0Y__yCfnqxuF83-c74s3cux_kFnofWRtA”
-H “X-Supabase-Team: bbbb1111-2222-3333-4444-555566667777”
-d ‘{
“nodeID”: “testclient”,
“templateID”: “1234”,
“buildID”: “123”
}’
go run main.go -template=test123 -build=build001 -kernel=vmlinux -firecracker=v1.5.2
ALTER TABLE user_teams ADD COLUMN is_default BOOLEAN DEFAULT FALSE;
curl -X POST http://huahaohuahua.ddns.net:3009/sandboxes
-H “Content-Type: application/json”
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDk5Njc0NDMsImlhdCI6MTc0OTk2Mzg0Mywic3ViIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0.R4NgSty1SenSAvbBeOD-hybX_YZLYQmSBW7Zt6rXLWs”
-H “X-Supabase-Team: bbbb1111-2222-3333-4444-555566667777”
-d ‘{
“templateID”: “2j0baodzedvm7cnawozf”,
“timeout”: 300
}’
https://github.com/fastapi/full-stack-fastapi-template
POST /templates/
curl -X POST http://huahaohuahua.ddns.net:3009/access-tokens
-H “Content-Type: application/json”
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTAxNTIxODUsImlhdCI6MTc1MDE0ODU4NSwic3ViIjoiYzkxYjBiMjctMDE3Yi00MzA4LTg0YzAtMDczYTkzZTE1NTJiIn0.MlVp_pGT6qfEshbND_xm49EC7aeEY9BOaKDphhvJ-rg”
-H “X-Supabase-Team: bbbb1111-2222-3333-4444-555566667777”
-H “Authorization: Bearer sk_e2b_xxxxxxxxxxxxxxxxxxxxxxxxx”
-d ‘{
“name”: “test”,
“repository”: {
“url”: “https://github.com/itamiokanjiro/testa.git“,
“ref”: “main”
},
“dockerfile”: “Dockerfile”
}’
curl -X POST http://192.168.1.110:3009/templates
-H “Content-Type: application/json”
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTAyNDc3OTMsImlhdCI6MTc1MDI0NDE5Mywic3ViIjoiYzkxYjBiMjctMDE3Yi00MzA4LTg0YzAtMDczYTkzZTE1NTJiIn0.17AnFPrgj3LPQ2dM0l-lTjNfpL227zMZAoEbiSGI4ts”
-H “X-Supabase-Team: 7b878a9d-3dde-48a1-8913-31888d69dd78”
-H “Authorization: Bearer sk_e2b_e12df59cc6206a3923a49a477a5db34b9685a98a”
-d ‘{
“dockerfile”: “Dockerfile”,
“ReadyCmd”:”ReadyCmd”,
“StartCmd”:”/bin/true”,
“envd_version”:”0.1.1”
}’
curl -X POST http://192.168.1.110:3009/templates/igb3c4m2k9m1wp7xv7i5
-H “Content-Type: application/json”
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTAxNTIxODUsImlhdCI6MTc1MDE0ODU4NSwic3ViIjoiYzkxYjBiMjctMDE3Yi00MzA4LTg0YzAtMDczYTkzZTE1NTJiIn0.MlVp_pGT6qfEshbND_xm49EC7aeEY9BOaKDphhvJ-rg”
-H “X-Supabase-Team: 7b878a9d-3dde-48a1-8913-31888d69dd78”
-H “Authorization: Bearer sk_e2b_e12df59cc6206a3923a49a477a5db34b9685a98a”
-d ‘{
“dockerfile”: “Dockerfile”,
“ReadyCmd”:”ReadyCmd”,
“StartCmd”:”/usr/bin/init”
“envd_version”:”0.1.1”
}’
curl -X POST http://192.168.1.110:3009/templates/53sh4s31wcqrtwyojvvd/builds/c34a9cc8-aa4c-4995-848b-aa82ec99aa4e
-H “Content-Type: application/json”
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTAyNDc3OTMsImlhdCI6MTc1MDI0NDE5Mywic3ViIjoiYzkxYjBiMjctMDE3Yi00MzA4LTg0YzAtMDczYTkzZTE1NTJiIn0.17AnFPrgj3LPQ2dM0l-lTjNfpL227zMZAoEbiSGI4ts”
-H “X-Supabase-Team: 7b878a9d-3dde-48a1-8913-31888d69dd78”
-H “Authorization: Bearer sk_e2b_e12df59cc6206a3923a49a477a5db34b9685a98a”
docker build -t 53sh4s31wcqrtwyojvvd:c34a9cc8-aa4c-4995-848b-aa82ec99aa4e .
curl -X POST http://huahaohuahua.ddns.net:3009/sandboxes
-H “Content-Type: application/json”
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTAxNTIxODUsImlhdCI6MTc1MDE0ODU4NSwic3ViIjoiYzkxYjBiMjctMDE3Yi00MzA4LTg0YzAtMDczYTkzZTE1NTJiIn0.MlVp_pGT6qfEshbND_xm49EC7aeEY9BOaKDphhvJ-rg”
-H “X-Supabase-Team: 0bc40163-a5e1-4dd6-9226-9ae4f99f1e63”
-H “Authorization: Bearer sk_e2b_e3494ed74155fbd6c0d7282bdbed3cb2d2cadc60”
-d ‘{
“name”: “test”
}’
curl -v -X GET http://huahaohuahua.ddns.net:3009/templates
-H “X-Supabase-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDk5ODI0NTAsImlhdCI6MTc0OTk3ODg1MCwic3ViIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0.kgrt6iGbBn67iZDGEEFO5j_Lq4CU88begR3ojLitaCY”
-H “X-Supabase-Team: bbbb1111-2222-3333-4444-555566667777”
-H “X-API-Key: e2b_6e052be677b8735b069aed2ab9c190499c4a180e”
-H “Authorization: Bearer sk_e2b_xxxxxxxxxxxxxxxxxxxxxxxxx”
docker –version
docker compose version
docker ps -a