alces-software / adminware

A sandbox CLI for running commands remotely across nodes
1 stars 0 forks source link

Allow directories to be `scp` with the config files #49

Open WilliamMcCumstie opened 5 years ago

WilliamMcCumstie commented 5 years ago

Before running the command, the contents of the directory containing config.yaml is scp to a temporary directory on the node. The commands is ran with the temp dir as its working directory.

Currently the following library is being used to preform the scp. It does not however support copying directories. This will either have to be done manually, using local, or maybe operations.

I had a look at using the operations however I couldn't get it to work.

mjtko commented 5 years ago

Fine for MVP, cos we can just use a tarball for now if necessary to deal with copying directory structure (i.e. script untars on the remote side).

DavidMarchant commented 5 years ago

~When this is solved the validation in action preventing config files from having sibling directories will need to be removed~ ~https://github.com/alces-software/adminware/pull/87/files#diff-830c29e01d3cd68bf4ae48a11faee837R53~ Ignore this ^^^