You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# yaml-language-server: $schema=https://raw.githubusercontent.com/Ensono/taskctl/refs/heads/master/schemas/schema_v1.jsoncontexts:
nouveau:container:
container:
name: alpine:latest# shell: "" # shell_args:# - ""# container_args:# - ""# entrypoint: ""enable_dind: false# the executable property will not be removed# as it's handy for a lot of other use cases## It will however remove all the env-file injection and so onold:container:
executable:
bin: dockerargs:
- run
- --rm
- -v $PWD:/app
- -w /app
- alpine:latest
- sh
- -ctasks:
run:docker:mvdn:
command:
- docker run --rm -v $PWD:/app -w /app alpine:latest sh -c "pwd && ls -lat ."run:container:nouveau:
context: nouveau:containercommand:
- pwd
- ls -lat .run:container:old:
context: old:containercommand:
- pwd
- ls -lat .
The above example shows the current way to do the same thing 3 different ways, by making containers first class citizens, we have introduced context.container property group. But have left a lot of workaround code in there to ensure things work with containers in all 3 ways.
This issue is about keeping all 3 ways but removing any container specific code from the other 2 and only context.container to include any special handling of container executions - it will also not run in the mvdn shell but use directly the moby client API
Taking the example below
The above example shows the current way to do the same thing 3 different ways, by making containers first class citizens, we have introduced
context.containerproperty group. But have left a lot of workaround code in there to ensure things work with containers in all 3 ways.This issue is about keeping all 3 ways but removing any container specific code from the other 2 and only
context.containerto include any special handling of container executions - it will also not run in the mvdn shell but use directly the moby client API