Open polonia opened 5 years ago
FROM alpine
ENV KONG_VERSION 0.12.1
ENV KONG_SHA256 9f699e20e7d3aa6906b14d6b52cae9996995d595d646f9b10ce09c61d91a4257
RUN apk update \
&& apk add git \
&& apk add musl-dev \
&& apk add gcc \
&& apk add pcre-dev \
&& apk add --virtual .build-deps wget tar ca-certificates \
&& apk add libgcc openssl pcre perl \
&& apk add lua5.3 lua5.3-dev luarocks5.3 \
&& wget -O kong.tar.gz "https://download.konghq.com/gateway-0.x-alpine/kong-$KONG_VERSION.apk.tar.gz" \
&& echo "$KONG_SHA256 *kong.tar.gz" | sha256sum -c - \
&& tar -xzf kong.tar.gz -C /tmp \
&& rm -f kong.tar.gz \
&& cp -R /tmp/usr / \
&& rm -rf /tmp/usr \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
RUN luarocks-5.1 install busted
RUN ln -s /usr/local/openresty/bin/resty /usr/local/bin/resty
RUN mkdir -p /home/kong/bin
RUN mkdir -p /home/kong/spec
COPY busted /home/kong/bin/busted
RUN chmod 755 /home/kong/bin/busted
COPY helpers.lua /home/kong/spec/helpers.lua
COPY kong_tests.conf /home/kong/spec/kong_tests.conf
EXPOSE 8000 8443 8001 8444
STOPSIGNAL SIGTERM
CMD ["/usr/local/openresty/nginx/sbin/nginx", "-c", "/usr/local/kong/nginx.conf", "-p", "/usr/local/kong/"]
Works for me. ;)
On my fedora 30 machine (5.2.9-200.fc30.x86_64), i have an core dump on the step 7 of 17 of docker-compose up. There is any work arround?
All details are below: