Provides the Dockerfile, scripts and instructions needed to build the slatehorse/labkey-standalone image.
Forked from LabKey/samples to follow the release train.
IMPORTANT: This image is intended for local development and testing, and comes with no warranty of any kind.
An image built with this Dockerfile is available at slatehorse/labkey-standalone on DockerHub. Check out the tags to check for available versions and custom builds.
To create the image you will need do the following:
-
Download the latest version of Oracle JAVA 8 Server JRE to
./libdirectory -
Download the latest version of Tomcat 8 binary distribution to
./lib- Use the Core tar.gz download
-
Download the latest version of LabKey Server to
./libdirectory- Use the Binaries for Manual Linux/Mac/Unix Installation link
-
Update the
Dockerfileand change the names in the file to match the ones you downloaded above. -
Build the image
docker build -t slatehorse/labkey-standalone .
To run the image
docker run --name labkey-standalone -d -p 8080:8080 slatehorse/labkey-standalone
After few seconds, open http://:8080 to see the LabKey Server initialization page.
If you are a maintainer, you can push new versions (e.g. here version 16.2) to the docker hub as follows:
-
Tag the current commit as the release version:
git tag 16.2 -
Build a tagged image version:
docker build -t slatehorse/labkey:16.2 . -
Push the image to the the Docker Hub
docker push slatehorse/labkey:16.2