config.hcl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Id = 12245
  2. Listen = "tcp:localhost:12345"
  3. As = "tcp:10.0.0.1:12345"
  4. Command = "unix:/tmp/bdjncl"
  5. Peers {
  6. As = "tcp:localhost:12346"
  7. Skills {
  8. Name = "test"
  9. Inputs {
  10. Name = "video"
  11. Mime = "application/mod"
  12. }
  13. Outputs {
  14. Name = "result"
  15. Mime = "application/json"
  16. }
  17. }
  18. }
  19. Peers {
  20. As = "tcp:localhost:12347"
  21. Skills {
  22. Name = "test"
  23. Inputs {
  24. Name = "video"
  25. Mime = "application/mod"
  26. }
  27. Outputs {
  28. Name = "result"
  29. Mime = "application/json"
  30. }
  31. }
  32. }
  33. Jobs {
  34. Name = "test"
  35. Inputs {
  36. Name = "video"
  37. Mime = "application/mod"
  38. }
  39. Outputs {
  40. Name = "result"
  41. Mime = "application/json"
  42. }
  43. Step {
  44. Type = "s3-download"
  45. Cmd = "\"$input_video\""
  46. }
  47. Step {
  48. Type = "sh"
  49. Cmd = "/bin/echo \"$input_video\" \"$output_result\""
  50. }
  51. }
  52. Jobs {
  53. Name = "test2"
  54. Inputs {
  55. Name = "video"
  56. Mime = "application/mod"
  57. }
  58. Outputs {
  59. Name = "result"
  60. Mime = "application/json"
  61. }
  62. Step {
  63. Type = "sh"
  64. Cmd = "/bin/echo \"$input_video\" \"$output_result\""
  65. }
  66. Step {
  67. Type = "s3-download"
  68. Cmd = "\"$input_video\""
  69. }
  70. }
  71. States {
  72. Name = "test"
  73. Kind = "running"
  74. Order = 1
  75. }