Fetch access key, secret and token from metadata service using resty-http if not provided as ENV-props
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user