Last active
September 27, 2016 15:08
-
-
Save jwmatthews/4bd374163c462fb964a09281f5eb6bb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@cap etherpad-centos7-atomicapp]$ cat ./answers.conf | |
[etherpad-app] | |
image = centos/etherpad | |
db_port = 3306 | |
db_pass = sample_pass | |
db_name = sample_name | |
db_user = sample_user | |
db_host = mariadb | |
hostport = 9001 | |
[mariadb-atomicapp] | |
db_pass = sample_pass | |
image = centos/mariadb | |
db_user = sample_user | |
root_pass = MySQLPass | |
db_name = sample_name | |
[general] | |
namespace = cap | |
provider = openshift | |
provider-config = /home/vagrant/.kube/config | |
# Running atomicapp from github with the 0.6.3 tag | |
$ time sudo atomicapp run . -v | |
INFO :: - cli/main.py :: Atomic App: 0.6.3 - Mode: Run | |
DEBUG :: - cli/main.py :: Final parsed cmdline: run . -v | |
DEBUG :: - nulecule/main.py :: NuleculeManager init app_path: . | |
DEBUG :: - nulecule/main.py :: NuleculeManager init image: None | |
DEBUG :: - utils.py :: Loading answers from file: ./answers.conf | |
DEBUG :: - nulecule/main.py :: Request to unpack to None to . | |
INFO :: - nulecule/base.py :: Found existing external application: mariadb-centos7-atomicapp Loading: | |
DEBUG :: - providers/openshift.py :: Given config: {u'root_pass': u'MySQLPass', u'provider-config': u'/home/vagrant/.kube/config', u'image': u'centos/mariadb', u'namespace': u'cap', u'db_pass': u'sample_pass', u'db_name': u'sample_name', u'db_user': u'sample_user', u'provider': u'openshift'} | |
INFO :: - providers/openshift.py :: Using namespace cap | |
DEBUG :: - providers/openshift.py :: Processing artifact: artifacts/kubernetes/.mariadb-pod.yaml | |
DEBUG :: - providers/openshift.py :: Processing artifact: artifacts/kubernetes/.mariadb-service.yaml | |
DEBUG :: - utils.py :: Finding the users home directory | |
DEBUG :: - utils.py :: Running as user vagrant. Using home directory /home/vagrant for configuration data | |
DEBUG :: - providers/openshift.py :: Provider configuration provided | |
DEBUG :: - providers/lib/kubeshift/kubebase.py :: Verification will be required for all API calls | |
DEBUG :: - providers/lib/kubeshift/kubebase.py :: Connection successfully tested on URL https://127.0.0.1:8443/api/v1/ | |
DEBUG :: - providers/lib/kubeshift/kubebase.py :: Connection successfully tested on URL https://127.0.0.1:8443/oapi/v1/ | |
DEBUG :: - providers/lib/kubeshift/client.py :: Using OpenShift Provider KubeClient library | |
DEBUG :: - providers/openshift.py :: There are currently 2 namespaces in the cluster. | |
DEBUG :: - providers/openshift.py :: Namespaces: [u'cap', u'sample-project'] | |
INFO :: - providers/openshift.py :: Deploying to OpenShift | |
INFO :: - providers/lib/kubeshift/openshift.py :: Pods 'mariadb' successfully created | |
INFO :: - providers/lib/kubeshift/openshift.py :: Services 'mariadb' successfully created | |
DEBUG :: - providers/openshift.py :: Given config: {u'provider-config': u'/home/vagrant/.kube/config', u'image': u'centos/etherpad', u'hostport': 9001, u'namespace': u'cap', u'db_port': 3306, u'db_pass': u'sample_pass', u'db_name': u'sample_name', u'db_user': u'sample_user', u'db_host': u'mariadb', u'provider': u'openshift'} | |
INFO :: - providers/openshift.py :: Using namespace cap | |
DEBUG :: - providers/openshift.py :: Processing artifact: artifacts/openshift/.etherpad-rc.yaml | |
DEBUG :: - providers/openshift.py :: Processing artifact: artifacts/openshift/.etherpad-svc.yaml | |
DEBUG :: - utils.py :: Finding the users home directory | |
DEBUG :: - utils.py :: Running as user vagrant. Using home directory /home/vagrant for configuration data | |
DEBUG :: - providers/openshift.py :: Provider configuration provided | |
DEBUG :: - providers/lib/kubeshift/kubebase.py :: Verification will be required for all API calls | |
DEBUG :: - providers/lib/kubeshift/kubebase.py :: Connection successfully tested on URL https://127.0.0.1:8443/api/v1/ | |
DEBUG :: - providers/lib/kubeshift/kubebase.py :: Connection successfully tested on URL https://127.0.0.1:8443/oapi/v1/ | |
DEBUG :: - providers/lib/kubeshift/client.py :: Using OpenShift Provider KubeClient library | |
DEBUG :: - providers/openshift.py :: There are currently 2 namespaces in the cluster. | |
DEBUG :: - providers/openshift.py :: Namespaces: [u'cap', u'sample-project'] | |
INFO :: - providers/openshift.py :: Deploying to OpenShift | |
INFO :: - providers/lib/kubeshift/openshift.py :: Services 'etherpad-svc' successfully created | |
INFO :: - providers/lib/kubeshift/openshift.py :: Replicationcontrollers 'etherpad' successfully created | |
DEBUG :: - nulecule/main.py :: Writing answers to file. | |
DEBUG :: - nulecule/main.py :: FILE: ./answers.conf.gen | |
DEBUG :: - nulecule/main.py :: ANSWERS: {u'etherpad-app': {u'db_user': u'sample_user', u'image': u'centos/etherpad', u'db_port': 3306, u'db_pass': u'sample_pass', u'db_name': u'sample_name', u'db_host': u'mariadb', u'hostport': 9001}, u'mariadb-atomicapp': {u'db_pass': u'sample_pass', u'image': u'centos/mariadb', u'db_user': u'sample_user', u'db_name': u'sample_name', u'root_pass': u'MySQLPass'}, u'general': {u'namespace': u'cap', u'provider-config': u'/home/vagrant/.kube/config', u'provider': u'openshift'}} | |
DEBUG :: - nulecule/main.py :: ANSWERS FORMAT: ini | |
DEBUG :: - utils.py :: Setting gid/uid of ./answers.conf.gen to 1000,1000 | |
Your application resides in . | |
Please use this directory for managing your application | |
real 0m0.580s | |
user 0m0.255s | |
sys 0m0.066s | |
[vagrant@cap etherpad-centos7-atomicapp]$ oc get pods | |
NAME READY STATUS RESTARTS AGE | |
etherpad-s2l9k 0/1 ContainerCreating 0 6s | |
mariadb 0/1 ContainerCreating 0 6s | |
[vagrant@cap etherpad-centos7-atomicapp]$ oc get services | |
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
etherpad-svc 172.30.178.167 nodes 80/TCP 10s | |
mariadb 172.30.226.217 <none> 3306/TCP 10s | |
$ sudo atomicapp stop . | |
INFO :: Atomic App: 0.6.3 - Mode: Stop | |
INFO :: Found existing external application: mariadb-centos7-atomicapp Loading: | |
INFO :: Using namespace cap | |
INFO :: Undeploying from OpenShift | |
INFO :: Pods 'mariadb' successfully deleted | |
INFO :: Services 'mariadb' successfully deleted | |
INFO :: Using namespace cap | |
INFO :: Undeploying from OpenShift | |
INFO :: Services 'etherpad-svc' successfully deleted | |
INFO :: 'etherpad' successfully scaled to 0 | |
INFO :: Replicationcontrollers 'etherpad' successfully deleted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment