Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space LSDEV and version 2023.1

You can download a ready-to-use License Server container image from Docker Hub:Parasoft has published an official Docker image to Docker Hub for your convenience. Full installation instructions are included in the readme. See https://hub.docker.com/r/parasoft/lss.

To deploy License Server in Docker, follow the process outlined below.

First, you need to create a docker volume called "parasoft-volume" as shown below.

Code Block
languagetext
docker volume create parasoft-volume

Then start License Server.  Please note the following:

...

  • The container must be created and started with the root user.
  • The docker socket must be mounted.
  • The docker volume "parasoft-volume" created previously must be mounted.

...

/

...

  • Mount persistent volume at LSS_DATA_DIR.

You can inject the LSS_JAVA_OPTS environment variable into the LSS docker container. For example:

...

languagetext

...

parasoft

...

/

...

An example of starting License Server with these considerations is shown below.

...

languagetext

...

Configuring Tomcat Settings, Keystore, and Truststore

If you need to configure Tomcat settings, keystore, and truststore, there are many ways to do so. Because these files are persisted in the container and not in a mounted persistent storage, configuration changes will not be automatically applied when you start a new container. Below are a couple ways you can ensure configuration changes are applied to new containers.

The easiest way to configure ports and keystores is to use a reverse proxy. This eliminates the need to make changes to the default Tomcat settings and keystore in the container. 

In lieu of using a reverse proxy, you can save the configuration files to a persistent storage and mount them when starting the container. First, note the locations of these files in the docker container:

  • server.xml -  /usr/local/parasoft/license-server/app/tomcat/conf/server.xml
  • keystore - /usr/local/parasoft/license-server/app/tomcat/conf/.keystore
  • truststore - /usr/local/parasoft/license-server/app/jre/lib/security/cacerts

Then, save these files to your persistent storage and mount them when starting the container by adding the following arguments:

...

lss

...

.

...

-v /<persistent_storage>/server.xml:/usr/local/parasoft/license-server/app/tomcat/conf/server.xml

...