okteto icon indicating copy to clipboard operation
okteto copied to clipboard

Fail with a clearer error when docker compose doesn't have dev section

Open jLopezbarb opened this issue 3 years ago • 0 comments

Describe the bug If I run okteto up on a repo with a docker compose and the inferred okteto manifest (docker-compose is transformed into a okteto manifest) doesn't have any dev section (only services with local volumes are transformed into devs) we fail with an unclear error

To Reproduce Steps to reproduce the behavior:

  1. Copy the following docker-compose
services:
  web:
    image: alpine
    ports:
    - 8080

  1. Run okteto deploy
  2. Run okteto up web
  3. See warning indicating that there isn't any dev configured
  4. Type n when asked if you want to configure
  5. See error indicating that no manifest has no dev section

Expected behavior A clear and concise error on why I can't run okteto up from my docker-compose file

Desktop (please complete the following information):

  • Version 2.4.1

Additional context Captura de pantalla 2022-07-01 a las 9 50 57

jLopezbarb avatar Jul 01 '22 07:07 jLopezbarb