•  Kache   ( @Kache@lemm.ee ) 
    link
    fedilink
    1
    edit-2
    5 hours ago

    I’ve often been able to alias drun='docker compose run --rm --build' and simplify down to:

    drun test
    

    Should be able to encode all those wayward args into docker-compose.yml or Dockerfile and only use vanilla docker commands – that’s the whole point of containerization

    •  Gamma   ( @GammaGames@beehaw.org ) OP
      link
      fedilink
      English
      14 hours ago

      The env file is the weirdest part, the container itself has a required environment variable and if I don’t pass it in command line (only have it in the test compose file) the base compose fails because it has no port.

      Most of the other commands are to merge the compose files so I can keep my base compose file clean!