The service component of CatDV, used for running server plugins on a separate node
1.2K
This image is currently available for beta testing, not for production use
You can download the latest image by running
$docker pull catdv/service:2.1.0You will require a valid CatDV Service license code to use the image.
This image requires that some mandatory environment variables be set in order for it to start correctly. They are as follows:
REGUSER=Registered Name
REGCODE=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
CATDV_SERVER_URL=CatDV Server URL e.g. http(s)://catdv_server_host
CATDV_SERVER_USER=CatDV Server User Account
CATDV_SERVER_PWD=CatDV Server User Account Password
The way to set these environment variables differs depending on which container provider you are using. If you are running on a local machine you can put these variables into a text file, for example env.list, then start the container from the directory containing your text file follows:
$docker run --env-file=./env.list catdv/service:2.1.0You could also start up a CatDV server using Docker Compose by adding an entry to your docker-compose.yml as follows:
server:
image: catdv/service:2.1.0
ports:
- "80:80"
environment:
- REGUSER=Registered Name
- REGCODE=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
- CATDV_SERVER_URL=http://catdv_server_host
- CATDV_SERVER_USER=rest_user
- CATDV_SERVER_PWD=password123
The container will start up a webserver on port 80 when it initializes. The CatDV Service will then try to connect to the CatDV Server you have specified in your environment variables.
It is not best practice to pass secret information (such as registration codes and database connection strings) into a docker image via environment variables, as they may be printed out in log files and diagnostic information, this is especially of concern if you are running your containers on a platform that you do not manage yourself. We have therfore provided a mechanism to pass in a secrets file.
You will need to set an environment variable to tell the CatDV server where to find the secrets file, e.g.
SECRETS=/mnt/secrets/secrets.propertiesYou can then use a mechanism, such as a bind mount or docker secret to add that file into the container e.g.
--secret src=catdv-secrets,target=/mnt/secrets/secrets.propertiesThe contents of the secrets file should look as follows
# Additional catdv.properties containing secrets such as credentials
reg.user=Registered Name
reg.code=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
catdv.server.url=http\://localhost\:8080/
catdv.server.username=Administrator
catdv.server.password=catdv
http.hostname=localhost
http.port=8080
# Archive Plugin License codes
catdv.s3archive_service.licence_code=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
As you can see, you can set registration codes, db connection strings and passwords.
-v /data/plugins/service:/usr/local/catdvService/plugins/externalWhere /data/plugins/service contains all the CatDV Server plugins you wish to add to the container.
If you wish the container to map to a different external port you could run:
$docker run --env-file=./env.list -p 8000:80 catdv/service:2.0.1Then you could visit http://localhost:8000 or http://host-ip:8000 in your browser.
Logs
By default the service will log to the console, so using docker logs [container id] would show the logs.
From 2.0.0 onwards, if you set a ENV variable of LOGTOFILE="true" then the logs will be written to /var/logs/catdvService/ to which we would suggest mounting a volume.
Where to get help
Please see https://catdv-docs.services.quantum.com/contact-us/get-in-touch/index.html
License
You will require a valid CatDV Service license code to use the image.
By downloading and using this image you agree to accept the EULA which you can read here.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Centos7 etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Content type
Image
Digest
sha256:05f31c5eb…
Size
253.3 MB
Last updated
9 months ago
docker pull catdv/service:2.1.0p3