This topic explains how administrators can set up communication between LabKey Server and an RStudio instance packaged inside a Docker image. As part of the configuration, we recommend that you allow Docker, not LabKey Server, to manage the RStudio data using Docker Volumes. This avoids a number of issues with file sharing, permissions, path mapping, and security, making setup much easier.
Set up TLS following these steps:
DOCKER_TLS_VERIFY=1
DOCKER_HOST=tcp://$HOST:2376
DOCKER_CERT_PATH=<YOUR_CERT_PATH>
DOCKER_OPTS="--dns 8.8.8.8 --tlsverify --tlscacert=$DOCKER_CERT_PATH/ca.pem --tlscert=$DOCKER_CERT_PATH/server-cert.pem --tlskey=$DOCKER_CERT_PATH/server-key.pem -H=0.0.0.0:2376"
cd docker-rstudio/images/labkey/rstudio-base
./make
docker run labkey/rstudio-base
docker ps
docker stop <container-name>
For details, see Configure Docker Host.
When configuring RStudio, you can skip the prerequisite check for user home directories. The configuration page will show a list of existing volumes and corresponding user emails. The email field is blank if the volume doesn't correspond to an existing user.
The modules docker and rstudio must be enabled in each folder where you want RStudio to be available. Select (Admin) > Folder > Management, select the Folder Type tab and make sure both modules are checked in the right column. Click Update Folder to save any changes.
Once RStudio is enabled, you can use the instructions in these topics to edit reports and export data:
previousnext |
expand allcollapse all |