node-distro/fluence/deploy/entrypoint.sh
Anatoly Laskaris 3c04c06228
Isolate stage, testnet and krasnodar (#37)
* Isolate stage, testnet and krasnodar

* Use one node as bootstrap

* Fix json format

* Setup ssh-agent inside deploy container

Workaround for `Needed to prompt for a connection or sudo password, but input would be ambiguous in parallel mode`

* Add private key of any format

* Cleanup

* List available command by default when no CMD provided

* explain --list

Co-authored-by: folex <0xdxdy@gmail.com>
2022-06-20 16:46:12 +03:00

13 lines
263 B
Bash
Executable File

#! /usr/bin/env sh
if ! [[ -d /root/.ssh ]]; then
echo "Private key at '/root/.ssh' is missing or not readable"
echo "Did you forget to mount .ssh directory with '-v $HOME/.ssh:/root/.ssh:ro'?"
exit 1
fi
eval $(ssh-agent) > /dev/null
ssh-add
exec fab $@