Skip to content

Latest commit

 

History

History
89 lines (58 loc) · 1.28 KB

Development.md

File metadata and controls

89 lines (58 loc) · 1.28 KB

OpalOPC

OPC UA security scanner

Deployment

To deploy means to release applications, and if necessary, to deploy website and API.

Release applications

make release

This command creates MSIX and Snapd packages of OpalOPC. The Snapd package is automatically uploaded to Snap store, but need to be promoted to latest/stable by hand in Snapd listing page. MSIX needs to be uploaded by hand to Microsoft Partner Portal.

Deploy website

Deploy Docusaurus website to Cloudflare Pages.

make deploy-website

Deploy Known Vulnerability API.

Deploy API

make update-local-knownvulnerabilityapi-db # create local CPE database using latest data
make deploy-api

# deploy the local CPE database to API
make deploy-knownvulnerabilityapi-db

Setup scanme.opalopc.com

Setup scanme on a VPS. Only needs to be run once.

make setup-scanme

Development

Scan echo (on linux):

make run

Run website on localhost with hot reload on changes:

make docs

Formatting:

# check
make lint-check

# make changes
make lint

Testing

# unit tests
make run-unit-tests

# e2e tests (requires Windows)
make run-e2e-tests

# All tests
make run-all-tests

Misc

Edit Ansible vault

make edit-vault