experiments/task_dispatch_service/{{destination_path}}/{{component_name}}/skaffold.yaml [1:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: skaffold/v4beta1
kind: Config
metadata:
  name: {{component_name}}

{% if depend_on_common == true -%}
# Requires the common image for shared data models or utils.
requires:
- configs:
  - common
  path: ../common
{%- endif %}

build:
  artifacts:
  - image: {{resource_name}}
    sync:
      infer:
      - '**/*.py'
      - '**/*.json'
    docker:
      cacheFrom:
      - {{resource_name}}
      - {{resource_name}}:latest

    {% if depend_on_common == true -%}
    requires:
    - image: common
      alias: COMMON_IMAGE
    {%- endif %}
  googleCloudBuild: {}

# Portforwarding when running `skaffold dev` locally.
portForward:
- resourceType: service
  resourceName: {{resource_name}}
  port: 80
  localPort: 9001 # Change this when adding other microservice.

profiles:
# Profile for building images locally.
- name: local_build
  build:
    artifacts:
    - image: {{resource_name}}
      {% if depend_on_common == true -%}
      requires:
      - image: common
        alias: COMMON_IMAGE
      {%- endif %}
      sync:
        infer:
        - '**/*.py'
        - '**/*.json'
    tagPolicy:
      gitCommit: {}
    local:
      concurrency: 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



solutions_builder/modules/streamlit_app/{{destination_path}}/{{component_name}}/skaffold.yaml [1:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: skaffold/v4beta1
kind: Config
metadata:
  name: {{component_name}}

{% if depend_on_common == true -%}
# Requires the common image for shared data models or utils.
requires:
- configs:
  - common
  path: ../common
{%- endif %}

build:
  artifacts:
  - image: {{resource_name}}
    sync:
      infer:
      - '**/*.py'
      - '**/*.json'
    docker:
      cacheFrom:
      - {{resource_name}}
      - {{resource_name}}:latest

    {% if depend_on_common == true -%}
    requires:
    - image: common
      alias: COMMON_IMAGE
    {%- endif %}
  googleCloudBuild: {}

# Portforwarding when running `skaffold dev` locally.
portForward:
- resourceType: service
  resourceName: {{resource_name}}
  port: 80
  localPort: 9001 # Change this when adding other microservice.

profiles:
# Profile for building images locally.
- name: local_build
  build:
    artifacts:
    - image: {{resource_name}}
      {% if depend_on_common == true -%}
      requires:
      - image: common
        alias: COMMON_IMAGE
      {%- endif %}
      sync:
        infer:
        - '**/*.py'
        - '**/*.json'
    tagPolicy:
      gitCommit: {}
    local:
      concurrency: 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



