Interactive interface for browsing global, full-resolution satellite imagery
updated rpm build
Mike McGann5c5a25046b93
diff --git a/rpm/README.md b/rpm/README.mdnew file mode 100644index 000000000..4a4b1341a--- /dev/null+++ b/rpm/README.md@@ -0,0 +1,2 @@+https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/+diff --git a/rpm/buildRPM.js b/rpm/buildRPM.jsindex e562c9633..1c42b37e9 100755--- a/rpm/buildRPM.js+++ b/rpm/buildRPM.js@@ -9,8 +9,6 @@ const homedir = require('os').homedir();// https://github.com/docker/for-mac/issues/2296-shell.exec('npm run dist');-console.log('Preparing RPM build');shell.rm('-rf', `${homedir}/rpmbuild`);shell.mkdir('-p', `${homedir}/rpmbuild/SOURCES`);diff --git a/rpm/httpd.conf b/rpm/httpd.confindex c816f6b42..20f4c4e07 100644--- a/rpm/httpd.conf+++ b/rpm/httpd.conf@@ -1,15 +1,9 @@-Alias /labs/@WORLDVIEW@/var /var/lib/@WORLDVIEW@-Alias /labs/@WORLDVIEW@ /usr/share/@WORLDVIEW@/web+Alias /labs/worldview /usr/share/worldview-AddHandler cgi-script .cgi--<Directory /usr/share/@WORLDVIEW@/web>+<Directory /usr/share/worldview>AllowOverride AllOrder allow,denyAllow from all</Directory>-<Directory /usr/share/@WORLDVIEW@/web/service>- Options ExecCGI-</Directory>diff --git a/tasks/buildAll.sh b/tasks/buildAll.shindex daf3bf24b..e5b001c62 100755--- a/tasks/buildAll.sh+++ b/tasks/buildAll.sh@@ -3,10 +3,9 @@# Bash commands to run in Bamboo to prepare an rpm for deployment# Reset directories that have build or install artifacts-rm -rf build dist node_modules .python web/build+npm run distcleannpm install --production=false # Install dependencies, set production false so devDependencies are installed even though NODE_ENV is set to production-npm run build # Build the app--tasks/buildRPM.sh+npm run dist+node rpm/buildRPM.jsdiff --git a/tasks/dist.js b/tasks/dist.jsindex e838df2d1..7fb7ba673 100755--- a/tasks/dist.js+++ b/tasks/dist.js@@ -13,7 +13,11 @@ shell.cp('-rf', 'web/*', 'build/worldview');console.log('Branding');let brand = require('../build/worldview/brand/brand.json');-let applyTo = ['build/worldview/index.html', 'build/worldview/build/wv.js'];+let applyTo = [+ 'build/worldview/index.html',+ 'build/worldview/build/wv.js',+ 'build/worldview/pages/about.html'+];// Build date shown in the About boxlet buildTimestamp = moment.utc().format('MMMM DD, YYYY [-] HH:mm [UTC]');@@ -26,13 +30,13 @@ let longName = brand.longName || brand.name;let shortName = brand.shortName || brand.name;let email = brand.email || '[email protected]';-shell.sed('-i', '@OFFICIAL_NAME@', officialName, applyTo);-shell.sed('-i', '@LONG_NAME@', longName, applyTo);-shell.sed('-i', '@NAME@', shortName, applyTo);-shell.sed('-i', '@MAIL@', email, applyTo);-shell.sed('-i', '@BUILD_NONCE', buildNonce, applyTo);-shell.sed('-i', '@BUILD_TIMESTAMP@', buildTimestamp, applyTo);-shell.sed('-i', '@BUILD_VERSION@', pkg.version, applyTo);+shell.sed('-i', /@OFFICIAL_NAME@/g, officialName, applyTo);+shell.sed('-i', /@LONG_NAME@/g, longName, applyTo);+shell.sed('-i', /@NAME@/g, shortName, applyTo);+shell.sed('-i', /@MAIL@/g, email, applyTo);+shell.sed('-i', /@BUILD_NONCE/g, buildNonce, applyTo);+shell.sed('-i', /@BUILD_TIMESTAMP@/g, buildTimestamp, applyTo);+shell.sed('-i', /@BUILD_VERSION@/g, pkg.version, applyTo);let dist = 'dist/worldview.tar.gz';console.log(`Creating distribution: ${dist}`);