Jahia jCustomer Docker image
Build image
Build arg :
RELEASE_URL
: the url to fetch the release
Use image
Instanciate
Env vars:
MAXMIND_KEY
: The MAXMIND API key to fetch GeoLite DB (see https://dev.maxmind.com/geoip/geoip2/geolite2/). If not provided, the db won't be fetch.unomi_env_var_*
: All unomi parameters that can be configured with env var can be defined with this prefix. If you want to specify multiple variables, an env file is strongly recomended instead of providing all of them one by one with -e docker option. The env var unomi_env_var_MY_UNOMI_PARAMATER will be converted to MY_UNOMI_PARAMETER and added to unomi process env vars. As the image doesn't embed any elasticsearch, the only required parameters are unomi_env_var_UNOMI_ELASTICSEARCH_ADDRESSES and unomi_env_var_UNOMI_ELASTICSEARCH_CLUSTERNAME
Ports binding
- 8181 for http
- 9443 for https
Build
The jCustomer archive can come from two locations:
- a RELEASE_URL argument which points to a .tar.gz file
- a jcustomer.zip file on the same directory as the Dockerfile
Examples
basic run
docker run -d --env-file /path/to/my-env-file jahia/jcustomer:1.5.6
Basic env file example
unomi_env_var_UNOMI_ELASTICSEARCH_ADDRESSES=X.X.X.X:9200
unomi_env_var_UNOMI_ELASTICSEARCH_CLUSTERNAME=unomi-es-cluster-name
Example to configure a 3 unomi nodes cluster with an elasticsearch 5.6 docker image
Create docker network
docker network create -d bridge unomi-net
Create elasticsearch container
docker run -d --name elasticsearch --net=unomi-net -e "discovery.type=single-node" -e xpack.security.enabled=false docker.elastic.co/elasticsearch/elasticsearch:5.6.16
Create env file
unomi_env_var_UNOMI_ELASTICSEARCH_ADDRESSES=elasticsearch:9200
unomi_env_var_UNOMI_ELASTICSEARCH_CLUSTERNAME=docker-cluster
unomi_env_var_UNOMI_CLUSTER_PUBLIC_ADDRESS=http://public.address
unomi_env_var_UNOMI_CLUSTER_INTERNAL_ADDRESS=http://private.address
unomi_env_var_JAVA_MAX_MEM=2G
unomi_env_var_UNOMI_ROOT_PASSWORD=AnAwesomePassword
unomi_env_var_UNOMI_HAZELCAST_TCPIP_MEMBERS=unomi1,unomi2,unomi3
MAXMIND_KEY=XXXXXXXXXXXXXXXXX
Create unomi nodes
docker run -d --name=unomi1 --hostname=unomi1 --net=unomi-net --env-file ./env_file jahia/jcustomer:1.5.6
docker run -d --name=unomi2 --hostname=unomi2 --net=unomi-net --env-file ./env_file jahia/jcustomer:1.5.6
docker run -d --name=unomi3 --hostname=unomi3 --net=unomi-net --env-file ./env_file jahia/jcustomer:1.5.6