
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@descarteslabs/viewer
Advanced tools
Note: It is recommended to run this package locally and deploy it live to production using the instructions in the root [README.md](../../README.md). The instructions below may be outdated.
Note: It is recommended to run this package locally and deploy it live to production using the instructions in the root README.md. The instructions below may be outdated.
A tiled scene viewer using openlayers to display the following DL platform services:
tiles/v2/compositemetadata/v1/scenesInstall npm dependencies:
$ npm install
Map the hostname 1337.descarteslabs.com to your localhost. E.g., under Linux and OS X, add this line to your /etc/hosts file:
127.0.0.1 1337.descarteslabs.com
Run a local dev server:
$ npm run serve
You can now open the app locally at https://1337.descarteslabs.com
When you wish to deploy a new Viewer release, you have to do the following:
The two primary tasks you should complete are:
Merge any PRs that contain changes that you want to be included.
Thoroughly test the master branch deployment.
Create a feat/bump-version branch. feat/version-bump is also fine. :)
There are three version bump options, in accordance with semver:
$ npm version patch
$ npm version minor
$ npm version major
This npm version <patch|minor|major> command will both bump the patch/minor/major version number in package.json and will create
the corresponding git tag. See the documentation for details.
The review process for this PR should be pretty short.
Make sure to summarize all changes since the last tagged release in the release notes.
You can verify that the tagged release operates as expected at https://viewer.descarteslabs.com/<viewer_version_tag>, where <viwer_version_tag> is the git tag for this release. Note that the bundle from the tagged release build has to be pushed to GCS before this can be viewed.
APP_VERSION environment variable in the Viewer k8s deployment manifest.APP_VERSION environment variable to <viewer_version_tag> in the Viewer k8s deployment manifest.Create a viewer/deploy/<viewer_version_tag> branch, where <viewer_version_tag> is the new Viewer version tag.
This will change the default route of the Flask application to point to the JavaScript bundle associated with this
tagged release.
If changes have been made to the Flask app that you wish to release, you'll also have to update the image in the manifest.
The review process for this PR should be pretty short. Upon merging the PR, the Spinnaker pipeline will start executing.
Pipeline execution can be monitored here.
The pipeline will require manual verification of the platform-lab deployment before deploying to production.
Confirm that the Viewer deployment is correct and proceed.
You should be able to see the updated deployment here. You may need to do a hard refresh to see the changes. Confirm that the desired version is deployed by checking the newly tagged release against the version number in the "Help" section of Viewer.
FAQs
Note: It is recommended to run this package locally and deploy it live to production using the instructions in the root [README.md](../../README.md). The instructions below may be outdated.
We found that @descarteslabs/viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.