►
Description
Veer Muchandi, middleware specialist at Red Hat, has created a three-part series demoing OpenShift 3. This final video demonstrates how to create a PHP/MySQL application.
Part 1: http://youtu.be/b5THfQzVUqk
Part 2: http://youtu.be/sjwH8RiDxuY
A
A
We
will
select
all
the
rows
from
the
users
table
that
we
created
earlier
and
we
will
display
those
rows
and
output
all
the
user
names
as
simple
as
that
now
the
index
dot
PHP,
it
just
says,
welcome
and
then
try
DB
test
dot.
Php
extension
now
I
also
have
a
docker
file
using
which
we
are
going
to
create
the
docker
image.
A
So
let
me
show
you
the
contents
of
that
I'm
using
the
totem,
Apache
PHP
has
the
best
base,
docker
image
to
start
with,
and
all
I'm
doing
is
copying
the
contents
of
sauce
territory,
which
is
this
two
files
into
where
www
a
steamer
as
simple
as
that,
and
will
now
create
a
docker
image
before
we
create
a
docker
image.
Let
us
look
at
what
images
we
have.
A
A
Now,
let's
go
back
and
check
our
repositories
on
docker
hub,
and
here
is
DB
test
now,
just
like
how
we
deployed
the
my
sequel
application
last
time.
This
time
we
will
deploy
the
DB
test
application
using
the
same
Joe
user,
so
I'm
getting
back
to
the
Joe
user
and
let's
see
what
pods
are
running
so
as
of
now,
there
is
only
my
sequel
part
and
we'll
also
see
what
services
are
running
and
there
is
a
my
circle
service
now
I
have
a
Jason
again
for
DB
test.
So
let's
have
a
quick
look
at
that.
A
A
A
So
when
we
create
this
application
using
this
JSON
file,
this
time
three
parts
will
be
created.
One
is
the
DB
test
pod.
The
second
is
the
DB
test
service
and
the
third
is
debated
shroud.
So
let's
go
ahead
and
do
that
is
we
create
from
the
file
DB
test
Kaylah,
so
it
created
a
part.
It
created
a
service
and
it
created
a
route.
Now,
let's
have
a
look
at
water
running
here,
I
see
get
pods
now
this
time
we
have
DB
test
container
running
and
it
is
using
the
image,
we're
moochin
d,
/
TB,
test.
A
We
are
running
to
services
again
the
bicycle
service
and
the
DBT
service
and,
as
as
we
saw
in
the
core,
the
deep,
the
my
sequel
series
will
be
used
by
that
DB
test
dot
PHP
in
the
application.
So
it's
going
to
connect
to
this
IP
address
and
this
port
number
with
the
root
username
and
password
of
super
segment.
A
A
So,
to
summarize,
what
we
have
done
so
far,
we
created
an
application
in
two
parts.
One
is
a
pod
that
runs
say
my
sequel
database.
We
used
a
docker
image
that
was
available
for
two
in
mice,
for
my
sequel
and
we
added
some
rows
to
that
database,
and
then
we
created
a
separate
pod
where
a
PHP
application
that
accesses
this,
my
sequel
database
runs,
and
we
had
some
code
there
that
can
access
these
rows
and
display,
and
even
this
PHP
application
we
built
it
outside
of
OpenShift.
A
We
pushed
it
into
darker
hub
as
a
docker
image
and
we
used.
We
used
that
docker
image
to
deploy
onto
openshift
and
this
openshift
version
3
environment
that
runs
docker
images
is
making
use
of
kubernetes
to
orchestrate
that's
the
one
that
pulled
it
from
docker
hub
and
ran
it
I
hope
you
enjoyed
this
open
shift
version
3
demo,
thanks
for
watching.