Docker
BlueOS users should probably use the BlueOS Extension Store instead. These instructions describe how to run SonarView in a generic docker environment.
Step One: Install Docker (unless already installed)
For Linux users looking for the simplest solution:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.shRead the console output to determine if you need to adjust user or group permissions.
For all other use cases, refer to the Docker Installation Documentation
Step Two: Install SonarView:
There are a few different ways to get up and running here. Review the options and choose what suits your needs best.
Docker Compose Method (simple)
Configuration:
You'll need to specify the directory that SonarView should save to in your host OS, which is mapped to
/userdatain the container. This is where log files will be saved, and this is where your SonarView config will live./usr/SonarViewis used for this example.The container needs to run in the host network (
network_mode: host)in order to be able to scan the network for available sonars. Device discovery can not work without host network mode.restart: unless-stoppedwill automatically start the container on each boot.Set
ENABLE_OS3Dto true if you have an Omniscan3D, else leave set to false.image: nicknothom/sonarview:latestwill make it easier to grab new releases in the future without manually setting the version.If you'd rather use a specific version, replace with something like
nicknothom/sonarview:1.14.32-beta. Available tags can be found here.
If you need access to a serial device, you may need to add a device mapping like this:
devices: - /dev/ttyUSB0:/dev/ttyUSB0
Run the following in a terminal, replacing the default values with your preferences as needed:
After the container starts, the SonarView Web UI should be available on port 7077 of your host.
To update the container when a new SonarView version is released, run:
Docker Compose Method (with bundled FileBrowser)
This will spin up SonarView as well as a FileBrowser server that will make it easy to access log files. Configuration parameters are the same as above. Make sure that you have the same file path mapped for SonarView and FileBrowser as shown below.
After the containers have started, you can fetch FileBrowser's temporary password with docker logs filebrowser. The default username is 'admin'.
SonarView will be accessible on port 7077 via a web browser. FileBrowser will be accessible on port 7080 via a web browser.
Without Docker compose (older install method):
Run the install command, replacing the default values with your preferences as needed:
sudo docker run -d -v /usr/SonarView:/userdata --pull=always --net=host --name=sonarview --restart=unless-stopped nicknothom/sonarview
When using this method, the container will need to be updated manually by stopping the container, deleting it, and then recreating it from the new image:
Last updated