Docker support to wharf-cmd-worker #25
Labels
c/worker
Component: wharf-cmd-worker
enhancement
New feature or request
prio/1
Low priority. "Nice to have"
Milestone
Requirements
Ability to copy repository into new temporary directory, one copy per build step.
Ability to generate build ID. Needs to not collide with previous build IDs via
~/.local/share/wharf/wharf-cmd/last-build-id.txt
/%APPDATA%/wharf/wharf-cmd/last-build-id.txt
file with simple file-based locking.Ability to create a new Docker container per build step containing:
app=wharf-cmd-worker-step
wharf.iver.com/managed-by=wharf-cmd
wharf.iver.com/instance=local
wharf.iver.com/build-ref=123
wharf.iver.com/project-id=456
wharf.iver.com/stage-id=789
wharf.iver.com/step-id=789
Ability to list Docker containers for containers with labels:
wharf.iver.com/managed-by=wharf-cmd
wharf.iver.com/instance=local
wharf.iver.com/build-ref=*
Ability to delete Docker containers based on their ID, and error if they don't have the following labels:
wharf.iver.com/managed-by=wharf-cmd
wharf.iver.com/instance=local
wharf.iver.com/build-ref=*
All this by communicating via the Docker socket: https://docs.docker.com/engine/reference/commandline/dockerd/#bind-docker-to-another-hostport-or-a-unix-socket (and not by using the
docker
CLI)unix:///var/run/docker.sock
on Linuxtcp://127.0.0.1:2376
on WindowsDOCKER_HOST
environment variableChange step types to create Docker containers with the correct image and commands.
Out of scope (don't focus on this yet)
The text was updated successfully, but these errors were encountered: