Documents related to virtual machine setup.
Notes on disk management. Growing file system works by creating new partition. Watchout - the last command is called xfs_growfs
.
Notes on installation on virtual machine.
Setup of docker for labkey on git0.
Post-install tasks (handled by image/compose.yaml):
/data/labkey/files
on docker, separate from home or similar directories/home/labkey/externalModules
on host or override in bin/env.sh
, compose.yaml
)
docker exec -it config_labkey-web_1 bash
#system install should be taken care of by Dockerfile
#sudo apt-get update
#sudo apt-get install libcurl4-openssl-dev libxml2-dev libssl-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libtiff5-dev git
/usr/local/tomcat>R
>install.packages('devtools')
>install.packages('ggtools2')
Install websocket on labkey docker, not required, analysisModule uses java WebSockets directly:
docker exec -it config_labkey-web_1 bash
/usr/local/tomcat>cd
/home/labkey>mkdir -p software/src
/home/labkey>cd software/src
/home/labkey/software/src>git clone https://git0.fmf.uni-lj.si/studen/websocket
/home/labkey/software/src>sed 's/origin=\".*\"/origin="labkey-vm"/' send.py
#update origin to labkey-vm
/home/labkey/software/src>cd
/home/labkey>mkdir venv
/home/labkey>sudo apt-get install virtualenv
/home/labkey>virtualenv venv/socket -p python3
/home/labkey>. venv/socket/bin/activate
/home/labkey socket >pip install websockets
/home/labkey socket >deactivate
#test
/home/labkey>~/venv/socket/bin/python ~/software/src/websocket/send.py onko-nix.onko-i.si:TEST:1
#this probably fails, see steps below
#copy scripts/runPythonLog.sh or use python directly in analysisModule (TODO!)
Run server on host, ie. labkey-public
or onko-nix
or whatever:
IPSERVER
to external eth0
or like address.IPCLIENT
to internal docker network address.open_port.sh
. If needed, delete obsolete 8765 directives with iptables -D
instead of iptables -A
or iptables -D
. Since labkey_network
is set to use range, it is enough to use masks, 172.16.1.0/24, say.websocketServer.py
and add labkey-vm
to origin (this is why previous test failed)websocket/serviceScripts/start.sh
Update server on work pc, rubens
, vangogh
, etc.:
websocket/serviceScripts/stop.sh
iptables
are needed, since IP address will be the same as for docker hostwebsocketServer.py
and add labkey-vm
to origin (this is why previous test failed)websocket/serviceScripts/start.sh
labkey-public
to vangogh
and docker to vangogh
,
/home/labkey>~/venv/socket/bin/python ~/software/src/websocket/send.py vangogh.fmf.uni-lj.si:TEST:1