dotnet / tye

Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with minimal configuration.
MIT License
5.28k stars 521 forks source link

tye run with dapr (self host) error: container engine is not installed #1155

Open LGinC opened 3 years ago

LGinC commented 3 years ago

dapr 1.12 self host (dapr init --slim) without docker tye.yml

name: product-blog
extensions:
- name: dapr
services:
- name: product
  project: microservices/ProductService.Host/ProductService.Host.csproj
  bindings:
  - port: 44344
    protocol: https
- name: blogging
  project: microservices/BloggingService.Host/BloggingService.Host.csproj
  bindings:
  - port: 44357
    protocol: https

and run this tye run tye.yml

[16:40:23 ERR] Unable to pull image: container engine is not installed..
Drats! 'run' failed:
        Unable to pull image: container engine is not installed..
LGinC commented 3 years ago

I have a question, how to assign http port of dapr app. dapr run --app-id=product -H 3500 -p 44357 --app-ssl=true -- dotnet run like this

xavidram commented 3 years ago

Based on your current configuration you can do something like this if you need both http and https

name: product-blog
extensions:
- name: dapr
services:
- name: product
  project: microservices/ProductService.Host/ProductService.Host.csproj
  bindings:
    - name: https
      port: 44344
      protocol: https
   -  name: http
      port: 5100
      protocol: http
- name: blogging
  project: microservices/BloggingService.Host/BloggingService.Host.csproj
  bindings:
    - name: https
      port: 44357
      protocol: https
    - name: http
      port: 5200
      protocol: http