►
Description
Veer Muchandi, middleware specialist at Red Hat, has created a three-part series demoing OpenShift 3. This second video demonstrates how to use an external MySQL Docker image to create a pod and service using OpenShift 3.
Part 1: http://youtu.be/b5THfQzVUqk
Part 3: http://youtu.be/OzkoEJP_Rmo
A
In
the
last
video
we
have
seen
the
architecture
of
OpenShift
version
3.
Now
we
will
look
at
an
example
of
an
application
that
runs
on
OpenShift
version
3.
Here
we
are
looking
at
an
application
that
uses
a
database.
So
what
you're
seeing
here
is
on
the
right
side,
you're
looking
at
a
database
in
my
sequel
database
running
in
its
own
part.
This
is
a
my
sequel
container
running
in
M.
Icicle
part
front
ended
by
a
service
that
that
exposes
port
3306.
A
Now
the
application
core
that
accesses
this
database
is
PHP
core
running
in
a
separate
pot,
and
this
PHP
source
depends
on
this
database
exposed
at
port
3306.
So
this
part
expects
the
parameters
such
as,
where
the
database
is
running
the
IP
address
of
the
pod
in
which
the
database
is
running,
the
port
number,
the
database
name,
username,
password,
etc.
Those
are
configured
in
this
bar
and
this
pod
is
available
over
port
84
access
outside
by
the
client
over
HTTP
or
HTTPS.
A
In
this
example,
we
are
going
to
create
a
docker
image
outside
of
openshift
and
use
it
with
an
open
shipped.
So
there
are
different
three
different
types
of
builds
that
are
that
you
can
do
in
openshift
version,
3
a
docker
build
a
source
tree
image,
kind
of
build
and
a
custom
build.
But
I
am
addressing
a
very
simple
example.
Here
we
are
going
to
use
a
my
sequel
image
from
darker
Jabir,
for
for
deploying
the
my
sequel
service
and
for
the
source
code.
A
We'll
have
our
own
source
code,
create
a
docker
image
outside
of
openshift
and
use
that
with
an
open
shift,
deploy
it
with
an
opera
shift
and
use
it
to
access
this.
My
sequel
service,
that's
a
common
question.
A
lot
of
people
ask
on,
can
I
create
a
docker
image,
a
pre
created,
docker
image
and
then
use
it
with
an
open
shift,
and
the
answer
is
yes:
I'm
now
logged
on
to
docker
hub,
and
since
we
need
a
my
sequel
database,
let
us
search
for
it.
A
Now
in
OpenShift
version
3
in
the
current
at
the
current
beta
that
we
have
the
way
to
create
an
application,
it
would
require
a
JSON
file,
and
this
might
this
might
look
a
little
tedious
at
this
point
of
time
it
there
will
be
an
easier
way
of
creating
applications
very
soon.
Let's
look
at
the
JSON
file.
That's
there
right
now.
A
This
JSON
file
is
going
to
use
a
container,
and
it's
pointed
pointing
to
an
image
called
my
sequel.
As
you
can
see,
this
is
going
to
be
using
the
my
sequel
from
docker
hub
and
at
the
same
time,
when
this
container
gets
created,
we
are
telling
my
sis
container
to
initiate
itself
by
creating
a
database
with
the
name
sample
provided
root,
password
of
super
secret
and
things
like
that,
and
this
container
would
expose
port
3306,
as
we
talked
before
right
now.
A
A
A
Now
this
creates
two
different
things:
one
is
the
pod
itself,
which
runs
the
my
CBL
container,
and
it
also
creates
a
service
with
this
name,
my
sequel
service.
So
let's
look
at
what
pods
are
running
and
what
services
are
running
now
you
have
a
pod
called
my
sequel,
pod,
that
is
in
the
running
status
and.