docker_config.json 713 B

1234567891011121314151617181920
  1. {
  2. "timeout": 30,
  3. "docker_base": "run -i --cpus=1 -m=512M --rm --network none -v {Analysis_Dir}:/usr/src/myapp/so -v {tmp_file}:/usr/src/myapp/{runner_filename} -w /usr/src/myapp {image} sh -c",
  4. "docker_runner": {
  5. "Goland": {
  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. "C": {
  13. "ext": "go",
  14. "filename": "main.go",
  15. "image": "yunlot-golang:v1.5",
  16. "cmd": "/usr/local/go/bin/./go run main.go",
  17. "build": "/usr/local/go/bin/./go build -buildmode=plugin -o so/{name}.so main.go"
  18. }
  19. }
  20. }