Interactive interface for browsing global, full-resolution satellite imagery
Grunt now builds RPMs
Mike McGanncfacc63845f0
diff --git a/.gitignore b/.gitignoreindex c78c8f7ba..dcc60c6fe 100644--- a/.gitignore+++ b/.gitignore@@ -3,6 +3,7 @@ distnode_modules.project.settings-.pydevproject+.pydevprioject.DS_Store*~+*.swpdiff --git a/Gruntfile.js b/Gruntfile.jsindex ba3aaf956..f04b176a4 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -106,6 +106,25 @@ module.exports = function(grunt) {{ expand: true, cwd: "build/worldview-debug/web/ext/jcrop",src: ["*.gif"], dest: "build/worldview-debug/web/ext" },]+ },++ rpm_sources: {+ files: [+ { expand: true, cwd: "etc/deploy/sources",+ src: ["**"], dest: "build/rpmbuild/SOURCES" },+ { expand: true, cwd: "etc/deploy",+ src: ["worldview.spec"], dest: "build/rpmbuild/SPECS" },+ { expand: true, cwd: "dist",+ src: ["worldview.tar.gz", "worldview-debug.tar.gz"],+ dest: "build/rpmbuild/SOURCES" }+ ]+ },++ rpm: {+ files: [+ { expand: true, flatten: true, cwd: "build/rpmbuild",+ src: ["**/*.rpm"], dest: "dist" }+ ]}},@@ -148,6 +167,10 @@ module.exports = function(grunt) {// Remove all of them.empty: {command: "find build -type d -empty -delete"+ },+ rpmbuild: {+ command: 'rpmbuild --define "_topdir $PWD/build/rpmbuild" ' ++ '-ba build/rpmbuild/SPECS/worldview.spec'}},@@ -195,6 +218,27 @@ module.exports = function(grunt) {from: /.*link.prod.*!--(.*)--.*/g,to: "$1"}]+ },+ rpm_sources: {+ src: [+ "build/rpmbuild/SOURCES/*",+ "build/rpmbuild/SPECS/*",+ "!**/*.tar.gz"+ ],+ overwrite: true,+ replacements: [{+ from: "@WORLDVIEW@",+ to: "<%= pkg.name %>"+ },{+ from: "@BUILD_VERSION@",+ to: "<%= pkg.version %>"+ },{+ from: "@BUILD_RELEASE@",+ to: "<%= pkg.release %>"+ },{+ from: "@GIT_REVISION@",+ to: ".git<%= grunt.config.get('git-revision') %>"+ }]}},@@ -287,11 +331,13 @@ module.exports = function(grunt) {// git revision.debug_versioned: {options: {+ mode: "tgz",archive: "dist/" +"<%= pkg.name %>" +"-debug" +"-<%= pkg.version %>" +- "-git<%= grunt.config.get('git-revision') %>" ++ "-<%= pkg.release %>" ++ ".git<%= grunt.config.get('git-revision') %>" +".tar.gz"},files: [{@@ -303,6 +349,7 @@ module.exports = function(grunt) {// information.debug: {options: {+ mode: "tgz",archive: "dist/worldview-debug.tar.gz"},files: [{@@ -314,10 +361,12 @@ module.exports = function(grunt) {// git revision.release_versioned: {options: {+ mode: "tgz",archive: "dist/" +"<%= pkg.name %>" +"-<%= pkg.version %>" +- "-git<%= grunt.config.get('git-revision') %>" ++ "-<%= pkg.release %>" ++ ".git<%= grunt.config.get('git-revision') %>" +".tar.gz"},files: [{@@ -329,6 +378,7 @@ module.exports = function(grunt) {// information.release: {options: {+ mode: "tgz",archive: "dist/worldview.tar.gz"},files: [{@@ -356,12 +406,13 @@ module.exports = function(grunt) {"!build/worldview-debug/web/css/bulkDownload.css","!build/worldview-debug/web/js/Worldview/Map/TileWorker.js"],- dist_tar: ["dist/*.tar.gz"]+ dist_tar: ["dist/*.tar.gz"],+ rpmbuild: ["build/rpmbuild"]}});- grunt.file.mkdir("build");+ grunt.file.mkdir("build/rpmbuild");grunt.file.mkdir("dist");grunt.loadNpmTasks("grunt-contrib-clean");@@ -410,9 +461,18 @@ module.exports = function(grunt) {"compress"]);+ grunt.registerTask("rpm_only", [+ "remove:rpmbuild",+ "copy:rpm_sources",+ "replace:rpm_sources",+ "exec:rpmbuild",+ "copy:rpm"+ ]);++ grunt.registerTask("rpm", ["build", "rpm_only"]);grunt.registerTask("clean", "remove:build");grunt.registerTask("distclean", ["remove:build", "remove:dist"]);grunt.registerTask("default", "build");-};\ No newline at end of file+};diff --git a/etc/deploy/cron.worldview b/etc/deploy/cron.worldviewdeleted file mode 100644index ad264ea9b..000000000--- a/etc/deploy/cron.worldview+++ /dev/null@@ -1 +0,0 @@-0 * * * * apache /usr/share/worldview/bin/eventsGeoRssParser.py 2>&1 >/dev/nulldiff --git a/etc/deploy/httpd.worldview-debug.conf b/etc/deploy/httpd.worldview-debug.confdeleted file mode 100644index 8edf0d8ee..000000000--- a/etc/deploy/httpd.worldview-debug.conf+++ /dev/null@@ -1,13 +0,0 @@-Alias /labs/worldview-debug/var /var/lib/worldview-Alias /labs/worldview-debug /usr/share/worldview-debug/web--<Directory /usr/share/worldview-debug/web>- AllowOverride All- Order allow,deny- Allow from all-</Directory>--<Directory /usr/share/worldview-debug/web/service>- Options ExecCGI-</Directory>-diff --git a/etc/deploy/httpd.worldview.conf b/etc/deploy/httpd.worldview.confdeleted file mode 100644index 45a2044b0..000000000--- a/etc/deploy/httpd.worldview.conf+++ /dev/null@@ -1,13 +0,0 @@-Alias /labs/worldview/var /var/lib/worldview-Alias /labs/worldview /usr/share/worldview/web--<Directory /usr/share/worldview/web>- AllowOverride All- Order allow,deny- Allow from all-</Directory>--<Directory /usr/share/worldview/web/service>- Options ExecCGI-</Directory>-diff --git a/etc/deploy/sources/cron.worldview b/etc/deploy/sources/cron.worldviewnew file mode 100644index 000000000..ecced583d--- /dev/null+++ b/etc/deploy/sources/cron.worldview@@ -0,0 +1 @@+0 * * * * apache /usr/share/@WORLDVIEW@/bin/eventsGeoRssParser.py 2>&1 >/dev/nulldiff --git a/etc/deploy/sources/cron.worldview-debug b/etc/deploy/sources/cron.worldview-debugnew file mode 100644index 000000000..ccb793c8e--- /dev/null+++ b/etc/deploy/sources/cron.worldview-debug@@ -0,0 +1 @@+0 * * * * apache /usr/share/@WORLDVIEW@-debug/bin/eventsGeoRssParser.py 2>&1 >/dev/nulldiff --git a/etc/deploy/sources/events_log-debug.conf b/etc/deploy/sources/events_log-debug.confnew file mode 100644index 000000000..35aa82c40--- /dev/null+++ b/etc/deploy/sources/events_log-debug.conf@@ -0,0 +1,51 @@+[loggers]+keys=root,access,error,debug++[handlers]+keys=access,error,debug++[formatters]+keys=basicFormatter++[logger_root]+level=DEBUG+handlers=""++[logger_access]+level=DEBUG+handlers=access+qualname=eventsAccess+propagate=0++[logger_error]+level=DEBUG+handlers=error+qualname=eventsErrors+propagate=0++[logger_debug]+level=DEBUG+handlers=debug+qualname=eventsDebug+propagate=0++[handler_access]+class=FileHandler+level=DEBUG+formatter=basicFormatter+args=('/var/log/@WORLDVIEW@-debug/events_access.log','a+')++[handler_error]+class=FileHandler+level=DEBUG+formatter=basicFormatter+args=('/var/log/@WORLDVIEW@-debug/events_errors.log', 'a+')++[handler_debug]+class=FileHandler+level=DEBUG+formatter=basicFormatter+args=('/var/log/@WORLDVIEW@-debug/events_messages.log', 'a+')++[formatter_basicFormatter]+format=%(asctime)s %(message)sdiff --git a/etc/deploy/events_log.conf b/etc/deploy/sources/events_log.confsimilarity index 80%rename from etc/deploy/events_log.confrename to etc/deploy/sources/events_log.confindex dc263f31d..0564ee697 100644--- a/etc/deploy/events_log.conf+++ b/etc/deploy/sources/events_log.conf@@ -33,19 +33,19 @@ propagate=0class=FileHandlerlevel=DEBUGformatter=basicFormatter-args=('/var/log/worldview/events_access.log','a+')+args=('/var/log/@WORLDVIEW@/events_access.log','a+')[handler_error]class=FileHandlerlevel=DEBUGformatter=basicFormatter-args=('/var/log/worldview/events_errors.log', 'a+')+args=('/var/log/@WORLDVIEW@/events_errors.log', 'a+')[handler_debug]class=FileHandlerlevel=DEBUGformatter=basicFormatter-args=('/var/log/worldview/events_messages.log', 'a+')+args=('/var/log/@WORLDVIEW@/events_messages.log', 'a+')[formatter_basicFormatter]format=%(asctime)s %(message)sdiff --git a/etc/deploy/sources/httpd.worldview-debug.conf b/etc/deploy/sources/httpd.worldview-debug.confnew file mode 100644index 000000000..36919acb4--- /dev/null+++ b/etc/deploy/sources/httpd.worldview-debug.conf@@ -0,0 +1,13 @@+Alias /labs/@WORLDVIEW@-debug/var /var/lib/@WORLDVIEW@-debug+Alias /labs/@WORLDVIEW@-debug /usr/share/@WORLDVIEW@-debug/web++<Directory /usr/share/@WORLDVIEW@-debug/web>+ AllowOverride All+ Order allow,deny+ Allow from all+</Directory>++<Directory /usr/share/@WORLDVIEW@-debug/web/service>+ Options ExecCGI+</Directory>+diff --git a/etc/deploy/sources/httpd.worldview.conf b/etc/deploy/sources/httpd.worldview.confnew file mode 100644index 000000000..9c6a2f4c0--- /dev/null+++ b/etc/deploy/sources/httpd.worldview.conf@@ -0,0 +1,13 @@+Alias /labs/@WORLDVIEW@/var /var/lib/@WORLDVIEW@+Alias /labs/@WORLDVIEW@ /usr/share/@WORLDVIEW@/web++<Directory /usr/share/@WORLDVIEW@/web>+ AllowOverride All+ Order allow,deny+ Allow from all+</Directory>++<Directory /usr/share/@WORLDVIEW@/web/service>+ Options ExecCGI+</Directory>+diff --git a/etc/deploy/logrotate.worldview b/etc/deploy/sources/logrotate.worldviewsimilarity index 77%rename from etc/deploy/logrotate.worldviewrename to etc/deploy/sources/logrotate.worldviewindex 66fbeae14..7929e63bb 100644--- a/etc/deploy/logrotate.worldview+++ b/etc/deploy/sources/logrotate.worldview@@ -1,4 +1,4 @@-/var/log/worldview/*.log {+/var/log/@WORLDVIEW@/*.log {copytruncateweeklyrotate 4diff --git a/etc/deploy/sources/logrotate.worldview-debug b/etc/deploy/sources/logrotate.worldview-debugnew file mode 100644index 000000000..14f5de4f1--- /dev/null+++ b/etc/deploy/sources/logrotate.worldview-debug@@ -0,0 +1,8 @@+/var/log/@WORLDVIEW@-debug/*.log {+ copytruncate+ weekly+ rotate 4+ compress+ missingok+ create 0664 apache apache+}diff --git a/etc/deploy/worldview.spec b/etc/deploy/worldview.specindex b77c3cf1b..3f3cbcb3a 100644--- a/etc/deploy/worldview.spec+++ b/etc/deploy/worldview.spec@@ -1,27 +1,30 @@# Note: This does not do a "proper" build. It is assumed that the distribution# package has already been made.-Name: worldview-Version: 0.7.0-Release: 0.1%{?dist}+Name: @WORLDVIEW@+Version: @BUILD_VERSION@+Release: @BUILD_RELEASE@%{?build_num}@GIT_REVISION@%{?dist}Summary: Browse full-resolution, near real-time satellite imagery.License: Copyright NASAURL: http://earthdata.nasa.gov-Source0: worldview.tar.bz2-Source1: worldview-debug.tar.bz2+Source0: worldview.tar.gz+Source1: worldview-debug.tar.gzSource2: httpd.worldview.confSource3: httpd.worldview-debug.conf-Source4: events_log.conf-Source5: cron.worldview-Source6: logrotate.worldview+#Source4: events_log.conf+#Source4: events_log-debug.conf+#Source5: cron.worldview+#Source6: cron.worldview-debug+#Source7: logrotate.worldview+#Source8: logrotate.worldview-debugBuildArch: noarchRequires: httpd-Requires: python-feedparser-Requires: python-beautifulsoup4-Requires: gdal-Requires: gdal-python+#Requires: python-feedparser+#Requires: python-beautifulsoup4+#Requires: gdal+#Requires: gdal-python%descriptionIn essence, Worldview shows the entire Earth as it looks "right now",@@ -54,9 +57,11 @@ tar xf %{SOURCE0}tar xf %{SOURCE1}cp %{SOURCE2} .cp %{SOURCE3} .-cp %{SOURCE4} .-cp %{SOURCE5} .-cp %{SOURCE6} .+#cp %{SOURCE4} .+#cp %{SOURCE5} .+#p %{SOURCE6} .+#p %{SOURCE7} .+#p %{SOURCE8} .%build@@ -66,30 +71,38 @@ cp %{SOURCE6} .rm -rf %{buildroot}install -m 755 -d %{buildroot}/%{httpdconfdir}install -m 644 httpd.worldview.conf \- %{buildroot}/%{httpdconfdir}/worldview.conf+ %{buildroot}/%{httpdconfdir}/@[email protected]rm httpd.worldview.confinstall -m 644 httpd.worldview-debug.conf \- %{buildroot}/%{httpdconfdir}/worldview-debug.conf+ %{buildroot}/%{httpdconfdir}/@[email protected]rm httpd.worldview-debug.conf-install -m 755 -d %{buildroot}/%{_datadir}/worldview-cp -r worldview/* %{buildroot}/%{_datadir}/worldview-install -m 755 -d %{buildroot}/%{_datadir}/worldview-debug-cp -r worldview/* %{buildroot}/%{_datadir}/worldview-debug+install -m 755 -d %{buildroot}/%{_datadir}/@WORLDVIEW@+cp -r worldview/* %{buildroot}/%{_datadir}/@WORLDVIEW@+install -m 755 -d %{buildroot}/%{_datadir}/@WORLDVIEW@-debug+cp -r worldview-debug/* %{buildroot}/%{_datadir}/@WORLDVIEW@-debug-install -m 755 -d %{buildroot}/%{_sysconfdir}/worldview-install -m 644 events_log.conf \- %{buildroot}/%{_sysconfdir}/worldview/events_log.conf+#install -m 755 -d %{buildroot}/%{_sysconfdir}/@WORLDVIEW@+#install -m 644 events_log.conf \+# %{buildroot}/%{_sysconfdir}/@WORLDVIEW@/events_log.conf+#install -m 755 -d %{buildroot}/%{_sysconfdir}/@WORLDVIEW@-debug+#install -m 644 events_log-debug.conf \+# %{buildroot}/%{_sysconfdir}/@WORLDVIEW@-debug/events_log-debug.conf-install -m 755 -d %{buildroot}/%{_sharedstatedir}/worldview-install -m 755 -d %{buildroot}/%{_localstatedir}/log/worldview+#install -m 755 -d %{buildroot}/%{_sharedstatedir}/@WORLDVIEW@+#install -m 755 -d %{buildroot}/%{_sharedstatedir}/@WORLDVIEW@-debug+#install -m 755 -d %{buildroot}/%{_localstatedir}/log/@WORLDVIEW@+#install -m 755 -d %{buildroot}/%{_localstatedir}/log/@WORLDVIEW@-debug-install -m 755 -d %{buildroot}/%{_sysconfdir}/cron.d-install -m 600 cron.worldview %{buildroot}/%{_sysconfdir}/cron.d/worldview+#install -m 755 -d %{buildroot}/%{_sysconfdir}/cron.d+#install -m 600 cron.worldview %{buildroot}/%{_sysconfdir}/cron.d/@WORLDVIEW@+#install -m 600 cron.worldview-debug %{buildroot}/%{_sysconfdir}/cron.d/@WORLDVIEW@-debug-install -m 755 -d %{buildroot}/%{_sysconfdir}/logrotate.d-install -m 600 logrotate.worldview \- %{buildroot}/%{_sysconfdir}/logrotate.d/worldview+#install -m 755 -d %{buildroot}/%{_sysconfdir}/logrotate.d+#install -m 600 logrotate.worldview \+# %{buildroot}/%{_sysconfdir}/logrotate.d/@WORLDVIEW@+#install -m 600 logrotate.worldview-debug \+# %{buildroot}/%{_sysconfdir}/logrotate.d/@WORLDVIEW@-debug%clean@@ -98,22 +111,29 @@ rm -rf %{buildroot}%files%defattr(-,root,root,-)-%{_datadir}/worldview-%config(noreplace) %{httpdconfdir}/worldview.conf-%dir %{_sysconfdir}/worldview-%config(noreplace) %{_sysconfdir}/worldview/events_log.conf-%config(noreplace) %{_sysconfdir}/cron.d/worldview-%config(noreplace) %{_sysconfdir}/logrotate.d/worldview+%{_datadir}/@WORLDVIEW@+%config(noreplace) %{httpdconfdir}/@[email protected]+#%dir %{_sysconfdir}/worldview+#%config(noreplace) %{_sysconfdir}/@WORLDVIEW@/events_log.conf+#%config(noreplace) %{_sysconfdir}/cron.d/@WORLDVIEW@+#%config(noreplace) %{_sysconfdir}/logrotate.d/@WORLDVIEW@-%defattr(600,apache,apache,700)-%dir %{_sharedstatedir}/worldview-%dir %{_localstatedir}/log/worldview+#%defattr(600,apache,apache,700)+#%dir %{_sharedstatedir}/@WORLDVIEW@+#%dir %{_localstatedir}/log/@WORLDVIEW@%files debug-%{_datadir}/worldview-debug-%config(noreplace) %{httpdconfdir}/worldview-debug.conf-+%{_datadir}/@WORLDVIEW@-debug+%config(noreplace) %{httpdconfdir}/@[email protected]+#%dir %{_sysconfdir}/@WORLDVIEW@-debug+#%config(noreplace) %{_sysconfdir}/@WORLDVIEW@-debug/events_log-debug.conf+#%config(noreplace) %{_sysconfdir}/cron.d/@WORLDVIEW@-debug+#%config(noreplace) %{_sysconfdir}/logrotate.d/@WORLDVIEW@-debug++#%defattr(600,apache,apache,700)+#%dir %{_sharedstatedir}/@WORLDVIEW@-debug+#%dir %{_localstatedir}/log/@WORLDVIEW@-debug%changelog* Wed Oct 30 2013 Mike McGann <[email protected]> - 0.6.0-1diff --git a/package.json b/package.jsonindex 56643427d..1b2177ab8 100644--- a/package.json+++ b/package.json@@ -1,6 +1,7 @@{- "name": "worldview-preview",+ "name": "worldview-latest","version": "0.7.0",+ "release": "1","author": "Worldview Team <[email protected]>","description": "Browse full-resolution, near real-time satellite imagery","repository": {