atomicapp icon indicating copy to clipboard operation
atomicapp copied to clipboard

Cant use answers.conf with aggregated library, what?

Open cdrage opened this issue 9 years ago • 4 comments

~                                                                                                                                                                                                                                                       [2/513]
▶ atomicapp fetch projectatomic/wordpress-centos7-atomicapp --destination test  
[INFO] - main.py - Action/Mode Selected is: fetch
[INFO] - base.py - Unpacking image: projectatomic/wordpress-centos7-atomicapp to test
[INFO] - container.py - Skipping pulling Docker image: projectatomic/wordpress-centos7-atomicapp
[INFO] - container.py - Extracting nulecule data from image: projectatomic/wordpress-centos7-atomicapp to test
cb2a1eda710e54234261adfab466712708a5cdbe81d0550f9a2433890d622724
[INFO] - base.py - Pulling external application for mariadb-centos7-atomicapp.
[INFO] - base.py - Unpacking image: projectatomic/mariadb-centos7-atomicapp to test/external/mariadb-centos7-atomicapp
[INFO] - container.py - Skipping pulling Docker image: projectatomic/mariadb-centos7-atomicapp
[INFO] - container.py - Extracting nulecule data from image: projectatomic/mariadb-centos7-atomicapp to test/external/mariadb-centos7-atomicapp
cd3e67445c516e6508626cb26a60d73ee32cb4e2e9dc7c6df042160ceb7ff86e

Your application resides in test
Please use this directory for managing your application


~                                                                                                                                                                                                                                                             
▶ cd test

~/test                                                                                                                                                                                                                                                        
▶ cp answers.conf.sample answers.conf

~/test                                                                                                                                                                                                                                                        
▶ atomicapp run -v .
1459526968 - [INFO] - cli/main.py - Action/Mode Selected is: run
1459526968 - [DEBUG] - cli/main.py - Final parsed cmdline: run -v .
1459526968 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: .
1459526968 - [DEBUG] - nulecule/main.py - NuleculeManager init image: None
1459526968 - [DEBUG] - atomicapp/utils.py - Loading answers from file: ./answers.conf
1459526968 - [DEBUG] - nulecule/main.py - Request to unpack to None to .
1459526968 - [DEBUG] - atomicapp/plugin.py - Loading providers from /usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers
1459526968 - [DEBUG] - atomicapp/plugin.py - Loading providers from /usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers
1459526968 - [INFO] - nulecule/base.py - Found existing external application for mariadb-centos7-atomicapp. Loading it.
1459526968 - [DEBUG] - atomicapp/plugin.py - Loading providers from /usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers
1459526968 - [DEBUG] - atomicapp/plugin.py - Loading providers from /usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers
1459526968 - [DEBUG] - atomicapp/plugin.py - Loading providers from /usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers
1459526968 - [DEBUG] - atomicapp/plugin.py - Loading providers from /usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers
==> db_user (Database User): 

cdrage avatar Apr 01 '16 16:04 cdrage

I don't really understand your problem. The sample answers.conf for wordpress doesn't have default values for all parameters so of course it will prompt. Did you actually populate the answers.conf file with answers?

dustymabe avatar Apr 01 '16 16:04 dustymabe

@cdrage can you close this if there is no issue?

dustymabe avatar Apr 12 '16 16:04 dustymabe

After

$ cp answers.conf.sample answers.conf

I edited the answers.conf which looked like this

$ cat answers.conf 
[mariadb-centos7-atomicapp]
provider = kubernetes
[wordpress]
image = wordpress
db_pass = None
db_name = None
db_user = None
db_host = mariadb:3306
port = 8080
[mariadb-atomicapp]
db_pass = None
db_name = None
db_user = None
root_pass = MySQLPass
[general]
namespace = default
provider = kubernetes

to

$ cat answers.conf
[mariadb-centos7-atomicapp]
provider = kubernetes
[wordpress]
image = wordpress
db_pass = q
db_name = q
db_user = q
db_host = mariadb:3306
port = 8080
[mariadb-atomicapp]
db_pass = q
db_name = q
db_user = q
root_pass = MySQLPass
[general]
namespace = default
provider = kubernetes

Since these values are by default set to None it is asking you the questions!

surajssd avatar Apr 22 '16 06:04 surajssd

Hmmm. So the bug is the fact that it's set to "None". What if the user wants to genuinely use the value "None"?

cdrage avatar Apr 22 '16 13:04 cdrage