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

After building the apisix-gateway getting the error. #421

Open
pbaregala opened this issue Jan 29, 2025 · 0 comments
Open

After building the apisix-gateway getting the error. #421

pbaregala opened this issue Jan 29, 2025 · 0 comments

Comments

@pbaregala
Copy link

pbaregala commented Jan 29, 2025

Hi,

Building the gateway had issues so, I made modifications to successfully build the gateway.
The changes were included in the following files:

  • Dockerfile.apisix-runtime.rpm
  • Dockerfile.apisix.rpm

Changes in Dockerfile.apisix-runtime.rpm and Dockerfile.apisix.rpm

To update the CentOS repository URLs, I added the following commands:

RUN cd /etc/yum.repos.d/ \
    && sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \
    && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Changes in Dockerfile.apisix.rpm

To ensure all dependencies were installed correctly, I enabled the powertools repository before installing libyaml-devel:

# Install dependencies
RUN yum --enablerepo=powertools install -y libyaml-devel

After enabling powertools, the build process was successful.

After building the gateway as an RPM, I encountered an installation error due to missing dependencies:

error: Failed dependencies:
    libyaml-devel is needed by apisix-3.11-0.el8.x86_64
    openldap-devel is needed by apisix-3.11-0.el8.x86_64

Note : Have mentioned the tag details and command


git checkout tags/apisix/3.11.0 -b apisix-3.11
make package type=rpm app=apisix version=3.11 checkout=3.11.0 image_base=centos image_tag=8

Can any give me any insides to make this up and running

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