docker_config.json 480 B

12345678910111213
  1. {
  2. "timeout": 30,
  3. "docker_base": "run -i --cpus=1 -m=512M --rm --network none --mount source=yunlotso,target=/usr/src/myapp/so -v {tmp_file}:/usr/src/myapp/{runner_filename} -w /usr/src/myapp {image} sh -c",
  4. "docker_runner": {
  5. "go": {
  6. "ext": "go",
  7. "filename": "main.go",
  8. "image": "yunlot-golang:v1.5",
  9. "cmd": "/usr/local/go/bin/./go run main.go",
  10. "build": "/usr/local/go/bin/./go build -buildmode=plugin -o so/{name}.so main.go"
  11. }
  12. }
  13. }