Advertisement
Guest User

log

a guest
Jun 21st, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.39 KB | None | 0 0
  1. [vagrant@localhost ~]$ oc new-app cakephp-mysql-example
  2. --> Deploying template "cakephp-mysql-example" in project "openshift" for "cakephp-mysql-example"
  3. With parameters:
  4. Name=cakephp-mysql-example
  5. Namespace=openshift
  6. Memory Limit=512Mi
  7. Memory Limit (MySQL)=512Mi
  8. Git Repository URL=https://github.com/openshift/cakephp-ex.git
  9. Git Reference=
  10. Context Directory=
  11. Application Hostname=
  12. GitHub Webhook Secret=jtTKxgL2F4uS2Cs1153HGv8IhGw7h44otPVeiCQt # generated
  13. Database Service Name=mysql
  14. Database Engine=mysql
  15. Database Name=default
  16. Database User=cakephp
  17. Database Password=w7rp7xjgppg5N7ul # generated
  18. CakePHP secret token=9V6wnxR0Y0BeEvFPLehum6V3ybNTnr8j8ui3fHvXAnBklug5Ar # generated
  19. CakePHP Security Salt=EG8nnCMGAnTm3ppMpyJPBJ0wy6xMdX36q6QFsgaj # generated
  20. CakePHP Security Cipher Seed=751607158223251076433770110603 # generated
  21. OPcache Revalidation Frequency=2
  22. --> Creating resources with label app=cakephp-mysql-example ...
  23. service "cakephp-mysql-example" created
  24. route "cakephp-mysql-example" created
  25. imagestream "cakephp-mysql-example" created
  26. buildconfig "cakephp-mysql-example" created
  27. deploymentconfig "cakephp-mysql-example" created
  28. service "mysql" created
  29. deploymentconfig "mysql" created
  30. --> Success
  31. Build scheduled, use 'oc logs -f bc/cakephp-mysql-example' to track its progress.
  32. Run 'oc status' to view your app.
  33. [vagrant@localhost ~]$ #oc logs -f bc/cakephp-mysql-example
  34. [vagrant@localhost ~]$ oc get dc
  35. NAME REVISION REPLICAS TRIGGERED BY
  36. cakephp-mysql-example 0 1 config,image(cakephp-mysql-example:latest)
  37. mysql 1 1 config,image(mysql:5.6)
  38. [vagrant@localhost ~]$ oc get is
  39. NAME DOCKER REPO TAGS UPDATED
  40. cakephp-mysql-example 172.30.245.187:5000/test/cakephp-mysql-example
  41. [vagrant@localhost ~]$ oc logs -f bc/cakephp-mysql-example
  42. The value of ALLOWED_UIDS is [1-]
  43. The value of DROP_CAPS is [KILL,MKNOD,SETGID,SETUID,SYS_CHROOT]
  44. Image "centos/php-56-centos7@sha256:51c3e2b08bd9fadefccd6ec42288680d6d7f861bdbfbd2d8d24960621e4e27f5" not available locally, pulling ...
  45. Creating a new S2I builder with build config: "Builder Name:\t\t\tApache 2.4 with PHP 5.6\nBuilder Image:\t\t\tcentos/php-56-centos7@sha256:51c3e2b08bd9fadefccd6ec42288680d6d7f861bdbfbd2d8d24960621e4e27f5\nBuilder Image Version:\t\t186a9c8caca0ef9eec4125247979876bf2c937b4\nBuilder Base Version:\t\taac5e76\nSource:\t\t\t\tfile:///tmp/s2i-build399190568/upload/src\nOutput Image Tag:\t\ttest/cakephp-mysql-example-1:5d76e279\nEnvironment:\t\t\tOPENSHIFT_BUILD_NAME=cakephp-mysql-example-1,OPENSHIFT_BUILD_NAMESPACE=test,OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/cakephp-ex.git\nIncremental Build:\t\tdisabled\nRemove Old Build:\t\tdisabled\nBuilder Pull Policy:\t\tif-not-present\nPrevious Image Pull Policy:\talways\nQuiet:\t\t\t\tdisabled\nLayered Build:\t\t\tdisabled\nWorkdir:\t\t\t/tmp/s2i-build399190568\nDocker NetworkMode:\t\tcontainer:8225e682c2e2d73794be1f126457ac6e44293d91f5752336f1e72b0f3a954629\nDocker Endpoint:\t\tunix:///var/run/docker.sock\n"
  46. Downloading "https://github.com/openshift/cakephp-ex.git" ...
  47. Cloning source from https://github.com/openshift/cakephp-ex.git
  48. I0621 11:36:00.598505 1 install.go:123] DEPRECATED: Use .s2i/bin instead of .sti/bin
  49. I0621 11:36:00.598872 1 install.go:251] Using "assemble" installed from "<source-dir>/.sti/bin/assemble"
  50. I0621 11:36:00.599496 1 install.go:251] Using "run" installed from "image:///usr/libexec/s2i/run"
  51. I0621 11:36:00.599596 1 install.go:251] Using "save-artifacts" installed from "image:///usr/libexec/s2i/save-artifacts"
  52. ---> Installing application source...
  53. Using provided push secret for pushing 172.30.245.187:5000/test/cakephp-mysql-example:latest image
  54. Pushing image 172.30.245.187:5000/test/cakephp-mysql-example:latest ...
  55. Push successful
  56. [vagrant@localhost ~]$ oc get is
  57. NAME DOCKER REPO TAGS UPDATED
  58. cakephp-mysql-example 172.30.245.187:5000/test/cakephp-mysql-example
  59. [vagrant@localhost ~]$ oc logout
  60. Logged "developer" out on "https://10.0.2.15:8443"
  61. [vagrant@localhost ~]$ oc login -u system:admin
  62. You have access to the following projects and can switch between them with 'oc project <projectname>':
  63.  
  64. * default
  65. * openshift
  66. * openshift-infra
  67. * test (current)
  68.  
  69. Using project "test".
  70. [vagrant@localhost ~]$ oc logs -f dc/docker-registry -n default
  71. --> Scaling docker-registry-1 to 1
  72. --> Waiting up to 10m0s for pods in deployment docker-registry-1 to become ready
  73. ^C
  74. [vagrant@localhost ~]$ oc get builds
  75. NAME TYPE FROM STATUS STARTED DURATION
  76. cakephp-mysql-example-1 Source Git@ebca238 Complete About a minute ago 57s
  77. [vagrant@localhost ~]$ oc get pods -n default
  78. NAME READY STATUS RESTARTS AGE
  79. docker-registry-1-c4wqf 0/1 CrashLoopBackOff 4 2m
  80. docker-registry-1-deploy 1/1 Running 0 2m
  81. router-1-90zpl 1/1 Running 0 2m
  82. [vagrant@localhost ~]$ oc logs docker-registry-1-c4wqf -n default
  83. time="2016-06-21T11:37:10.30625188Z" level=info msg="version=v2.4.1+unknown"
  84. time="2016-06-21T11:37:10.320979367Z" level=info msg="Middleware for storage driver"
  85. time="2016-06-21T11:37:10.321080928Z" level=info msg="redis not configured" go.version=go1.6 instance.id=94fb563d-5707-401a-b128-121b3b605711
  86. time="2016-06-21T11:37:10.328477132Z" level=info msg="Starting upload purge in 15m0s" go.version=go1.6 instance.id=94fb563d-5707-401a-b128-121b3b605711
  87. time="2016-06-21T11:37:10.348981392Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.6 instance.id=94fb563d-5707-401a-b128-121b3b605711
  88. time="2016-06-21T11:37:10.349359461Z" level=info msg="Middleware for registry"
  89. time="2016-06-21T11:37:10.349391775Z" level=info msg="Using Origin Auth handler"
  90. time="2016-06-21T11:37:10.35103554Z" level=debug msg="configured \"openshift\" access controller" go.version=go1.6 instance.id=94fb563d-5707-401a-b128-121b3b605711
  91. time="2016-06-21T11:37:10.351235946Z" level=info msg="listening on :5000" go.version=go1.6 instance.id=94fb563d-5707-401a-b128-121b3b605711
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement