For licensing reasons, Altair Engineering cannot ship a readily built Docker image. Instead, all required files for creating the Docker image in the customer's environment are provided in the "docker" folder:
Modifying these files should not be necessary. To create the Docker image, the shell script create_docker.sh needs to be executed in the sub-directory docker/ of EEvision's release package.
Afterwards the list of images (execute “docker image ls”) should contain an image with the name altair/eevision:. The next section explains how to run this image.
We now describe the necessary configuration for deploying the EEvision Docker image. This mainly affects environment variables and mounted directories.
Configuration information is passed to the Docker container via environment variables. They have to be specified when deploying the container. The following variables are needed:
LM_LICENSE_FILE=1700@license.company.orgLM_LICENSE_FILE may be set to an arbitrary value, if the call-home license checker is used instead of a FlexNet license server.
SERVER_NAME=eevision.company.org
SERVER_ADMIN=admin@company.org
EEvision needs two mounted directories. The first one must contain the SSL certificates for the encryption of https connections, the second one stores the datasets.
If an EEvision configuration file named eev.conf is provided in the data directory, it is used by EEvision instead of the provided default file. Configuration changes require a restart of the Docker image.
The EEvision image can be run using the docker executable, for example, by adapting and running the following shell script. Please modify the lines 3–8 as needed.
#!/usr/bin/sh
VERSION=
CERT_DIR=<Path to the certificate directory>
DATA_DIR=<Path to the data directory>
LM_LICENSE_FILE=1700@license.company.org
SERVER_NAME=eevision.company.org
SERVER_ADMIN=admin@company.org
docker run \
-p 443:443 \
-p 80:80 \
-v $CERT_DIR:/usr/local/apache2/certs \
-v $DATA_DIR:/usr/local/apache2/htdocs/eevision/data \
-e LM_LICENSE_FILE=$LM_LICENSE_FILE \
-e SERVER_NAME=$SERVER_NAME \
-e SERVER_ADMIN=$SERVER_ADMIN \
--rm \
--name eevision \
altair/eevision:$VERSION
It is also possible to use docker-compose to start the EEvision server. The same information (environment variables, mounted directories) has to be provided by the administrator.
The docker-compose.yaml file looks as follows. It assumes that the following environment variables are set:
The values of the variables can also be provided in a file. Please consult the manual of docker-compose for details.
version: "3" services: eevision: image: "altair/eevision:${VERSION}" ports: - 443:443 - 80:80 volumes: - ${CERT_DIR}:/usr/local/apache2/certs:ro - ${DATA_DIR}:/usr/local/apache2/htdocs/eevision/data environment: - LM_LICENSE_FILE=${LM_LICENSE_FILE} - SERVER_NAME=${SERVER_NAME} - SERVER_ADMIN=${SERVER_ADMIN}
The EEvision server can then be started by executing
docker-compose up
It makes EEvision available via port 80 (HTTP is redirected to HTTPS on the default port 443) and port 443 (via HTTPS).
Copyright © 2019–2024 by Altair Engineering Inc.
All rights reserved.