Interactive interface for browsing global, full-resolution satellite imagery
update build to el7
Mike McGanncf05bf373205
diff --git a/Gruntfile.js b/Gruntfile.jsindex 074369b7c..c8fd057f0 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -237,9 +237,6 @@ module.exports = function(grunt) {}, {from: '@BUILD_VERSION@',to: '<%=pkg.version%>'- }, {- from: '@BUILD_RELEASE@',- to: '<%=pkg.release%>'}, {from: '@BUILD_NUMBER@',to: buildNumberdiff --git a/httpd.conf b/httpd.confindex c816f6b42..9942dc2e6 100644--- a/httpd.conf+++ b/httpd.conf@@ -1,15 +1,8 @@-Alias /labs/@WORLDVIEW@/var /var/lib/@WORLDVIEW@-Alias /labs/@WORLDVIEW@ /usr/share/@WORLDVIEW@/web--AddHandler cgi-script .cgi+Alias /@WORLDVIEW@ /usr/share/@WORLDVIEW@/web<Directory /usr/share/@WORLDVIEW@/web>- AllowOverride All- Order allow,deny- Allow from all+ Require all granted</Directory>-<Directory /usr/share/@WORLDVIEW@/web/service>- Options ExecCGI-</Directory>+diff --git a/package.json b/package.jsonindex 32a1e596d..259e8f6e3 100644--- a/package.json+++ b/package.json@@ -28,10 +28,10 @@"scripts": {"browserstack": "node e2e/browserstack.js -c e2e/browserstack.conf.js -e browserstack ","build": "rm -rf build && run-s \"getcapabilities -- {1}\" \"build:config -- {1}\" --",- "postbuild": "run-p build:css build:js build:tests && grunt build site",+ "postbuild": "run-p build:css build:js build:tests && npx grunt build site","build:css": "node ./tasks/buildCSS","build:config": "bash -c 'tasks/buildOptions.sh ${1}' 0",- "postbuild:config": "grunt config",+ "postbuild:config": "npx grunt config","build:js": "node ./tasks/buildJS","build:tests": "node ./tasks/buildJS --tests","e2e": "run-s --continue-on-error --silent e2e:*",diff --git a/tasks/buildAll.sh b/tasks/buildAll.shindex 9347ca131..daf3bf24b 100755--- a/tasks/buildAll.sh+++ b/tasks/buildAll.sh@@ -8,14 +8,5 @@ rm -rf build dist node_modules .python web/buildnpm install --production=false # Install dependencies, set production false so devDependencies are installed even though NODE_ENV is set to productionnpm run build # Build the app-# Prepare rpm sources-mkdir -p build/rpm/{SOURCES,SPECS}-cp worldview.spec build/rpm/SPECS-cp dist/*.tar.bz2 build/rpm/SOURCES-cp *.conf build/rpm/SOURCES+tasks/buildRPM.sh-# Replace placeholders in rpm spec-grunt rpm-placeholders--# Build rpm-rpmbuild --define "_topdir $PWD/build/rpm" -ba build/rpm/SPECS/worldview.specdiff --git a/tasks/buildRPM.sh b/tasks/buildRPM.shnew file mode 100755index 000000000..f1015e164--- /dev/null+++ b/tasks/buildRPM.sh@@ -0,0 +1,13 @@+#!/bin/bash++# Prepare rpm sources+mkdir -p build/rpm/{SOURCES,SPECS}+cp worldview.spec build/rpm/SPECS+cp dist/*.tar.bz2 build/rpm/SOURCES+cp *.conf build/rpm/SOURCES++# Replace placeholders in rpm spec+npx grunt rpm-placeholders++# Build rpm+rpmbuild --define "_topdir $PWD/build/rpm" -ba build/rpm/SPECS/worldview.specdiff --git a/worldview.spec b/worldview.specindex e9f7e9230..3c99f6e20 100644--- a/worldview.spec+++ b/worldview.spec@@ -1,6 +1,6 @@Name: @WORLDVIEW@Version: @BUILD_VERSION@-Release: @BUILD_RELEASE@.@BUILD_NUMBER@%{?dist}+Release: 0.@BUILD_NUMBER@%{?dist}Summary: Browse full-resolution, near real-time satellite imagery.License: NASA-1.3URL: http://earthdata.nasa.gov@@ -68,28 +68,29 @@ rm -rf %{buildroot}%postif [ $1 -gt 0 ] ; then- if /sbin/service httpd status >/dev/null ; then- /sbin/service httpd reload+ if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then+ /bin/systemctl reload httpd.servicefifi%post debugif [ $1 -gt 0 ] ; then- if /sbin/service httpd status >/dev/null ; then- /sbin/service httpd reload+ if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then+ /bin/systemctl reload httpd.servicefifi%postun-if [ $1 -eq 0 ] ; then- if /sbin/service httpd status >/dev/null ; then- /sbin/service httpd reload+if [ $1 -gt 0 ] ; then+ if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then+ /bin/systemctl reload httpd.servicefifi%postun debug-if [ $1 -eq 0 ] ; then- if /sbin/service httpd status >/dev/null ; then- /sbin/service httpd reload+if [ $1 -gt 0 ] ; then+ if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then+ /bin/systemctl reload httpd.servicefifi+