Add cloudbuild configuration for echo test image

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-06-26 16:02:30 -04:00
parent 0a128d3467
commit a750cf49be
3 changed files with 71 additions and 14 deletions

View file

@ -1,13 +1,19 @@
FROM quay.io/kubernetes-ingress-controller/nginx:e3c49c52f4b74fe47ad65d6f3266a02e8b6b622f
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
RUN apk add -U perl curl make unzip
RUN wget -O /tmp/luarocks.tgz https://github.com/luarocks/luarocks/archive/v3.3.1.tar.gz \
ARG LUAROCKS_VERSION
ARG LUAROCKS_SHA
RUN wget -O /tmp/luarocks.tgz \
https://github.com/luarocks/luarocks/archive/v${LUAROCKS_VERSION}.tar.gz \
&& echo "${LUAROCKS_SHA} */tmp/luarocks.tgz" | sha256sum -c - \
&& tar -C /tmp -xzf /tmp/luarocks.tgz \
&& cd /tmp/luarocks* \
&& ./configure \
&& make install \
&& rm -rf /tmp/*
&& make install
RUN luarocks install lua-resty-template