Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.96 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.96 KB

ImSwitch in Docker

All information have moved here: https://openuc2.github.io/docs/ImSwitch/ImSwitchDocker

ImSwitch + Docker on Raspi

This installs the full package:

  • Docker
  • ImSwitch in Docker
  • Drivers
  • install_autostart on Raspi with autoupdate

Run as sudo (e.g. sudo -s)

cd ~/Downloads
git clone https://github.com/openUC2/ImSwitchDockerInstall
cd ImSwitchDockerInstall
chmod +x install_all.sh
./install_all.sh

And then

sudo docker run -it --rm -p 8001:8001 -p 8002:8002 -p 8888:8888 -e HEADLESS=1  -e HTTP_PORT=8001    -e UPDATE_GIT=1  -e UPDATE_CONFIG=0  -e CONFIG_PATH=/config   -v ~/Downloads:/config --privileged -e DATA_PATH=/dataset  -v /media/uc2/SD2:/dataset  ghcr.io/openuc2/imswitch-noqt-arm64:latest
  • -v ~/Downloads:/config corresponds to the Github ImSwitchConfig folder that was downloaded and used for ImSwitch
  • -v /media/uc2/SD2:/dataset corresponds to the folder where we will save the data to

Connect to Wifi

use nmtui for discovering and connecting to Wifi signals nearby.

change external drive

open the file under ~/Desktop/start_imswitch.sh and replace the line -v /media/uc2/SD2:/dataset with the usb drive that you can detect with df -h

uninstalling the service

cd ~/Downloads/ImSwitchDockerInstall
chmod +x uninstall_service.sh
./uninstall_service.sh

Quickstart Docker on AMD/ARM

sudo docker run -it --rm -p 8001:8001 -p 8003:8002 -p 2222:22 -p 8889:8888 -e HEADLESS=1 -e HTTP_PORT=8001 -e C ONFIG_FILE=example_virtual_microscope.json -e UPDATE_GIT=0 -e UPDATE_CONFIG=0 -v ~/:/config -e CONFIG_PATH=/config -e ssl=0  --privileged ghcr.io/openuc2/imswitch-noqt-amd64:latest
sudo docker run -it --rm -p 8001:8001 -p 8003:8002 -p 2222:22 -p 8889:8888 -e HEADLESS=1 -e HTTP_PORT=8001 -e CONFIG_FILE=example_virtual_microscope.json -e UPDATE_GIT=0 -e UPDATE_CONFIG=0 -v ~/:/config -e CONFIG_PATH=/config -e ssl=0  --privilege d ghcr.io/openuc2/imswitch-noqt-arm64:latest