From dfc3dafe37b40702ff11173e7b37680f1a1e1a8b Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 3 Sep 2018 15:59:05 +0200 Subject: [PATCH] Add ODK Build selfsigned cert injection --- opendatakit-build/docker/etc/services.d/odkbuild/run | 1 + opendatakit-build/etc/init.d/opendatakit-build | 1 + 2 files changed, 2 insertions(+) diff --git a/opendatakit-build/docker/etc/services.d/odkbuild/run b/opendatakit-build/docker/etc/services.d/odkbuild/run index 9f19f5d..18dbff1 100755 --- a/opendatakit-build/docker/etc/services.d/odkbuild/run +++ b/opendatakit-build/docker/etc/services.d/odkbuild/run @@ -2,5 +2,6 @@ cd /srv/opendatakit-build fdmove -c 2 1 +foreground { /usr/sbin/update-ca-certificates } s6-setuidgid 8017:8017 bundle exec rackup config.ru -o 0.0.0.0 -p 8080 diff --git a/opendatakit-build/etc/init.d/opendatakit-build b/opendatakit-build/etc/init.d/opendatakit-build index c33bbac..478e92b 100755 --- a/opendatakit-build/etc/init.d/opendatakit-build +++ b/opendatakit-build/etc/init.d/opendatakit-build @@ -11,6 +11,7 @@ start() { --name opendatakit-build \ -h opendatakit-build \ --link postgres \ + -v /etc/ssl/services.pem:/usr/local/share/ca-certificates/services.crt \ -v /srv/opendatakit-build/conf/config.yml:/srv/opendatakit-build/config.yml \ opendatakit-build }