►
From YouTube: Keptn Demo: Python & Container Functions Runtime
Description
In this video Florian Bacher presents the latest features to run your own business logic to support the lifecycle of your application deployment.
Learn more: https://lifecycle.keptn.sh/
Get started with tutorials: https://tutorials.keptn.sh
Join us in Slack: https://slack.keptn.sh
Star us on Github: https://github.com/keptn/keptn
Follow us on Twitter: https://twitter.com/keptnProject
Sign up to our newsletter: https://bit.ly/KeptnNews
A
Okay
yeah.
Basically,
as
we
announced
in
the
last
couple
of
meetings,
we
were
busy
implementing
the
functions,
Runner
runtime
for
Python
and
containers,
and
now
I
would
like
to
show
you
a
really
quick
demo
for
that.
So,
basically
we
are
in
the
sample
app
directory
within
our
repository
and
there
we
have
added
a
python
task.
So
let's
first
look
at
that.
So
here
we
have
the
captain
task
definition,
and
this
is
pretty
similar
to
the
to
the
previous
JavaScript
definitions
that
we
also
had
with
the
difference
that
we
now
have.
A
This
python
object
where
you
have
the
basically
the
same
capabilities
you
had
in
as
in
the
JavaScript
runtime,
so
you
can
either
directly
insert
the
code
for
your
python
script
or,
as
we
did
in
this
case
here
we
are
referencing
a
URL,
so
let's
have
a
the
short
deck.
So
this
is
a
really
really
powerful
script
that
basically
reads
the
data
environment
and
very
and
very
environment,
variable
kind
of
talk
today
and,
for
instance,
and
yeah,
and
in
this
case,
just
for
the
sake
of
demoing
this
that
we
can
also
do
this.
A
We
are
adding
the
secure
parameters
by
referencing
this
the
secret
here,
where
we
have
some
secure
data,
and
this
will
be
executed
in
the
pre-deployment
phase,
I
believe
of
the
catnip
yeah
exactly
so
here
in
the
cat
nap
in
version
3,
for
example,
we
have
two
pre-deployment
tasks.
One
is
the
python
secret
task
that
we
want
to
execute
and
the
second
one
is
a
container
sleep
task.
So
let's
have
it
really
quick?
Look
at
that
one.
So
this
is
the
newly
introduced
container
runtime.
A
So,
first
of
all,
the
parts
for
the
application
has
started,
and
hopefully
soon
we
should
see
the
pots
for
the
tasks
here
they
are
and
yeah.
Let's
have
a
look
at
the
lock.
So
here
we
have
our
super
secure
token
printed
out
by
the
python
function
that
we
wrote
and
likewise
in
the
container
function,
we
print
out
this
beautiful
Hello
message
and
yeah.