File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ CMD ["/app/bin/boot"]
2121
2222ADD . /app
2323
24- ADD nginx.tgz /nginx
24+ ADD nginx.tgz /opt/ nginx
2525
2626RUN rm nginx.tgz
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ etcd_set_default gzipTypes "application/x-javascript application/xhtml+xml appli
4747
4848# spawn the service in the background
4949echo " Starting Nginx..."
50- /nginx/sbin/nginx &
50+ /opt/ nginx/sbin/nginx &
5151SERVICE_PID=$!
5252
5353# smart shutdown on SIGINT and SIGTERM
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ if grep -q "<no value>" $1 ; then
77 exit 1
88fi
99
10- if ! /nginx/sbin/nginx -t -c $1 ; then
10+ if ! /opt/ nginx/sbin/nginx -t -c $1 ; then
1111 exit 1
1212fi
Original file line number Diff line number Diff line change 11[template ]
22src = " nginx.conf"
3- dest = " /nginx/conf/nginx.conf"
3+ dest = " /opt/ nginx/conf/nginx.conf"
44uid = 0
55gid = 0
66mode = " 0644"
@@ -12,4 +12,4 @@ keys = [
1212 " /deis/builder" ,
1313]
1414check_cmd = " /app/bin/check {{ .src }}"
15- reload_cmd = " /nginx/sbin/nginx -s reload"
15+ reload_cmd = " /opt/ nginx/sbin/nginx -s reload"
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ ADD . /tmp
44
55RUN /tmp/build.sh
66
7- RUN tar -C /nginx -czf /nginx.tgz .
7+ RUN tar -C /opt/ nginx -czf /nginx.tgz .
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export VERSION_TCP_PROXY=0.4.5
66export BUILD_PATH=/tmp/build
77
88# nginx installation directory
9- export PREFIX=/nginx
9+ export PREFIX=/opt/ nginx
1010
1111rm -rf $PREFIX
1212mkdir $PREFIX
Original file line number Diff line number Diff line change 1919 types_hash_max_size 2048 ;
2020 server_names_hash_bucket_size 64 ;
2121
22- include /nginx/conf/mime.types ;
22+ include /opt/ nginx/conf/mime.types ;
2323 default_type application/octet-stream ;
2424 {{ if .deis_router_gzip }}
2525 gzip {{ .deis_router_gzip }} ;
You can’t perform that action at this time.
0 commit comments