threefoldtecharchive / jumpscaleX_archived

Apache License 2.0
1 stars 6 forks source link

jumpscale installation #747

Closed rkhamis closed 5 years ago

rkhamis commented 5 years ago

Behavior ON HOST should be:

In the config file, which key to use is specified

note: loading of key in ssh-agent and starting ssh-agent needs to be automatic

Behavior ON CONTAINER: not in container because then SSH -a which means the ssh-key was forwarded

waleedhammam commented 5 years ago

Working on automatic loading ssh-agent with key if available

waleedhammam commented 5 years ago

Change-log: Commit: https://github.com/threefoldtech/jumpscaleX/commit/93a7614c3b1646985de64a736d6e3052ff4d234a, Branch: development_jumpscale

waleedhammam commented 5 years ago

Change-log: Commit: https://github.com/threefoldtech/jumpscaleX/commit/1fe363b21f54cc05a51935eaf336fd15145279cf, Branch: development_jumpscale

waleedhammam commented 5 years ago

Full installation scenario

ssh-agent 1- No ssh-agent loaded      Will load ssh-agent with jsx socket path in {DIR_VAR}/sshagent_socket 2- There's an ssh-agent loaded but invalid socket     Will kill the agent and load new one with the new sockets

ssh-keys 1- No sshkey found in ~/.ssh     This will exit the installer with an error message to have a ssh-key 2- Only 1 ssh-key found     Will load this key and continue installation normally 3- More than ssh-key found      will ask you which one to choose

waleedhammam commented 5 years ago
Pishoy commented 5 years ago

verified all cases in Full installation scenario below are the main steps are repeated on each cases

apt install -y openssh-server locales curl vim git rsync unzip lsb python3 python3-pip
 pip3 install click
curl https://raw.githubusercontent.com/threefoldtech/jumpscaleX/development_jumpscale/install/jsx.py?$RANDOM > /tmp/jsx;
 chmod +x /tmp/jsx;
 /tmp/jsx install