Make docker config more in line with the VRE application
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d8eb05fcae
commit
8cae9aa60e
@ -1,10 +1,16 @@
|
||||
FROM nginx:mainline
|
||||
# Use the official NGINX image from the Docker Hub. But cached by the RUG registry to not to hit rate limits
|
||||
FROM registry.webhosting.rug.nl/cache/library/nginx:mainline
|
||||
#FROM nginx:mainline
|
||||
|
||||
RUN sed -i 's@user nginx;@user nginx;\nload_module modules/ngx_http_js_module.so;\nload_module modules/ngx_stream_js_module.so;@' /etc/nginx/nginx.conf
|
||||
RUN apt-get update && apt-get -y full-upgrade
|
||||
|
||||
COPY ./nginx/tus.vhost.conf /etc/nginx/conf.d/
|
||||
RUN sed -i 's@user nginx;@user nginx;\nload_module modules/ngx_http_js_module.so;\nload_module modules/ngx_stream_js_module.so;@' /etc/nginx/nginx.conf
|
||||
COPY ./nginx/njs/dropoff_tus.js /etc/nginx/
|
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
RUN sed -i 's@http://localhost:1080;@http://upload-server:1080;@g' /etc/nginx/conf.d/tus.vhost.conf
|
||||
RUN mkdir /etc/nginx/templates
|
||||
COPY ./nginx/tus.vhost.conf /etc/nginx/templates/default.conf.template
|
||||
|
||||
|
||||
# TODO: Make the resolver IP and instance hostname more variable!!
|
||||
RUN sed -i "s@resolver.*;@resolver 10.43.0.10 valid=30s;@g" /etc/nginx/templates/default.conf.template
|
||||
RUN sed -i 's@localhost@upload-server@g' /etc/nginx/templates/default.conf.template
|
||||
|
Loading…
Reference in New Issue