Fetch access key, secret and token from metadata service using resty-http if not provided as ENV-props

This commit is contained in:
2019-08-02 11:46:00 +02:00
parent 8200f46985
commit a6c6363c9f
7 changed files with 1781 additions and 32 deletions
+4 -1
View File
@@ -20,6 +20,9 @@ RUN wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gz -O ngx_dev
wget https://github.com/openresty/lua-resty-core/archive/v0.1.17.tar.gz -O lua-resty-core.tar.gz && \
mkdir lua-resty-core && \
tar xf lua-resty-core.tar.gz -C lua-resty-core --strip-components=1 && \
wget https://github.com/ledgetech/lua-resty-http/archive/v0.14.tar.gz -O lua-resty-http.tar.gz && \
mkdir lua-resty-http && \
tar xf lua-resty-http.tar.gz -C lua-resty-http --strip-components=1 && \
wget https://github.com/openresty/lua-nginx-module/archive/v0.10.15.tar.gz -O lua-nginx-module.tar.gz && \
mkdir lua-nginx-module && \
tar xf lua-nginx-module.tar.gz -C lua-nginx-module --strip-components=1 && \
@@ -56,7 +59,7 @@ RUN ln -sf /dev/stdout /var/log/nginx/access.log \
# Apply Nginx config
ADD nginx.conf /etc/nginx/nginx.conf
ADD sign.lua hmac.lua sha2.lua /tmp/lua/
ADD fetcher.lua hmac.lua JSON.lua sha2.lua sign.lua /tmp/lua/
ADD start.sh /start.sh
# Set default command