RED-8128 other fixes
This commit is contained in:
parent
92e1e68b3a
commit
9d7bf0e95c
@ -58,10 +58,7 @@ echo '{
|
||||
echo 'Env variables: '
|
||||
cat /usr/share/nginx/html/ui/assets/config/config.json
|
||||
|
||||
echo 'Running with config: '
|
||||
cat /etc/nginx/nginx.conf
|
||||
|
||||
echo 'Default config:'
|
||||
cat /etc/nginx/conf.d/default.conf
|
||||
|
||||
#nginx -g 'daemon off;'
|
||||
echo 'Change files permissions:'
|
||||
chown a+rw -R /etc/nginx/conf.d
|
||||
chown a+rw /etc/nginx/conf.d/default.conf
|
||||
ls -al /etc/nginx/conf.d
|
||||
9
docker/red-ui/40-check-config.sh
Executable file
9
docker/red-ui/40-check-config.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo 'Running with config: '
|
||||
cat /etc/nginx/nginx.conf
|
||||
|
||||
echo 'Default config:'
|
||||
cat /etc/nginx/conf.d/default.conf
|
||||
|
||||
#nginx -g 'daemon off;'
|
||||
@ -35,6 +35,8 @@ RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=builder /ng-app/dist/apps/red-ui /usr/share/nginx/html/ui
|
||||
COPY version.json /usr/share/nginx/html/ui/assets/version/version.json
|
||||
|
||||
USER root
|
||||
|
||||
RUN chmod a+rw -R /etc/nginx/conf.d
|
||||
RUN chmod o+r -R /usr/share/nginx/html
|
||||
RUN chmod g+r -R /usr/share/nginx/html
|
||||
@ -42,5 +44,6 @@ RUN chmod g+r -R /usr/share/nginx/html
|
||||
## Change permissions to enable openShift functionality
|
||||
# RUN chmod -R g+rwx /var/cache/nginx /var/run /var/log/nginx /usr/share /etc/nginx
|
||||
|
||||
COPY docker/red-ui/40-set-application-config.sh docker-entrypoint.d/
|
||||
COPY docker/red-ui/09-set-application-config.sh docker-entrypoint.d/
|
||||
COPY docker/red-ui/40-check-config.sh docker-entrypoint.d/
|
||||
#CMD ["/docker-entrypoint.sh"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user