Tyk Quickstart


#1

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/uY3KjJm_02w Import Date: 2016-01-19 21:25:25 +0000.
Sender:Jad Ghanem.
Date:Monday, 28 September 2015 11:31:31 UTC+1.

Hi everyone,

I’m new to all this so would appreciate if anyone can help.

I am setting up Tyk locally.

I am following up the steps mentioned on:
https://tyk.io/v1.8/setup/docker/

I believe I have installed Docker and Docker Compose and following are the respective versions:
Docker version 1.8.2, build 0a8c2e3
docker-compose version: 1.4.2

Now I have reached Step 2 which is to regards on running the setup script

git clone [email protected]:lonelycode/tyk_quickstart.git
cd tyk_quickstart
docker-compose up -d tyk_nginx
./setup.sh

But I get the following error:

[email protected]:~$ git clone [email protected]:lonelycode/tyk_quickstart.git
Cloning into ‘tyk_quickstart’…
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[email protected]:~$ cd tyk_quickstart
bash: cd: tyk_quickstart: No such file or directory
[email protected]:~$ docker-compose up -d tyk_nginx

    Can't find a suitable configuration file in this directory or any parent. Are you in the right directory?

    Supported filenames: docker-compose.yml, docker-compose.yaml, fig.yml, fig.yaml
    [email protected]:~$ ./setup.sh 

bash: ./setup.sh: No such file or directory
[email protected]:~$

Please advise if I am missing anything in the setup.

Appreciate your help.


#2

Imported Google Group message.
Sender:Martin Buhr.
Date:Monday, 28 September 2015 11:47:41 UTC+1.

Hi Jad,

I think it’s because the git repo never got cloned :slight_smile:

You will need to use the https URL to clone the repo, then run the commands:

git clone https://github.com/lonelycode/tyk_quickstart.git

Cheers,
Martin


#3

Imported Google Group message.
Sender:Jad Ghanem.
Date:Monday, 28 September 2015 13:03:07 UTC+1.

Many thanks Martin,

Much appreciated, the https url worked.

I will move forward and update you accordingly.

Cheers.

  • show quoted text -

#4

Imported Google Group message.
Sender:Jad Ghanem.
Date:Monday, 28 September 2015 16:11:26 UTC+1.

Hi again Martin,

So far I have executed the following command:
sudo docker-compose up -d tyk_nginx

And a good number of downloads and pulls have happened.

Status: Downloaded newer image for tykio/tyk-dashboard:latest
Creating tykquickstart_tyk_dashboard_1…
Pulling tyk_nginx (tykio/tyk-host-manager:latest)…
latest: Pulling from tykio/tyk-host-manager
843e2bded498: Pull complete
8c00acfb0175: Pull complete
426ac73b867e: Verifying Checksum
d6c6bbd63f57: Download complete
4ac684e3f295: Download complete
93f81de2705a: Download complete
3a6a1b71b6e0: Download complete
4f7e3e7c2546: Download complete
b0d40bad0b2b: Verifying Checksum
bfd040d9aed8: Download complete
cc72ca035672: Download complete
0b354d33906d: Download complete
b448ee84e885: Download complete
24df3f1ce7f0: Download complete
f67fa8150d3c: Download complete
82d7210e594d: Download complete
a67d3a80148c: Download complete
95a129218e84: Download complete
c328e0b577c5: Download complete
aa3db20b8af9: Download complete
935cbb8b2247: Download complete
86badaaa93cb: Download complete
098005c1e386: Download complete
8145f582893f: Download complete
7b45ddf860c4: Download complete
ffa72a41580e: Download complete
2608acc07ab3: Download complete
2608acc07ab3: Layer already being pulled by another client. Waiting.

In case I lost my internet connection, is it OK to run the command again? Will it resume from where it stopped?

Please advise

  • show quoted text -

#5

Imported Google Group message.
Sender:Martin Buhr.
Date:Monday, 28 September 2015 16:30:54 UTC+1.

Hi Jad,

Yep you can just run it again to make sure it’s all in place. It looks like you already have some containers running though…

If you get any errors it may be because things are already running.

If you run:

sudo docker ps

You’ll see all the containers that have already been started

If there’s anything there you will need to stop the containers manually.

Are you in OSX or Linux?

Cheers,
Martin


#6

Imported Google Group message.
Sender:Jad Ghanem.
Date:Monday, 28 September 2015 16:40:21 UTC+1.

Hi Martin,

I’m on Linux.

When I run the command again, it says that the dashboard, gateway and 2 others are already up to date.

It is processing the host manager, but it says waiting because it is being pulled by other clients.

Is that ok? does this mean I can try again or should I just wait?

Please advise.

Cheers

  • show quoted text -

#7

Imported Google Group message.
Sender:Martin Buhr.
Date:Monday, 28 September 2015 16:46:11 UTC+1.

Hi Jad,

That’s a bit odd, it is basically saying that somewhere else on your system that container is being pulled by another process.

Might want to axe and restart the docker daemon and any related docker procs that are running, then pull the image again.

A bit of a painful start :wink:

Let me know how you get on.

Cheers,
Martin


#8

Imported Google Group message.
Sender:Jad Ghanem.
Date:Tuesday, 29 September 2015 09:58:49 UTC+1.

Hi Martin,

Many thanks, I have restarted the docker daemon and it started downloading and pulling again.

I am able to login to the gateway and all seems ok so far.

Will keep you posted if any.

Many thanks again for your help!

Cheers

  • show quoted text -