Skip to content

Commit 0b6635b

Browse files
committed
fix(router): change nginx directory to /opt/nginx.
1 parent ccffb4f commit 0b6635b

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

router/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ CMD ["/app/bin/boot"]
2121

2222
ADD . /app
2323

24-
ADD nginx.tgz /nginx
24+
ADD nginx.tgz /opt/nginx
2525

2626
RUN rm nginx.tgz

router/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
4949
echo "Starting Nginx..."
50-
/nginx/sbin/nginx &
50+
/opt/nginx/sbin/nginx &
5151
SERVICE_PID=$!
5252

5353
# smart shutdown on SIGINT and SIGTERM

router/bin/check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ if grep -q "<no value>" $1 ; then
77
exit 1
88
fi
99

10-
if ! /nginx/sbin/nginx -t -c $1 ; then
10+
if ! /opt/nginx/sbin/nginx -t -c $1 ; then
1111
exit 1
1212
fi

router/conf.d/nginx.conf.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[template]
22
src = "nginx.conf"
3-
dest = "/nginx/conf/nginx.conf"
3+
dest = "/opt/nginx/conf/nginx.conf"
44
uid = 0
55
gid = 0
66
mode = "0644"
@@ -12,4 +12,4 @@ keys = [
1212
"/deis/builder",
1313
]
1414
check_cmd = "/app/bin/check {{ .src }}"
15-
reload_cmd = "/nginx/sbin/nginx -s reload"
15+
reload_cmd = "/opt/nginx/sbin/nginx -s reload"

router/parent/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ ADD . /tmp
44

55
RUN /tmp/build.sh
66

7-
RUN tar -C /nginx -czf /nginx.tgz .
7+
RUN tar -C /opt/nginx -czf /nginx.tgz .

router/parent/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export VERSION_TCP_PROXY=0.4.5
66
export BUILD_PATH=/tmp/build
77

88
# nginx installation directory
9-
export PREFIX=/nginx
9+
export PREFIX=/opt/nginx
1010

1111
rm -rf $PREFIX
1212
mkdir $PREFIX

router/templates/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ http {
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 }};

0 commit comments

Comments
 (0)