Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Openresty Failed with Kong 2.8.5 and Kong-build-tool 4.42.1 #653

Open
luis-chan-mox opened this issue Aug 9, 2024 · 0 comments

Comments

@luis-chan-mox
Copy link

Version:

  • Kong 2.8.5
  • Kong-build-tools 4.42.1

Description:

  • make build-openresty failed and returned with error
    Error response from daemon: manifest for kong/kong-build-tools:openresty-apk-9e78220-7e89c53171d8a7954f72e76e79dd49a2a2bc96f6cbdf78753a285177842219aa10-0-openssl not found: manifest unknown
Image Tag DOCKER_OPENRESTY_SUFFIX formed by Tag
kong/kong-build-tools:openresty- kong/kong-build-tools:openresty-
apk-${BUILD_TOOLS_SHA}- apk-9e78220-
${REQUIREMENTS_SHA} 7e89c53171d8a7954f72e76e79dd49a2a2bc96f6cbdf78753a285177842219aa
${OPENRESTY_PATCHES} 1
${DEBUG}-${CACHE_BUSTER}-${SSL_PROVIDER} 0-0-openssl

The BUILD_TOOLS_SHA : 9e78220 do exist on the docker hub , which is defined by the version of the build tool, but the REQUIREMENTS_SHA : 7e89c53171d8a7954f72e76e79dd49a2a2bc96f6cbdf78753a285177842219aa is determined by $(find kong/distribution -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum | cut -d' ' -f 1) , which is related to the .requirements file of kong , cannot be found. The docker hub : link

Error:

starting make in kong-build-tools
rm -rf kong
cp -R "$PWD/../kong/" kong
mkdir -pv kong/distribution
mkdir: created directory 'kong/distribution'
git submodule update --init --recursive
Submodule 'lua-kong-nginx-module' ([email protected]:Kong/lua-kong-nginx-module.git) registered for path 'lua-kong-nginx-module'
Submodule 'lua-resty-lmdb' ([email protected]:Kong/lua-resty-lmdb.git) registered for path 'lua-resty-lmdb'
Cloning into '/home/circleci/repo/kong-build-tools/lua-kong-nginx-module'...
Cloning into '/home/circleci/repo/kong-build-tools/lua-resty-lmdb'...
Submodule path 'lua-kong-nginx-module': checked out 'fec73310688b16da974a97e52bf27aa9c698bfaa'
Submodule path 'lua-resty-lmdb': checked out '13384fcdcec7b15f1b499c8c958ab6a050e64f10'
Submodule 'lmdb' (https://github.com/LMDB/lmdb.git) registered for path 'lua-resty-lmdb/lmdb'
Cloning into '/home/circleci/repo/kong-build-tools/lua-resty-lmdb/lmdb'...
Submodule path 'lua-resty-lmdb/lmdb': checked out '01b1b7dc204abdf3849536979205dc9e3a0e3ece'
git submodule status
 fec73310688b16da974a97e52bf27aa9c698bfaa lua-kong-nginx-module (*****-17-gfec7331)
 13384fcdcec7b15f1b499c8c958ab6a050e64f10 lua-resty-lmdb (1.0.0~2)
git -C kong submodule update --init --recursive
git -C kong submodule status
cp kong/.requirements kong/distribution/.requirements
rm github-token
rm: cannot remove 'github-token': No such file or directory
make: [Makefile:227: build-openresty] Error 1 (ignored)
docker pull kong/kong-build-tools:openresty-apk-$(git rev-parse --short HEAD)-$(find kong/distribution -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum  | cut -d' ' -f 1)10-0-openssl || \
( \
        echo $GITHUB_TOKEN > github-token; \
        docker pull --quiet $(sed -ne 's;FROM \(.*apk.*\) as.*;\1;p' dockerfiles/Dockerfile.openresty); \
        docker buildx build --progress=auto  --platform="linux/amd64" --label org.opencontainers.image.version=`./grep-kong-version.sh "$PWD/../kong/"` --label org.opencontainers.image.created=`date -u +'%Y-%m-%dT%H:%M:%SZ'` --label org.opencontainers.image.revision=$(git --git-dir="$PWD/../kong/"/.git rev-parse --short HEAD) -f dockerfiles/Dockerfile.openresty \
        --secret id=github-token,src=github-token \
        --build-arg RESTY_VERSION=`grep RESTY_VERSION "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg RESTY_LUAROCKS_VERSION=`grep RESTY_LUAROCKS_VERSION "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg KONG_OPENSSL_VERSION=`grep KONG_OPENSSL_VERSION "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg RESTY_OPENSSL_VERSION=`grep RESTY_OPENSSL_VERSION "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg RESTY_BORINGSSL_VERSION=`grep RESTY_BORINGSSL_VERSION "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg SSL_PROVIDER=openssl \
        --build-arg RESTY_PCRE_VERSION=`grep RESTY_PCRE_VERSION "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg PACKAGE_TYPE=apk \
        --build-arg DOCKER_REPOSITORY=kong/kong-build-tools \
        --build-arg DOCKER_BASE_SUFFIX=$(git rev-parse --short HEAD)0 \
        --build-arg EDITION=`grep EDITION "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg ENABLE_KONG_LICENSING=`grep ENABLE_KONG_LICENSING "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg KONG_NGINX_MODULE=`grep KONG_NGINX_MODULE "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg RESTY_LMDB=`grep RESTY_LMDB "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg RESTY_WEBSOCKET=`grep RESTY_WEBSOCKET "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg RESTY_EVENTS=`grep RESTY_EVENTS "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg ATC_ROUTER=`grep ATC_ROUTER "$PWD/../kong/"/.requirements | awk -F"=" '{print $2}'` \
        --build-arg OPENRESTY_PATCHES=1 \
        --build-arg DEBUG=0 \
        --build-arg BUILDKIT_INLINE_CACHE=1 \
        -t kong/kong-build-tools:openresty-apk-$(git rev-parse --short HEAD)-$(find kong/distribution -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum  | cut -d' ' -f 1)10-0-openssl . && \
        ( \
                rm github-token || true \
        ) \
)
Error response from daemon: manifest for kong/kong-build-tools:openresty-apk-9e78220-7e89c53171d8a7954f72e76e79dd49a2a2bc96f6cbdf78753a285177842219aa10-0-openssl not found: manifest unknown: manifest unknown
docker.io/kong/kong-build-tools:apk-1.8.3
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build
make: *** [Makefile:228: build-openresty] Error 1

Exited with code exit status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant