Kong/kong-pongo

Does Pongo support Kong CentOS image

asanivarapu opened this issue · 3 comments

Hi Team,
I am trying to run pongo on centos. I get below error. When I try the same on alpine/ubuntu images, pongo executes fine!.
Anything I need to customize for centos?

Error I see: When I execute: KONG_VERSION=2.5.x KONG_IMAGE=kong:2.5.0-centos pongo run

[pongo-INFO] Resolved Kong version 2.5.x to 2.5.1
[pongo-INFO] auto-starting the test environment, use the 'pongo down' action to stop it
Unable to find image 'kong:2.5.0-centos' locally
2.5.0-centos: Pulling from library/kong
2d473b07cdd5: Pulling fs layer
1bf5a22c3329: Pulling fs layer
77c55ecca617: Pulling fs layer
a43a42199132: Pulling fs layer
a43a42199132: Waiting
1bf5a22c3329: Verifying Checksum
1bf5a22c3329: Download complete
a43a42199132: Verifying Checksum
a43a42199132: Download complete
77c55ecca617: Download complete
2d473b07cdd5: Download complete
2d473b07cdd5: Pull complete
1bf5a22c3329: Pull complete
77c55ecca617: Pull complete
a43a42199132: Pull complete
Digest: sha256:c4b986e95eafd8535d19af8bc437b0decfff9159b1b4caf22f28e7ddaf7b85bc
Status: Downloaded newer image for kong:2.5.0-centos
[pongo-INFO] image 'kong-pongo-test:2.5.0' not found, auto-building it
[pongo-INFO] starting build of image 'kong-pongo-test:2.5.0'
[pongo-INFO] image 'kong-pongo-test:2.5.0' not found, auto-building it
[pongo-INFO] starting build of image 'kong-pongo-test:2.5.0'
[+] Building 1.2s (12/13)
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 38B                                                                                0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/kong:2.5.0-centos                                               0.0s
 => [1/9] FROM docker.io/library/kong:2.5.0-centos                                                                 0.2s
 => [internal] load build context                                                                                  0.3s
 => => transferring context: 918.43kB                                                                              0.2s
 => [2/9] COPY ./kong-versions/2.5.0/kong /kong                                                                    0.1s
 => [3/9] COPY assets/busted_helper.lua      /pongo/busted_helper.lua                                              0.1s
 => [4/9] COPY assets/pongo_entrypoint.sh    /pongo/pongo_entrypoint.sh                                            0.1s
 => [5/9] COPY assets/default-pongo-setup.sh /pongo/default-pongo-setup.sh                                         0.1s
 => [6/9] COPY assets/pongo_pack.lua         /pongo/pongo_pack.lua                                                 0.1s
 => [7/9] COPY assets/pongo_profile.sh       /etc/profile.d/pongo_profile.sh                                       0.1s
 => ERROR [8/9] RUN apk update     && apk add zip unzip make g++ py-pip jq git bsd-compat-headers m4 openssl-dev   0.3s
------
 > [8/9] RUN apk update     && apk add zip unzip make g++ py-pip jq git bsd-compat-headers m4 openssl-dev curl     && curl -k -s -S -L https://github.com/fullstorydev/grpcurl/releases/download/v1.7.0/grpcurl_1.7.0_linux_x86_64.tar.gz | tar xz -C /kong/bin     && pip install httpie     ; cd /kong     && git config --global url.https://github.com/.insteadOf git://github.com/     && make dependencies     && luarocks install busted-htest     && luarocks install luacov:
#12 0.299 /bin/sh: apk: command not found
#12 0.301 /bin/sh: make: command not found
------
executor failed running [/bin/sh -c apk update     && apk add zip unzip make g++ py-pip jq git bsd-compat-headers m4 openssl-dev curl     && curl -k -s -S -L https://github.com/fullstorydev/grpcurl/releases/download/v1.7.0/grpcurl_1.7.0_linux_x86_64.tar.gz | tar xz -C /kong/bin     && pip install httpie     ; cd /kong     && git config --global url.https://github.com/.insteadOf git://github.com/     && make dependencies     && luarocks install busted-htest     && luarocks install luacov]: exit code: 127
[pongo-ERROR] Error: failed to build test environment`
```

It tries to invoke apk as the package manager, but that is not the one available on centos. You'll need to customise the ./assets/dockerfile to replace the apk commands with something that works on centos.

Any luck?

Essentially the state of CentOS is an EOL one. So your best option would be to move away from CentOS.