stoobly-agent 1.6.6__py3-none-any.whl → 1.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. stoobly_agent/__init__.py +1 -1
  2. stoobly_agent/app/cli/scaffold/constants.py +1 -0
  3. stoobly_agent/app/cli/scaffold/docker/constants.py +1 -0
  4. stoobly_agent/app/cli/scaffold/docker/service/builder.py +98 -13
  5. stoobly_agent/app/cli/scaffold/docker/service/configure_gateway.py +69 -28
  6. stoobly_agent/app/cli/scaffold/docker/workflow/builder.py +12 -60
  7. stoobly_agent/app/cli/scaffold/service_create_command.py +1 -1
  8. stoobly_agent/app/cli/scaffold/templates/__init__.py +8 -0
  9. stoobly_agent/app/cli/scaffold/templates/app/build/.docker-compose.base.yml +4 -2
  10. stoobly_agent/app/cli/scaffold/templates/app/build/mock/.docker-compose.mock.yml +2 -2
  11. stoobly_agent/app/cli/scaffold/templates/app/build/mock/docker-compose.yml +7 -0
  12. stoobly_agent/app/cli/scaffold/templates/app/build/record/.docker-compose.record.yml +2 -2
  13. stoobly_agent/app/cli/scaffold/templates/app/build/record/docker-compose.yml +7 -0
  14. stoobly_agent/app/cli/scaffold/templates/app/build/test/.docker-compose.test.yml +2 -2
  15. stoobly_agent/app/cli/scaffold/templates/app/build/test/docker-compose.yml +7 -0
  16. stoobly_agent/app/cli/scaffold/templates/app/entrypoint/.docker-compose.base.yml +4 -5
  17. stoobly_agent/app/cli/scaffold/templates/app/entrypoint/mock/.docker-compose.mock.yml +2 -8
  18. stoobly_agent/app/cli/scaffold/templates/app/entrypoint/mock/docker-compose.yml +4 -11
  19. stoobly_agent/app/cli/scaffold/templates/app/entrypoint/record/.docker-compose.record.yml +2 -8
  20. stoobly_agent/app/cli/scaffold/templates/app/entrypoint/record/docker-compose.yml +3 -6
  21. stoobly_agent/app/cli/scaffold/templates/app/entrypoint/test/.docker-compose.test.yml +2 -8
  22. stoobly_agent/app/cli/scaffold/templates/app/entrypoint/test/docker-compose.yml +3 -6
  23. stoobly_agent/app/cli/scaffold/templates/app/gateway/.docker-compose.base.template.yml +1 -1
  24. stoobly_agent/app/cli/scaffold/templates/build/services/build/mock/.init +1 -1
  25. stoobly_agent/app/cli/scaffold/templates/build/services/build/record/.init +1 -1
  26. stoobly_agent/app/cli/scaffold/templates/build/services/build/test/.init +1 -1
  27. stoobly_agent/app/cli/scaffold/templates/build/services/entrypoint/mock/.init +1 -1
  28. stoobly_agent/app/cli/scaffold/templates/build/services/entrypoint/record/.init +1 -1
  29. stoobly_agent/app/cli/scaffold/templates/build/services/entrypoint/test/.init +1 -1
  30. stoobly_agent/app/cli/scaffold/templates/build/workflows/mock/.init +1 -1
  31. stoobly_agent/app/cli/scaffold/templates/build/workflows/record/.init +1 -1
  32. stoobly_agent/app/cli/scaffold/templates/build/workflows/test/.init +1 -1
  33. stoobly_agent/app/cli/scaffold/templates/run/nginx.tmpl +1060 -0
  34. stoobly_agent/app/cli/scaffold/templates/workflow/mock/bin/configure +2 -2
  35. stoobly_agent/app/cli/scaffold/templates/workflow/mock/bin/init +3 -1
  36. stoobly_agent/app/cli/scaffold/templates/workflow/record/bin/configure +4 -4
  37. stoobly_agent/app/cli/scaffold/templates/workflow/record/bin/init +3 -1
  38. stoobly_agent/app/cli/scaffold/templates/workflow/test/bin/configure +2 -2
  39. stoobly_agent/app/cli/scaffold/templates/workflow/test/bin/init +3 -1
  40. stoobly_agent/app/cli/scaffold/workflow_create_command.py +4 -2
  41. stoobly_agent/app/cli/scaffold_cli.py +2 -2
  42. stoobly_agent/config/data_dir.py +5 -4
  43. stoobly_agent/test/app/models/schemas/.stoobly/db/VERSION +1 -1
  44. {stoobly_agent-1.6.6.dist-info → stoobly_agent-1.7.0.dist-info}/METADATA +1 -1
  45. {stoobly_agent-1.6.6.dist-info → stoobly_agent-1.7.0.dist-info}/RECORD +48 -44
  46. {stoobly_agent-1.6.6.dist-info → stoobly_agent-1.7.0.dist-info}/WHEEL +1 -1
  47. {stoobly_agent-1.6.6.dist-info → stoobly_agent-1.7.0.dist-info}/LICENSE +0 -0
  48. {stoobly_agent-1.6.6.dist-info → stoobly_agent-1.7.0.dist-info}/entry_points.txt +0 -0
@@ -1,25 +1,19 @@
1
- networks:
2
- entrypoint:
3
- name: entrypoint
4
1
  services:
5
2
  entrypoint.configure:
6
3
  depends_on:
7
4
  entrypoint.init:
8
5
  condition: service_completed_successfully
9
- environment: {}
10
6
  extends:
11
7
  file: ../.docker-compose.base.yml
12
8
  service: entrypoint.configure_base
13
9
  image: stoobly.${USER_ID}
14
10
  profiles:
15
- - record
11
+ - ${WORKFLOW_NAME}
16
12
  volumes: []
17
13
  entrypoint.init:
18
- environment: {}
19
14
  extends:
20
15
  file: ../.docker-compose.base.yml
21
16
  service: entrypoint.init_base
22
17
  image: stoobly.${USER_ID}
23
18
  profiles:
24
- - record
25
- volumes: {}
19
+ - ${WORKFLOW_NAME}
@@ -1,14 +1,11 @@
1
- # Define networks and services here
1
+ # Define services here
2
2
  #
3
3
  # If a container service needs access to a Stoobly defined service,
4
- # then the container service needs to add the service name to the 'networks' property
5
- # e.g. If we have defined a 'upstream' service, then the following should be added
6
- # networks:
7
- # - upstream
4
+ # then the container service needs to add one of the scaffolded networks to the 'networks' property
5
+ # See https://docs.stoobly.com/core-concepts/scaffold
8
6
  #
9
7
  # Container services that are intended to be run as part of a workflow need to have the workflow name added to the 'profiles' property
10
8
  # e.g. If we want to run a service as part of the 'record' workflow, then the following should be added
11
9
  # profiles:
12
10
  # - record
13
- networks: {}
14
11
  services: {}
@@ -1,25 +1,19 @@
1
- networks:
2
- entrypoint:
3
- name: entrypoint
4
1
  services:
5
2
  entrypoint.configure:
6
3
  depends_on:
7
4
  entrypoint.init:
8
5
  condition: service_completed_successfully
9
- environment: {}
10
6
  extends:
11
7
  file: ../.docker-compose.base.yml
12
8
  service: entrypoint.configure_base
13
9
  image: stoobly.${USER_ID}
14
10
  profiles:
15
- - test
11
+ - ${WORKFLOW_NAME}
16
12
  volumes: []
17
13
  entrypoint.init:
18
- environment: {}
19
14
  extends:
20
15
  file: ../.docker-compose.base.yml
21
16
  service: entrypoint.init_base
22
17
  image: stoobly.${USER_ID}
23
18
  profiles:
24
- - test
25
- volumes: {}
19
+ - ${WORKFLOW_NAME}
@@ -1,14 +1,11 @@
1
- # Define networks and services here
1
+ # Define services here
2
2
  #
3
3
  # If a container service needs access to a Stoobly defined service,
4
- # then the container service needs to add the service name to the 'networks' property
5
- # e.g. If we have defined a 'upstream' service, then the following should be added
6
- # networks:
7
- # - upstream
4
+ # then the container service needs to add one of the scaffolded networks to the 'networks' property
5
+ # See https://docs.stoobly.com/core-concepts/scaffold
8
6
  #
9
7
  # Container services that are intended to be run as part of a workflow need to have the workflow name added to the 'profiles' property
10
8
  # e.g. If we want to run a service as part of the 'test' workflow, then the following should be added
11
9
  # profiles:
12
10
  # - test
13
- networks: {}
14
11
  services: {}
@@ -2,7 +2,7 @@ services:
2
2
  gateway_base:
3
3
  environment:
4
4
  TRUST_DOWNSTREAM_PROXY: true
5
- image: nginxproxy/nginx-proxy:1.5
5
+ image: nginxproxy/nginx-proxy:1.7
6
6
  profiles:
7
7
  - gateway_base
8
8
  volumes:
@@ -8,5 +8,5 @@ stoobly-agent snapshot apply
8
8
  entrypoint=$1
9
9
 
10
10
  if [ -e "$entrypoint" ]; then
11
- "$entrypoint"
11
+ "$entrypoint" /app
12
12
  fi
@@ -8,5 +8,5 @@ stoobly-agent snapshot apply
8
8
  entrypoint=$1
9
9
 
10
10
  if [ -e "$entrypoint" ]; then
11
- "$entrypoint"
11
+ "$entrypoint" /app
12
12
  fi
@@ -8,5 +8,5 @@ stoobly-agent snapshot apply
8
8
  entrypoint=$1
9
9
 
10
10
  if [ -e "$entrypoint" ]; then
11
- "$entrypoint"
11
+ "$entrypoint" /app
12
12
  fi
@@ -6,5 +6,5 @@
6
6
  entrypoint=$1
7
7
 
8
8
  if [ -e "$entrypoint" ]; then
9
- "$entrypoint"
9
+ "$entrypoint" /app
10
10
  fi
@@ -6,5 +6,5 @@
6
6
  entrypoint=$1
7
7
 
8
8
  if [ -e "$entrypoint" ]; then
9
- "$entrypoint"
9
+ "$entrypoint" /app
10
10
  fi
@@ -6,5 +6,5 @@
6
6
  entrypoint=$1
7
7
 
8
8
  if [ -e "$entrypoint" ]; then
9
- "$entrypoint"
9
+ "$entrypoint" /app
10
10
  fi
@@ -9,5 +9,5 @@ fi
9
9
 
10
10
  entrypoint=$1
11
11
  if [ -e "$entrypoint" ]; then
12
- "$entrypoint"
12
+ "$entrypoint" /app
13
13
  fi
@@ -9,5 +9,5 @@ fi
9
9
 
10
10
  entrypoint=$1
11
11
  if [ -e "$entrypoint" ]; then
12
- "$entrypoint"
12
+ "$entrypoint" /app
13
13
  fi
@@ -9,5 +9,5 @@ fi
9
9
 
10
10
  entrypoint=$1
11
11
  if [ -e "$entrypoint" ]; then
12
- "$entrypoint"
12
+ "$entrypoint" /app
13
13
  fi