►
From YouTube: 2020-11-12 5 minute production app sync
Description
Direction: https://about.gitlab.com/direction/5-min-production/
A
So
this
is
the
first
meeting
for
the
five
minute
production
app
and
our
goal
is
to
make
it
easier
to
do
development
with,
for
anybody,
and
one
big
inspiration
for
us
is
heroku
how
easy
they
made
it
to
get
started
with
an
app.
A
However,
there's
a
few
problems
you
faced.
If
you
want
to
get
started
today,
I
still
think
heroku
is
a
great
place
to
start
an
app
it's
the
best
place.
We
want
gitlab
to
be
a
better
place,
and
that
means
that
not
only
is
it
great
for
the
development
app,
but
it's
trivial
to
do
to
have
a
production
app.
A
You
want
to
have
flexibility
that
if
you
want
to
change
the
ci
or
cd
thing,
it
should
already
be
structured
in
the
right
way.
The
model
way
to
develop
apps
is
on
a
hyper
clouds,
with
gitlab
by
using
a
technology
called
terraform
and
using
managed
services
of
those
hyper
clouds.
A
A
So
we
want
to
do
a
little
more
for
developers
and
dimitri
is
now
gonna
give
a
short
demo
of
what
he's
done
so
far,
and
sri
is
in
here
to
help
us
further
full
time
during
the
quarter
and
michael's
going
to
help
us
reach
our
audience
and
have
some
people
rooting
from
the
sidelines
dimitri.
Take
it
away.
Thank
you.
B
That's
it
yeah.
I
must
know
that
most
of
the
work
was
done
by
three
to
my
illness,
kudos
to
him,
but
yeah.
Let's
get
started
so,
first
of
all,
it's
still
day
one.
So
there
are
quite
some
manual
steps
involved,
but
I
still
think
it's
worth
showing
so
what
we
usually
have
when
we
start
with
web
app.
B
Usually
what
you
need
is
a
database
and
the
application
itself
running.
So
if
we
speak
in
the
infrastructure
of
amazon
of
aws,
it's
let's
say
ec2
instance
and
rds
instance,
both
of
those
instances
have
three
tiers,
so
that
should
be
interesting
for
developers,
since
it
allows
them
to
run
their
first
app
at
at
minimal
cost.
B
So
we
started
with
this
project
five
minute,
docker
the
name
in
yeah.
It's
just
random,
but
idea
is
here.
We
define
a
oh
wait.
Wait
wait,
wait
sharing
the
screen
yep
now
much
better,
so
we
started
with
a
simple
project
that
has
few
key
elements:
it
has
a
ci
yaml
file
which
constrains
stages
of
deployment,
infrastructure,
building
your
application
deploying
it
and
it
has
infrastructure
file,
which
is
a
terraform
file
which
creates
corresponding
ec2
and
rds
instances.
B
B
So,
let's
start
with
yeah,
I
was
creating
a
new
project
as
a
rails
developer.
I
like
it
to
be
rails,
so.
B
B
B
B
B
Okay,
now
we
have
a
docker
file,
so
that
should
make
the
application
runnable.
What
else
we
need?
We
have
it
on
port
5000.
Let's
move
to
the
next
step,
so
yeah.
This
readme
describes
it
by
default.
The
infrastructure
contains
of
ec2
instance
and
db
instance,
both
of
them
t2
micro,
which
are
in
amazon
free
tier.
So
it
won't
be
expensive
now,
because
it's
still
early
in
in
development,
we
we
need
to
have
some
credentials
set
up.
B
B
B
B
Key
I'll
mark
the
variable,
since
it
consider
it
as
a
secret
and.
A
We
are
live
streaming
this,
so
you
might
want
to
reset
everything
after
you're
done,
dimitri.
B
Yeah,
of
course,
otherwise
I'll
have
a
build
tomorrow.
Okay,
so
that's
pretty
common
procedure.
So
every
time
you
work
with
terraform
you
work
with
whatever
the
code
that
builds
infrastructure.
You
usually
need
access,
key
secret
and
region,
so
that
should
be
pretty
familiar
to
user.
So
we
have
those
variables
set.
We
have
a
docker
file.
B
In
future,
we
hope
it
to
be
part
of
existing
gitlab
template,
maybe
within
after
devote
maybe
a
variation
of
this,
but
for
now
we
just.
A
B
Yeah
yeah
for
now
for
for
a
speed
of
development
we
just
use
in
makes.
B
B
B
A
That
and
we
appreciate
our
viewers
not
using
these
credentials
to
start
the
bitcoin
miners
just
yet
so
can
we
talk
since
we
have
to
kill
some
time?
I
think
so
far.
I've
made
some
notes.
B
Yeah,
the
reason
why
I'm
not
focusing
on
those
synths
is
that
it
will
require
some
gitlab
work,
which
yeah
I'm
using
three
knowledges
for
for
terraform
for
aws,
for
all
that
expertise,
and
that's
why
we
are
doing
much
of
the
progress
in
this
direction.
B
I
think
for,
of
course,
creating
those
cicd
variables
is
is
annoying
part,
but
it's
a
known
concept
yet
for
developers.
So,
even
if
we
release
or
the
first
iteration
is
like
that,
it's
still
useful
for
developers
because
they
can
yeah,
they
can
get
those
variables
pretty
easily
from
aws
and
from
there
on,
like
the
most
complex
part
of
actually
deploying
we
do.
That.
B
Second
is
logging
with
aws
is
one
thing
is
getting
all
this
token
and
linking
account?
Second,
one
is
that
for
the
project
we
would
probably
want
it.
We
want
to
get
those
key
and
also
swelling
specific
for
a
project
or
for
a
group.
B
Yeah,
yes,
yes!
So
for
now
we
just
like
relying
on
our
users
to
like
you
know
to
manage
that.
But
it's
you
know
it's
a
lot
of.
At
least
I
think
it's
a
lot
of
work
and
it
won't
give
us
such
immediate
benefit,
like
you
know,
like
those
terraform
scenario
and
gitlab
yaml,
that
you
can
include.
B
How
application
would
know
how
to
connect
to
the
database
so
we're
using
a
usual
generic
concept
of
database
url
environmental
variable
and
what
happens
here
in
this
deploy
job?
We
have
easy
tool
instance
running.
We
install
docker
there,
and
then
we
run
your
container
image
inside
docker
on
this
ec2
instance,
and
we
pass
a
database
url
to
it,
which
we
know
from
the
terraform
script.
That
was
happening
in
the
previous
build
when
we
permissioned
rds
so
well.
A
You're
already
getting
data
from
terraform
back
into
gitlab
ci
variables.
Yes,
three,
that
is
pretty
sweet,
well
done.
B
Since
three
for
doing
that,
it
was
yeah
pretty
fast
on
solving
this
issue.
B
B
B
A
Well,
I
just
want
to
first
congratulate
street
like
that
is
really
cool.
I
think
that
getting
the
terraform
data
back
and
then
using
that
for
the
subsequent
runs
is
one
of
the
most
pivotal
parts
and
I'm
really
impressed
that's
already
done
tree.
I
want
to
give
the
floor
to
you
anything
you
want
to
add
or
celebrate.
C
A
Awesome
what
I
think
we'll
do
this
call
on
a
weekly
basis.
What
what
can
we
expect
next
week?
What's
the
ambition.
B
So
there
are
a
few
things.
One
of
them
is.
We
want
to
further
improve
db
migration,
support
and
dbin
utilization.
So
that's.
B
So
we
want
to
have
this
we'll,
like
we
already
have
some
on
progress
on
it,
but
I'm
not
yeah.
It's
it's
not
completely
finished
so
db.
Initialized.
We
make
great,
that's
that's
what
we're
looking
at
for
next
scene,
and
we
also
want
to
give
our
users
ability
to
change
their
instance
types
through
the
variables
in
ci
yaml
file.
So
let's
say
they
over
group
t2
micro
and
they
want
something
bigger
they
need.
B
B
A
B
C
C
All
right,
so
the
idea
should
be
that
you
can
just
read
this
readme
and
that
should
be
all
you
need,
so
you
don't
need
to
speak
to
dc
or
myself
to
get
this
working.
We
looked
at.
We
looked
at
the
steps
that
dc
performed,
but
it's
basically
create
a
create
a
project
set
up
the
aws
credentials
and
then
include
a
pipeline.
C
Then
we
looked
at
what
each
stage
and
each
job
actually
does
that's
been
explained
here
as
well.
Just
a
few
things
that
weren't
mentioned,
we
already
support
multiple
environments
per
project.
So
right
now,
if
you
spin
up
multiple
branches
within
your
project,
so,
for
example,
master
for
the
main
branch,
but
also
you
can
have
a
staging
patch
or
a
review
app
branch.
All
of
that
will
work.
It
is
going
to
create
new
infrastructure
and
deploy
a
fresh
instance
of
the
app
in
a
new
environment
per
branch.
C
That's
that
a
database
url
is
being
passed
to
the
application.
In
each
case,
you
can
also
define
the
two
environment
variables
db,
initialize
and
db
migrate.
It
doesn't
work
perfect
right
now,
so
we
trust
you
to
not
try
this
or
try
it
but
expect
issues.
But
it's
something
we're
working
on
what
else
yeah
you
can
customize
the
port
so,
for
example,
if
you,
for
whatever
reason,
don't
want
to
run
on
port
5000,
you
can
change
that
here.
C
You'll
find
a
few
examples:
ruby
on
rails,
closure,
node
and
python
with
flask,
just
a
quick
document
on
what
we
want
to
do
long
term.
Like
I
guess
the
goal
is
parity
bit
auto
devops.
In
some
sense,
the
biggest
of
that
would
be
having
domain
names
and
ssl
working
really
smooth.
Then
probably
you
want
to
roll
back
deployments
you
that
needs
a
lot
of
thinking,
but
it's
it's
supported
in
order
to
devop.
C
So
the
expectation
would
be
that
we
support
it
here
as
well
link
the
logging
and
monitoring
into
the
operations
tabs
that
we
have
already.
So
I
don't
know
if
that
is
possible,
but
then
to
set
a
really
ambitious
goal:
it'd
be
nice
to
try
and
do
that
in
terms
of
integration
with
existing
gitlab
stages
and
features
we
integrate
with
the
environments
we
integrate
with
container
registry.
C
C
D
C
D
Like
to
actually
collaborate
on
the
adding
the
security
scans
and
items
to
this
five-minute
app,
so
I
actually
created
a
flask
application
for
this
very
reason
for
testing
out
all
our
all
of
our
security
scans.
So
I've
linked
that
there
with
you
and
if
you
get
some
time
later
on
next
week,
we
can
talk
a
little
bit
further
about
that.
Once
the
db
migration
is
complete,
making
that
easier,
yeah.
B
Thank
you
perfect.
Can
we
just
delay
all
the
security
scans
and
everything,
because
this
is
like
a
bit
out
of
scope,
and
this
is
something
that
we
can
do
as
a
last
stage
when
we
introduced
gitlab.
A
A
A
Cool
this
is
very
impressive.
Our
mission
is,
everyone
can
contribute.
I'd,
encourage
three,
some
some
proposals
instead
of
having
the
subprojects
three
stuff,
maybe
just
move
all
your
stuff
to
the
root
of
the
five
minute
production
app,
have
an
issue
board,
link
it
from
the
readme
and
then
consider
sitting
setting
up
a
slack
channel
or
discord
channel
that
you
link
from
the
readme
as
well,
so
that
people
can
can
engage
so
that
we
grow
community
around
this.
C
Yeah
sounds
good,
yeah
I'll
dizzy
I'll.
Let
you
move
the
project
to
the
right
place
because.
C
Hey
but
so
we
can
use
discord
officially
for
gitlab
business.
That's
nice
to
me.
A
I
I
think,
I
think,
as
long
as
there's
head
there's
no
customer
data
here
involved
or
anything
else.
This
is
just.
I
think
I
I
think
discord
isn't
seems
like
an
up-and-coming
way
to
create
a
community
around
something.
So
I'm
supportive
if
you
want
to
use
that.