Closed 52funny closed 4 days ago
Yes getting same issue
curl -H "content-type: application/json" -d '{ "sandbox": "go", "command": "run", "files": {"": "package main\nimport \"fmt\"\nfunc main() { fmt.Println(\"Hello, Codapi!\") }" }}' http://localhost:1313/v1/exec
{
"id": "go_run_3834a973",
"ok": false,
"duration": 475,
"stdout": "",
"stderr": "go: creating work dir: mkdir /tmp/go-build71566867: read-only file system (exit status 1)"
}
@52funny @studygyaan1 add "volume": "%s:/sandbox" in boxes.json
@yuetsh thanks! It's working now! I added a configuration field based on you.
In the configs/boxes.json
:
{
"go": {
"image": "codapi/go",
"writable": true,
"volume": "%s:/sandbox:rw"
}
}
Thank you to the author for such a great work, during my use, I found that go would not run and I would get the following error.
This is my go dockerfile
commands/go.json
boxes.json