projectatomic / nulecule-library

A set of nulecule-ized applications that can be used for reference or as part of your applications
GNU Lesser General Public License v3.0
27 stars 28 forks source link

Update READMEs #80

Closed cdrage closed 8 years ago

cdrage commented 8 years ago

Almost done. Just working through our main library. Some aren't working at the moment (see other PR's for fixes).

cdrage commented 8 years ago

Phew. That took a while to go through. Personally went through each-one to check that they're working and everything seems to be in order! (At least Docker and Kubernetes wise, didn't check OpenShift)

cdrage commented 8 years ago

Ping @dustymabe @bexelbie

Or @rtnpro @kadel since you guys contributed to some of these README's too.

kadel commented 8 years ago

WOW :sparkles: Good job.

there is some tmp file or something in mariadb-fedora-atomicapp README.md~

I'm still not sure if we are not creating unnecessary confusions for users with showing both atomic and atomicapp commands. But this is probably question for another discussion.

:+1: LGTM

cdrage commented 8 years ago

@kadel nice catch!

removed the file :)

Yeah, we have to include atomic and atomicap examples as our main use case (at the moment) is through the atomic CLI.

cdrage commented 8 years ago

@dustymabe So I updated based on your comments.

I'll have to change how mongodb works as it looks like it's broken with 1.2 of Kubernetes in a separate PR.

▶ sudo atomicapp run projectatomic/mongodb-centos7-atomicapp
[INFO] - main.py - Action/Mode Selected is: run
[INFO] - base.py - Unpacking image: projectatomic/mongodb-centos7-atomicapp to /var/lib/atomicapp/projectatomic-mongodb-centos7-atomicapp-3480fa01f709
[INFO] - container.py - Pulling Docker image: projectatomic/mongodb-centos7-atomicapp
Using default tag: latest
latest: Pulling from projectatomic/mongodb-centos7-atomicapp
a3ed95caeb02: Already exists 
196355c4b639: Already exists 
32c8472b5dbe: Already exists 
b1e84dee5b04: Already exists 
52405c2c35e6: Already exists 
e9c98d6e5345: Already exists 
628b195d0196: Already exists 
d5d5d8d69a25: Already exists 
30d8223f9f66: Already exists 
c9d1c21af6d4: Pull complete 
4dffaab640e9: Pull complete 
Digest: sha256:2e65d4ba8b045e59fbcd41a0102981b1b5b7070363b926e50a75e3b3236e5413
Status: Downloaded newer image for projectatomic/mongodb-centos7-atomicapp:latest
[INFO] - container.py - Extracting nulecule data from image: projectatomic/mongodb-centos7-atomicapp to /var/lib/atomicapp/projectatomic-mongodb-centos7-atomicapp-3480fa01f709
79b7240020a11a6127c7b8ed1d7267487bf2f006a819e30e50e5b762ad0148cb
==> mongodb_admin_password (MongoDB Administrator password): test
==> mongodb_database (MongoDB Database name): test
==> mongodb_password (Password for the $mongodb_user account): test
==> mongodb_user (User name for MongoDB account to be created): test
[WARNING] - plugin.py - Configuration option 'provider-config' not found
[WARNING] - plugin.py - Configuration option 'provider-config' not found
[INFO] - kubernetes.py - Using namespace default
[INFO] - kubernetes.py - trying kubectl at /usr/bin/kubectl
[INFO] - kubernetes.py - trying kubectl at /usr/local/bin/kubectl
[INFO] - kubernetes.py - found kubectl at /usr/local/bin/kubectl
[INFO] - kubernetes.py - Deploying to Kubernetes
[ERROR] - main.py - cmd: ['/usr/local/bin/kubectl', 'create', '-f', u'/var/lib/atomicapp/projectatomic-mongodb-centos7-atomicapp-3480fa01f709/artifacts/kubernetes/.service.json', '--namespace=default'] failed: 
error validating "/var/lib/atomicapp/projectatomic-mongodb-centos7-atomicapp-3480fa01f709/artifacts/kubernetes/.service.json": error validating data: found invalid field portalIP for v1.ServiceSpec; if you choose to ignore these errors, turn validation off with --validate=false
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/cli/main.py", line 119, in cli_func_exec
    cli_func(cli_func_args)
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/cli/main.py", line 87, in cli_run
    nm.run(**argdict)
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/nulecule/main.py", line 251, in run
    self.nulecule.run(cli_provider, dryrun)
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/nulecule/base.py", line 205, in run
    component.run(provider_key, dryrun)
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/nulecule/base.py", line 340, in run
    provider.run()
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers/kubernetes.py", line 189, in run
    self._call(cmd)
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/providers/kubernetes.py", line 114, in _call
    ec, stdout, stderr = Utils.run_cmd(cmd, checkexitcode=True)
  File "/usr/local/lib/python2.7/dist-packages/atomicapp-0.4.5-py2.7.egg/atomicapp/utils.py", line 266, in run_cmd
    "cmd: %s failed: \n%s" % (str(cmd), stderr))
AtomicAppUtilsException: cmd: ['/usr/local/bin/kubectl', 'create', '-f', u'/var/lib/atomicapp/projectatomic-mongodb-centos7-atomicapp-3480fa01f709/artifacts/kubernetes/.service.json', '--namespace=default'] failed: 
error validating "/var/lib/atomicapp/projectatomic-mongodb-centos7-atomicapp-3480fa01f709/artifacts/kubernetes/.service.json": error validating data: found invalid field portalIP for v1.ServiceSpec; if you choose to ignore these errors, turn validation off with --validate=false
dustymabe commented 8 years ago

@cdrage LGTM

cdrage commented 8 years ago

Wooo :sparkles: MERGINGGGG!

hub.docker.com should be updated by tomorrow with all these changes to the README's as well as an upcoming PR to fix mongodb.