►
From YouTube: Setup GDK and GitLab Runner on a Macbook
Description
For any questions or comments feel free to reach me out:
https://gitlab.com/svedova
https://twitter.com/savasvedova
===============================================
Scripts: https://gitlab.com/gitlab-org/gitlab/-/snippets/2408961
A
Hello,
this
is
savash
from
gitlab.
I
am
a
senior
frontend
engineer
and
I
recently
received
my
new
macbook
and
I
was
waiting
for
this
for
a
long
time
for
two
reasons:
one
because
of
the
new
macbook
and
then
the
second
one,
because
I
we
have
an
issue
to
facilitate
the.
A
The
process
to
set
up
the
the
gitlab
runner
on
on
on
a
local
environment,
so
I
thought,
while
I'm
gonna,
set
up
my
computer,
I'm
also.
I
can
also
record
a
video
to
walk
through
the
required
steps,
so.
A
There
are
some
requirements
which
I'm
not
going
to
go
through
in
this
video
and
they
are
setting
up
ssh
and
then
installing
brew
and
we'll
be
using
docker
and
colima
for
the.
B
Gitlab
runner
so
also
installing
those
tools
once
you
have
them.
A
A
Execute
the
script,
so
the
script
will
install
a
gdk
in
the
location
that
we
provide
here
and
then
it
will
clone
the
repository
by
default.
It's
the
gitlab
repository,
so
you
can
go
ahead
and
then
press
enter.
I'm
not
gonna
do
that
in
this
video
because
it
takes
quite
a
bit
to
to
install
all
the
dependencies.
I
already
done
that
before
this
video,
so
we
should
have
it
here.
B
In
our
gdk
folder
perfect
so
we're
there
now
the
gdk
is
configured.
A
Through
the
gdk
yaml
file,
currently
it's
empty
and
we're
gonna.
We're
gonna
update
that
in
a
moment.
But
before
we
do
that,
the
the
install
script
will
make
use
of
astf
to
install
all
the
required
tools
so,
for
instance,
and
also
the
versions
so,
for
instance,
ruby
or
golang
or
node.js.
They
they're
all
going
to
be
installed
by
asdf
and
when
we.
B
Check
our
so
if,
if.
A
You
if
you
go
ahead
and
then
type
which
ruby
so
in
my
case,
this
is
now
the
updated
one,
but
it
should
be
by
default.
It
should
be,
I
think,
it's
user
bin
and
then
ruby
yeah,
it's
this
one.
So
we
need
to
tell
so
we
need
to
source
this
this,
the
the
astf
script,
so
that
gdk
makes
use
of
the
versions
that
it
actually
installed,
because
otherwise
it's
going
to
use
the
system
defaults
if
there
are
any
and-
and
it
may
cause
some
some
some
problems.
So
let's
go.
B
Ahead
and
then,
let's
source,
the
I'm
sorry,
not
this
one,
but
this
one
source
yeah,
I'm
just
gonna
change,
so
I
spit
over
here.
Take
that
so,
if
you
do
that.
A
A
And
then
we
see
that
it
seems
to
be
working
so
this
this
is
the
boot
screen.
It
will
take
a
few
seconds
until
gitlab
is
ready,
but
I'm
not
going
to
wait
that,
because
this
page
is
already
enough
for
me
to
show
that
it's
it's
actually
working.
So
next
step
is
to
now
gdk
is
is
running
and
we
also
want
to
install
and
configure
the
gitlab
runner
and
gitlab
runner
runs
inside
a
docker
container.
A
So
since
docker
container
is
an
isolated
environment,
it
does
not
have
access
to
our
gdk
instance
on
the
host
machine
and
the
next
steps
are
going
to
provide
the
necessary
configuration
for
docker
to
communicate
with
with
the
gdk,
with
with
the
gitlab
instance.
I'm
sorry.
So
let's
go
ahead.
B
And
then
update
our
hosts
file.
A
We
tell
that
this
ip
resolves
to
gdk.test
we're
going
to
be
using
gdk
test
and
the
register
test.
If
I'm
not
mistaken,
this
was
something
regarding
the
container
or
registry,
something
like
that.
But
it's
not
that
important
for
at
least
I
guess
for
this-
for
this
example.
So.
A
Here
next
step
is
that
we
want
to
create
a
loopback
interface,
so
go
ahead
and
copy
the
script
and
right
now
in
theory,
docker
should
be
able
to
communicate
with
gdk
with
gitlab
instance
through
this.
This
ip,
so
just
bear
in
mind
that
this
this
command.
It's
it's
going
to
reset
if
you
reboot
your
computer.
So
if
you
want
to
persist
that
go
ahead
and
then
copy
this,
this
file
so
copy
this
content
and
then
create
a
file
called
like
this
and
inside
just
paste
the
this
content.
A
This
will
tell
the
it
will
create
a
a
startup
script
to
configure
the
loopback
interface.
So
now,
we've
done
that
as
well,
and
then
the
next
step
is
to
tell
gitlab
to
use
gdk
test
instead
of
local
host.
We
do
this
because
if
the
docker
container
inside
the
container
tries
to
reach
localhost,
it's
actually
the
container's
localhost,
so
it's
not
reaching
the
host
machine's,
localhost
and
gdk
test.
A
It's
we're,
basically
creating
a
network
with
the
with
the
configuration
that
we
did
a
few
seconds
ago
and
we'll
be
using
gdk
test
as
a
host
name
for
that.
A
So
let's
go
ahead
and
then
type
this
command,
gdk
config
set
hostname
gdk.test,
it's
gonna
update
the
gdk
file
and
let's
go
ahead
and
then
also
set
the
listen
address.
B
A
As
you
can
see
the
url,
it's
not
using
localhost
anymore,
but
it's
using
gdk
test
and
after
that,
we're
gonna
restart
jdk.
This
is
going
to
take
a
while.
So
I'm
already
going
to
to
the
next
step
to
save
some
time,
and
the
next
step
is
to
install
the
runner.
So
let's
go
ahead.
Let's
clear
this
part.
B
A
So
I
have
to
go
back
and
then
restart
anyways,
so
just
installed
the
gitlab
runner.
A
A
For
for
running
for
registering
the
the
the
runner
inside
a
container
actually
for
registering
the
container,
no,
I'm
sorry
for
registering
the
runner
and
we'll
be
using
a
container
for
this.
So.
B
Let's
go
ahead
and
then
check
the
runners
page
here,
admin
and
runners
and
we
have
no
registered
runner
so
far,
which
is
normal.
We
haven't
configured
anything
yet.
B
Don't
see
this,
let's
move
my
face
here
and
actually
here
I
like
it
more
on
the
right
side,
cool,
so
docker
run,
and
then
here
we
bind
the
host
directory
to
the.
A
It
took
me
a
while
to
figure
this
out,
so
it
may
be
the
case
if
you
see
that
once
you
run
this
command,
the
the
the
config
tumble
is
not
created
within
the
directory
that
we're
gonna
create
in
a
second.
So
let's
create
a
directory.
B
On
the
okay
make
there,
I
will
create
a
directory
gdk
runner
in
my
loc
in
my
home
directory
and
then
gdk
runner,
so
it's
currently
it's
empty.
Then
let's
go
ahead.
This
is
going
to
be
gdk
runner,
okay,
go
ahead;
okay,
so.
B
B
Drop
down
here
register
and
instance,
runner
click
on
the
copy
to
clipboard
go
back
here.
Paste
this
token.
A
And
then
description,
we
don't
need
it
tags,
we
don't
need
it
maintenance
node,
we
don't
need,
it.
Executor
is
docker
and
then
the.
B
B
A
B
B
Let's
just
to
be
sure,
let
me
check
if
this
is
cad:
gtk
runner,
traffic
tunnel
yeah,
it's
the
correct
one,
perfect,
let's
go
back
token
extra
hosts
and
then
gdk
dot
test
bind
it
to
this
ip.
That.
B
Let
me
see
if
I
missed
anything,
we've
done
this
we've
done
that
cool.
So
once
this
is
configured
we
should
see
our.
A
It
we
just
provided
the
configuration
to
gitlab
pml
and
it's
reconfiguring
right
now,
and
then
we
will
need
to
restart
gdk
for
the
changes
to
be.
If.
A
If,
when
the
page
loads,
we
see
this
little
beautiful,
green
icon,
it
means
that
we
are
successful
and
there
we
are,
we
see
it,
it's
the
status
is
online.
We
can
reach
to
our
runner,
which
means
that
now
we
can
run
a
pipeline
and
just
probably
just
gonna
work
perfectly.
B
You
have,
I
think
you
have
two
ways
to
do,
that.
One
is
to
inspect
docker,
take
the
container
id
and
then
follow
the
logs.
A
B
Three
or
five
lines
so
yeah
there
we
are,
we
have
gdk.
A
A
If
you
need
any
assistance,
just
feel
free
to
reach
me
out.
If
I
can
help
I'll
be
more
than
happy
to
and
I'll
be
leaving
my
contact
details
below
the
video
and
also
the
the
scripts
so
that
you
don't
have
to
type
you
can
just
copy
paste
just
make
sure
to
change
the
user
path
accordingly,
and
that
should
be
it.