Git Product home page Git Product logo

docker-jcustomer's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.