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
|
||||
service opendatakit-build start
|
||||
|
||||
# Create nginx app definition
|
||||
cp ${SOURCE_DIR}/etc/nginx/conf.d/opendatakit-build.conf /etc/nginx/conf.d/opendatakit-build.conf
|
||||
service nginx reload
|
||||
|
||||
# Add portal application definition
|
||||
portal-app-manager opendatakit-build "https://{host}:8417/"
|
||||
# Add application definition
|
||||
spotter-appmgr add-app opendatakit-build "https://opendatakit-build.{host}/"
|
||||
|
@ -50,6 +50,6 @@ RUN \
|
||||
|
||||
COPY docker/ /
|
||||
|
||||
EXPOSE 8017
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["s6-svscan", "/etc/services.d"]
|
||||
|
@ -3,4 +3,4 @@
|
||||
cd /srv/odkbuild
|
||||
fdmove -c 2 1
|
||||
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 \
|
||||
-h opendatakit-build \
|
||||
--link postgres \
|
||||
-p 127.0.0.1:8017:8017 \
|
||||
-v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml \
|
||||
opendatakit-build
|
||||
}
|
||||
|
||||
start_post() {
|
||||
/usr/local/bin/spotter-appmgr update-hosts opendatakit-build
|
||||
}
|
||||
|
||||
stop() {
|
||||
/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