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 520 forks source link

No Tye equivalent for the command property in a docker file #446

Open amarie401 opened 4 years ago

amarie401 commented 4 years ago

Describe the bug

Tye does not currently support the command property.

services:
  config:
    image: "steeltoeoss/configserver:1.3.2"
    command: --spring.profiles.active=native --spring.cloud.config.server.native.searchLocations=/config
    volumes:
      - type: bind
        source: ./src/config
        target: /config
    ports:
      - "8888:8888"

To Reproduce

I am looking for the equivalent of command in a docker file.

davidfowl commented 4 years ago

There is, it's called args.

rynowak commented 4 years ago

args appends to the entrypoint, command replaces it. Docker is complicated 😆

davidfowl commented 4 years ago

Errrr

rynowak commented 4 years ago

I guess the real answer is that it depends how the dockerfile was authored. Fun.

https://docs.docker.com/engine/reference/run/#overriding-dockerfile-image-defaults