examples icon indicating copy to clipboard operation
examples copied to clipboard

Kong and hello microservice containers fail to launch in "Secure microservices with Kong and Ory" tutorial code

Open tsagkase opened this issue 3 years ago • 0 comments

Preflight checklist

Describe the bug

Example code linked to in "Secure microservices with Kong and Ory" tutorial fails to run out of the box.

Specifically:

~/ory/examples/kratos-oathkeeper-kong (master)$ bash kong.config.sh 
curl: (7) Failed to connect to localhost port 8001 after 0 ms: Connection refused
curl: (7) Failed to connect to localhost port 8001 after 0 ms: Connection refused
curl: (7) Failed to connect to localhost port 8000 after 0 ms: Connection refused

Reproducing the bug

The following steps should be enough:

  1. docker-compose up --build
  2. (In new terminal) bash kong.config.sh
  3. Check docker logs kratos-oathkeeper-kong-kong-1 output
  4. Check docker logs kratos-oathkeeper-kong-kong-migrations-1 output
  5. Check docker logs kratos-oathkeeper-kong-hello-1 output

Relevant log output

~/ory/examples/kratos-oathkeeper-kong (master)$ docker logs kratos-oathkeeper-kong-kong-1 2>&1 | tail -1
exec /docker-entrypoint.sh: no such file or directory
~/ory/examples/kratos-oathkeeper-kong (master)$ docker logs kratos-oathkeeper-kong-hello-1 2>&1 | tail -1
exec /hello: no such file or directory
~/ory/examples/kratos-oathkeeper-kong (master)$ docker logs kratos-oathkeeper-kong-kong-migrations-1 2>&1 | tail -1
exec /docker-entrypoint.sh: no such file or directory

Relevant configuration

No response

Version

Commit af3428050da4b3ad0c70e7194fb390a34f7a1a2a

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

~/ory/examples/kratos-oathkeeper-kong (master)$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
~/ory/examples/kratos-oathkeeper-kong (master)$ git log -1
commit af3428050da4b3ad0c70e7194fb390a34f7a1a2a (HEAD -> master, origin/master, origin/HEAD)
Author: aeneasr <[email protected]>
Date:   Wed Jun 22 15:19:51 2022 +0000

    chore: update repository templates
    
    [skip ci] - updated repository templates to https://github.com/ory/meta/commit/8a3d37122ffbfd7323a9189367d8616a69e82b01

tsagkase avatar Jun 28 '22 11:06 tsagkase