|
1 week ago | |
---|---|---|
bin | 1 week ago | |
config | 1 week ago | |
labkey | 1 year ago | |
labkeyBase | 1 week ago | |
software | 1 week ago | |
tomcat8 | 1 week ago | |
README.md | 1 week ago | |
Re | 3 years ago |
This git project contains everything required to start labkey as a docker container.
docker
and docker-compose
labkey
with docker
privilegessudo adduser labkey
sudo usermod -G docker labkey
sudo su labkey
cd
git init .
git remote add origin <repository-url>
git pull origin master
bin/installLabkey.sh 22.3
to unzip the enclosed LabKey binary code and make appropriate links.bin/env.sh.sample
to bin/env.sh
and set a secret $PGPASS
, other settings are probably OK,
check $DOCKERCOMPOSE
password
in labkey/labkey.xml
To run as non-root user labkey, files should have the proper permissions. I believe that starting from scratch, the neccesary files will be created with appropriate permissions. If using an old implementation or in case of troubles, the following directories should be owned by labkey:labkey on host machine:
~/software/src/LabKey22.3.2-3-community/*
~/labkey/externalModules
~/labkey/files
Run bin/startLabkey.sh
. This will do several things:
~/postgresl/data
.In principle, the service should be running at http://localhost:8443/labkey
. Check output of inidividual
components by:
docker logs config-db-1
docker logs config-web-1
docker exec -it config-db-1 bash
Connect to running instance of labkey:
docker exec -it config_labkey-web_1 bash
Start R:
R
In R, installggplot2
with dependencies:
install.packages('ggplot2', repos='http://cran.us.r-project.org', dependencies=TRUE)
For ggpubr, install cmake
first. When in config_labkey-web_1 do:
apt update
apt install cmake
Then, in R:
install.packages('ggpubr')
Create ${POSTGRES_DIR}
directory as user that will be running the container.
If you have trouble with initial setup, the base can be reset by deleting everything under postgresql/data
.
Errors of the type 500: Unexpected server error
are common and related