-
Notifications
You must be signed in to change notification settings - Fork 4
Create a Development Instance
bbimber edited this page Oct 5, 2023
·
2 revisions
-
Follow these instructions to install the LabKey dependencies, including Apache Tomcat and a database: https://www.labkey.org/Documentation/wiki-page.view?name=devMachine
-
Next, you need to check out the source code from various repos. Below is a scriptable way to accomplish this, based on the code used in our CI:
#!/bin/bash
# Update this to match the target release:
export GITHUB_REF=discvr-XX.X
export GITHUB_BASE_REF=$GITHUB_REF
export GITHUB_EVENT_NAME=
export NO_SHALLOW=1
# Update this to the local folder where you want to create the enlistment:
export HOME=/c/Projects/
cd $HOME
if [ ! -e discvr-lk ];then
mkdir discvr-lk
fi
cd discvr-lk
wget https://raw.githubusercontent.com/bimberlabinternal/DevOps/master/githubActions/discvr-build/doBuild.sh
bash doBuild.sh
rm doBuild.sh
-
Ensure the build works, and that you can start the server. I highly recommend Intellij for working with Labkey (https://www.jetbrains.com/idea/). You can get a free student license.
-
The selenium automated tests are a useful tool to create a local development environment. See here for instructions here, specifically for Functional Tests: https://www.labkey.org/Documentation/wiki-page.view?name=runningTests.