-
Notifications
You must be signed in to change notification settings - Fork 96
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
An error while compiling with tongsuo. #282
Comments
Has this problem been resolved? If so, can you provide the correct dockerfile |
Hi you can use this Dockerfile build apisix-gm image `FROM debian:bullseye-slim as base RUN set -ex; WORKDIR / RUN ./config shared enable-ntls -g --prefix=/usr/local/tongsuo ARG OR_PREFIX=/usr/local/openresty RUN git clone https://github.com/api7/apisix-build-tools.git /apisix-build-tools RUN ./build-apisix-base.sh ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin #RUN curl https://raw.githubusercontent.com/apache/apisix/master/utils/install-dependencies.sh -sL | bash - RUN cp -rf /usr/local/tongsuo /usr/local/openresty COPY ./install-deps.sh /install-deps.sh WORKDIR / RUN bash /install-luarocks.sh COPY ./apisix /apisix WORKDIR /apisix RUN make deps WORKDIR /usr/local/apisix RUN rm -rf /apisix-build-tools /install-deps.sh /install-luarocks.sh /tongsuo COPY ./apisix-inner /usr/local/apisix FROM debian:bullseye-slim COPY --from=base /usr/local /usr/local RUN rm -rf /usr/local/go ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin forward request and error logs to docker log collectorRUN ln -sf /dev/stdout /usr/local/apisix/logs/access.log EXPOSE 9080 9443 COPY ./docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["docker-start"] STOPSIGNAL SIGQUIT` |
I encountered an error when compiling with tongsuo, while compiling separately with ./build-apisix-base.sh doesn't produce any error. It seems like there is a bug when specifying the compilation environment variables.
This is the Dockerfile:
Some output:
The text was updated successfully, but these errors were encountered: