Unify ODK Build naming and nginx configuration for spotter-appmgr
This commit is contained in:
parent
2edd4e19f8
commit
12b7200f9e
@ -24,9 +24,5 @@ cp ${SOURCE_DIR}/etc/init.d/opendatakit-build /etc/init.d/opendatakit-build
|
|||||||
rc-update add opendatakit-build
|
rc-update add opendatakit-build
|
||||||
service opendatakit-build start
|
service opendatakit-build start
|
||||||
|
|
||||||
# Create nginx app definition
|
# Add application definition
|
||||||
cp ${SOURCE_DIR}/etc/nginx/conf.d/opendatakit-build.conf /etc/nginx/conf.d/opendatakit-build.conf
|
spotter-appmgr add-app opendatakit-build "https://opendatakit-build.{host}/"
|
||||||
service nginx reload
|
|
||||||
|
|
||||||
# Add portal application definition
|
|
||||||
portal-app-manager opendatakit-build "https://{host}:8417/"
|
|
||||||
|
@ -50,6 +50,6 @@ RUN \
|
|||||||
|
|
||||||
COPY docker/ /
|
COPY docker/ /
|
||||||
|
|
||||||
EXPOSE 8017
|
EXPOSE 8080
|
||||||
|
|
||||||
CMD ["s6-svscan", "/etc/services.d"]
|
CMD ["s6-svscan", "/etc/services.d"]
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
cd /srv/odkbuild
|
cd /srv/odkbuild
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
s6-setuidgid 8017:8017
|
s6-setuidgid 8017:8017
|
||||||
bundle exec rackup config.ru -o 0.0.0.0 -p 8017
|
bundle exec rackup config.ru -o 0.0.0.0 -p 8080
|
||||||
|
@ -12,11 +12,14 @@ start() {
|
|||||||
--name opendatakit-build \
|
--name opendatakit-build \
|
||||||
-h opendatakit-build \
|
-h opendatakit-build \
|
||||||
--link postgres \
|
--link postgres \
|
||||||
-p 127.0.0.1:8017:8017 \
|
|
||||||
-v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml \
|
-v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml \
|
||||||
opendatakit-build
|
opendatakit-build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_post() {
|
||||||
|
/usr/local/bin/spotter-appmgr update-hosts opendatakit-build
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
/usr/bin/docker stop opendatakit-build
|
/usr/bin/docker stop opendatakit-build
|
||||||
}
|
}
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
server {
|
|
||||||
listen [::]:8817 ipv6only=off;
|
|
||||||
listen [::]:8417 ssl http2 ipv6only=off;
|
|
||||||
|
|
||||||
access_log /var/log/nginx/opendatakit-build.access.log;
|
|
||||||
error_log /var/log/nginx/opendatakit-build.error.log;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://127.0.0.1:8017;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user