►
From YouTube: Spin Quick Video Tutorial
Description
This video offers a quick overview of using NERSC's Spin, the container service platform at NERSC.
A
Well,
no,
this
is
a
quick
introduction
to
show
you
how
to
use
spin
a
nurse
doctors
are
gonna,
be
neat
way
to
package
to
shoot
and
run
software
and
computer
systems.
Spin
is
the
solution
for
ruining
docker
containers
at
nurse.
The
first
step
will
be
the
login
to
one
of
the
nurse
plugin
nodes
I'm,
currently
logged
into
Cori
here,
but
these
commands
will
also
run
on
Edison
and
they'll
also
run
on
tun,
fo
and
gene
pool.
A
The
next
step
is
to
run
to
run
is
to
actually
load
the
spin
module,
so
module
load
spin
and
to
manage
the
services
in
your
application.
You're
going
to
be
used,
the
command-line
tool
called
Rancher.
What
I'm
going
to
do
is
I'm
just
going
to
print
my
rancher
environment
to
make
sure
that
Rancher
is
working
correctly,
Rancher
environment,
so
we
have
two
main
environments
and
nurse
the
first
there's
a
production
environment
as
well
as
a
development
environment.
A
A
The
next
step
is
going
to
be
running
an
application
and
spin.
The
application
stack
that
I'm,
showing
you
is
a
pretty
simple
web
application,
consisting
of
a
web
service
with
sure
static
images
from
the
file
system,
an
application
server
which
hosts
the
dynamic
code
and
communicates
with
the
database
and
a
database
container.
Let's
show
you
what
that
looks
like.
Let
me
go
to
my
working
directory.
A
Oops
docker
7l
flash
demo-
you
can
see
here
that
I
have
a
docker
compose
file
which
will
configure
and
define
the
application.
I
also
have
a
file
here
which
holds
the
password
and
I'll
talk
about
that
in
a
moment.
So,
first,
let's
look
at
a
docker
compose
file,
so
you
could
see
here
that
I
have
three
services.
We
just
change
the
size
here,
a
little
bit.
I
have
three
services:
I
have
a
web
service,
an
application
service
and
a
database
service.
A
The
web
and
the
database
service
are
built
from
images
that
I
simply
pulled
from
docker
hub.
The
application
service
is
a
custom
application
containing
my
code,
which
I
built
on
my
laptop
just
a
couple
hours
ago,
as
I
said
earlier,
the
web
server
is
simply
serving
static
images,
so
I've
placed
those
images
in
my
project
file
system
on
the
nurse
global
file
system.
A
A
A
Is
it
out
of
this
file
so
to
spin
up
a
service
and
spin
I'm
going
to
use
the
command
rancher
stack,
create
so
Ranger
stack
create
stefan
l,
fast
demo
that
will
spin
up
my
service
that
will
spin
up
my
application
stack
and
give
it
the
name
Stephanie
Laplace
demo,
and
then
to
view
the
progress
of
this
start
up
I'm
going
to
go
ahead
and
type
this
Rancher
PS
command.
You
can
see
here
that
I
have
three
services
running
I,
have
a
web
service
and
app
service
and
a
database
service.
A
All
three
are
in
the
state
of
activating,
which
means
they're
in
the
process
of
starting
up,
so
I
can
take
a
little
bit
so
we're
gonna
wait
just
a
moment
and
run
this
command
again
write
your
PS
again!
Here
you
go
so
now
we
have
three
services.
All
three
are
currently
in
the
state
of
healthy,
which
means
that
they
are
up
and
running
and
ready
for
connections.
A
A
A
A
So
the
next
thing
I'll
show
you
is
how
easy
it
can
be
to
upgrade
an
application.
What
I'm
going
to
do
is
I'm
just
going
to
do
a
real,
simple,
upgrade
I'm
gonna.
Take
this
background
on
this
webpage.
I'm
gonna
change
it
from
white
to
another
color.
It's
just
a
simple
demonstration
just
to
show
you
how
to
upgrade
something.
A
So
what
I'm
gonna
do
is
I'm
going
to
go
to
my
laptop
where
I
built
this
application
in
the
first
place.
This
is
the
directory
where
I
built
the
application.
You
can
see
the
docker
file
here
and
there
go
ahead
and
go
to
go
to
the
templates
directory
and
I'm
gonna
open
up
this
page
HTML
file,
I'm
just
gonna
change
the
body
tag
from
what
it
currently
is
to
a
different
tag
and
squids
save
that
file.
A
I'm
gonna
go
back
to
my
root
directory
and
then
then,
what
I'm
going
to
do
is
I'm
going
to
go
ahead
and
rebuild
the
image
this
time,
I'm
going
to
give
it
the
tag
of
v2.
Previously,
the
image
was
tagged
with
version
1.
So
now
I'm
going
to
just
do
it
version
2,
docker
image,
build
and
there's
built
and
then
I'm
going
to
go
ahead
and
I'm
just
going
to
push
this
to
the
registry
dude,
so
that
is
available
in
spin.
A
It's
going
to
refresh
this
page:
there
we
go,
the
application
was
white
and
now
the
background
is
this
nice
lavender
color.
So
that
was
just
a
quick,
easy
demonstration
just
to
show
you
how
to
upgrade
a
container
other
things
that
folks
want
to
do
with
containers.
Let's
show
you
something
simple:
that
administration
administrative
tasks.
A
I'd
like
to
look,
or
rather
I'd
like
to
look
at
the
logs
for
a
service,
so
I'll
do
that
using
the
command
Rancher
logs
staff
no
fast
mo
slash
web,
so
those
are
swimming
the
web
logs.
So
there
we
go
so
that
you're
the
application
logs.
You
can
see
that
I've
had
a
couple
hits
on
this
web
application.
All
from
my
own
IP
address.
A
Say
that
you're
expecting
a
surge
of
traffic,
and
you
want
to
increase
the
number
of
web
containers
that
are
serving
the
static
images.
We
could
do
that
real
quickly
with
a
rancher
scale
command.
Here
you
can
see
that
I'm
setting
the
number
of
web
containers
from
1
to
2
so
before
I.
Do
that,
let
me
just
go
back
we'll
just
look
at
rancher
PS.
We
can
see
that
there
are
three
here's
my
web
service.
This
is
saying:
I
have
1
out
of
1
possible
services
running,
so
I
only
have
one.