Skip to content

Instantly share code, notes, and snippets.

@g0t4
Created December 5, 2023 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g0t4/1e8758cbc9951e0d0d3a0762669aa842 to your computer and use it in GitHub Desktop.
Save g0t4/1e8758cbc9951e0d0d3a0762669aa842 to your computer and use it in GitHub Desktop.
`docker compose watch` ideas

actions

  • Globs for action.path
    • i.e. path: *.csproj, path: foo|bar|baz, path: *.txt|*.ini
  • Allow watch files that are .dockerignored => i.e. Dockerfile|compose.yaml => trigger rebuild action
    • currently .dockerignored files are ignored for watching even if explicitly set in action.path
    • .dockerignore is historically focused on building images, seems like compose watch needs to be able to override at a minimum?
  • recreate action type w.r.t. the entire watch process
    • i.e. edit compose.yaml/Dockerfile/*.env => trigger reload of entire docker compose watch

misc

  • Allow attach to STDIN as is being added with docker compose attach so can send input to running process inside a container
    • i.e. mashup of docker compose watch and dotnet watch that I've been contemplating
      • send Ctrl+R to restart containerized dotnet process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment