threefoldtecharchive / jumpscaleX_archived

Apache License 2.0
1 stars 6 forks source link

Install jsx with no-interactive option doesn't work #606

Closed AhmedHanafy725 closed 5 years ago

AhmedHanafy725 commented 5 years ago
root@52167d0ab9fc:/sandbox/code/github/threefoldtech/jumpscaleX/install# python3 jsx.py configure --no-interactive -s test
development
root@52167d0ab9fc:/sandbox/code/github/threefoldtech/jumpscaleX/install# python3 jsx.py install --no_sshagent
development
Is it ok to continue without SSH-Agent, are you sure?
It's recommended to have a SSH key as used on github loaded in your ssh-agent
If the SSH key is not found, repositories will be cloned using https

if you never used an ssh-agent or github, just say "y"

OK to continue?
make your choice (y,n):

In config file INTERACTIVE = true

root@52167d0ab9fc:/sandbox/code/github/threefoldtech/jumpscaleX/install# cat /sandbox/cfg/jumpscale_config.toml 
DIR_CFG = '/sandbox/cfg'
DIR_BASE = '/sandbox'
DIR_HOME = '/root'
USEGIT = true
READONLY = false
DEBUG = false
INTERACTIVE = true
SECRET = '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'
SSH_AGENT = true
SSH_KEY_DEFAULT = ''
LOGGER_INCLUDE = ['*']
LOGGER_EXCLUDE = ['sal.fs']
LOGGER_LEVEL = 15
LOGGER_CONSOLE = true
LOGGER_REDIS = false
DIR_TEMP = '/tmp/jumpscale'
DIR_VAR = '/sandbox/var'
DIR_CODE = '/sandbox/code'
DIR_BIN = '/sandbox/bin'
DIR_APPS = '/sandbox/apps'

Even if I change it manually in config file, it still asks the same question.

despiegk commented 5 years ago

is this still relevant?

AhmedHanafy725 commented 5 years ago

yes, it's needed to automate the installation.

rkhamis commented 5 years ago

@mdeecode are you working on this or should we re-assign?

mdeecode commented 5 years ago

@rkhamis I had a fix; I'll need to test if it still works then I'll do a PR.

waleedhammam commented 5 years ago

fixed at branch development_jumpscale commits: https://github.com/threefoldtech/jumpscaleX/commit/bf54d2866a2dc45d834f972522e90a3cbbd38cd6, https://github.com/threefoldtech/jumpscaleX/commit/20d6da76eb3a6288a4ae43253d463f3e8e8f3ed0 steps:


> curl https://raw.githubusercontent.com/threefoldtech/jumpscaleX/development_jumpscale/install/jsx.py?$RANDOM > /tmp/jsx
> chmod +x /tmp/jsx
> eval `ssh-agent -s`;
> ssh-keygen;
> ssh-add;
> /tmp/jsx configure --no_interactive -s mysecret;
> /tmp/jsx container_install --no_interactive;
waleedhammam commented 5 years ago

for now it's working for container-install will check insystem

waleedhammam commented 5 years ago

fixed no-interactive insystem at: https://github.com/threefoldtech/jumpscaleX/commit/5fabed0b695b1036885527b58797abe42592edf1 branch development_jumpspcale steps

> curl https://raw.githubusercontent.com/threefoldtech/jumpscaleX/development_jumpscale/install/jsx.py?$RANDOM > /tmp/jsx
> chmod +x /tmp/jsx
> /tmp/jsx configure --no_interactive -s mysecret;
> /tmp/jsx install --no_interactive;
Pishoy commented 5 years ago

verified

3BOTDEVEL:3bot:~: cd /sandbox/code/github/threefoldtech/jumpscaleX/
3BOTDEVEL:3bot:jumpscaleX: git log -1
commit ebfe540ed33e8f5f95e3eb5a4f4daae727d83842 (grafted, HEAD -> development_jumpscale, origin/development_jumpscale)
Author: Waleed Hammam <waleed.hammam@gmail.com>
Date:   Tue Jul 23 15:23:15 2019 +0200

    Merge branch 'development_jumpscale' of github.com:threefoldtech/jumpscaleX into development_jumpscale