Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [vagrant@localhost ~]$ oc new-app cakephp-mysql-example
- --> Deploying template "cakephp-mysql-example" in project "openshift" for "cakephp-mysql-example"
- With parameters:
- Name=cakephp-mysql-example
- Namespace=openshift
- Memory Limit=512Mi
- Memory Limit (MySQL)=512Mi
- Git Repository URL=https://github.com/openshift/cakephp-ex.git
- Git Reference=
- Context Directory=
- Application Hostname=
- GitHub Webhook Secret=jtTKxgL2F4uS2Cs1153HGv8IhGw7h44otPVeiCQt # generated
- Database Service Name=mysql
- Database Engine=mysql
- Database Name=default
- Database User=cakephp
- Database Password=w7rp7xjgppg5N7ul # generated
- CakePHP secret token=9V6wnxR0Y0BeEvFPLehum6V3ybNTnr8j8ui3fHvXAnBklug5Ar # generated
- CakePHP Security Salt=EG8nnCMGAnTm3ppMpyJPBJ0wy6xMdX36q6QFsgaj # generated
- CakePHP Security Cipher Seed=751607158223251076433770110603 # generated
- OPcache Revalidation Frequency=2
- --> Creating resources with label app=cakephp-mysql-example ...
- service "cakephp-mysql-example" created
- route "cakephp-mysql-example" created
- imagestream "cakephp-mysql-example" created
- buildconfig "cakephp-mysql-example" created
- deploymentconfig "cakephp-mysql-example" created
- service "mysql" created
- deploymentconfig "mysql" created
- --> Success
- Build scheduled, use 'oc logs -f bc/cakephp-mysql-example' to track its progress.
- Run 'oc status' to view your app.
- [vagrant@localhost ~]$ #oc logs -f bc/cakephp-mysql-example
- [vagrant@localhost ~]$ oc get dc
- NAME REVISION REPLICAS TRIGGERED BY
- cakephp-mysql-example 0 1 config,image(cakephp-mysql-example:latest)
- mysql 1 1 config,image(mysql:5.6)
- [vagrant@localhost ~]$ oc get is
- NAME DOCKER REPO TAGS UPDATED
- cakephp-mysql-example 172.30.245.187:5000/test/cakephp-mysql-example
- [vagrant@localhost ~]$ oc logs -f bc/cakephp-mysql-example
- The value of ALLOWED_UIDS is [1-]
- The value of DROP_CAPS is [KILL,MKNOD,SETGID,SETUID,SYS_CHROOT]
- Image "centos/php-56-centos7@sha256:51c3e2b08bd9fadefccd6ec42288680d6d7f861bdbfbd2d8d24960621e4e27f5" not available locally, pulling ...
- 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"
- Downloading "https://github.com/openshift/cakephp-ex.git" ...
- Cloning source from https://github.com/openshift/cakephp-ex.git
- I0621 11:36:00.598505 1 install.go:123] DEPRECATED: Use .s2i/bin instead of .sti/bin
- I0621 11:36:00.598872 1 install.go:251] Using "assemble" installed from "<source-dir>/.sti/bin/assemble"
- I0621 11:36:00.599496 1 install.go:251] Using "run" installed from "image:///usr/libexec/s2i/run"
- I0621 11:36:00.599596 1 install.go:251] Using "save-artifacts" installed from "image:///usr/libexec/s2i/save-artifacts"
- ---> Installing application source...
- Using provided push secret for pushing 172.30.245.187:5000/test/cakephp-mysql-example:latest image
- Pushing image 172.30.245.187:5000/test/cakephp-mysql-example:latest ...
- Push successful
- [vagrant@localhost ~]$ oc get is
- NAME DOCKER REPO TAGS UPDATED
- cakephp-mysql-example 172.30.245.187:5000/test/cakephp-mysql-example
- [vagrant@localhost ~]$ oc logout
- Logged "developer" out on "https://10.0.2.15:8443"
- [vagrant@localhost ~]$ oc login -u system:admin
- You have access to the following projects and can switch between them with 'oc project <projectname>':
- * default
- * openshift
- * openshift-infra
- * test (current)
- Using project "test".
- [vagrant@localhost ~]$ oc logs -f dc/docker-registry -n default
- --> Scaling docker-registry-1 to 1
- --> Waiting up to 10m0s for pods in deployment docker-registry-1 to become ready
- ^C
- [vagrant@localhost ~]$ oc get builds
- NAME TYPE FROM STATUS STARTED DURATION
- cakephp-mysql-example-1 Source Git@ebca238 Complete About a minute ago 57s
- [vagrant@localhost ~]$ oc get pods -n default
- NAME READY STATUS RESTARTS AGE
- docker-registry-1-c4wqf 0/1 CrashLoopBackOff 4 2m
- docker-registry-1-deploy 1/1 Running 0 2m
- router-1-90zpl 1/1 Running 0 2m
- [vagrant@localhost ~]$ oc logs docker-registry-1-c4wqf -n default
- time="2016-06-21T11:37:10.30625188Z" level=info msg="version=v2.4.1+unknown"
- time="2016-06-21T11:37:10.320979367Z" level=info msg="Middleware for storage driver"
- time="2016-06-21T11:37:10.321080928Z" level=info msg="redis not configured" go.version=go1.6 instance.id=94fb563d-5707-401a-b128-121b3b605711
- 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
- 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
- time="2016-06-21T11:37:10.349359461Z" level=info msg="Middleware for registry"
- time="2016-06-21T11:37:10.349391775Z" level=info msg="Using Origin Auth handler"
- 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
- 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