gravity.docker.run

Find the GRAVITY builds on Docker Hub. There are three version available:

There is an empty MariaDB in a Docker Container on the Docker Hub. That container can be used with the MariaDB-Version of GRAVITY.
For Helm Charts you might use the templates from bitnami.

To import private certificates; mount the “/ca-certificates” folder with *.pem file(s) to the deployed container.

Usage with Docker Compose

  1. Install Docker Engine

  2. Install Docker Compose

  3. Create docker-compose.yml

  4. Start the container: docker-compose up -d

Template of docker-compose.yml

1 2 3 4 5 6 7 8 9 10 11 12 version: '3.4' services: gravity_server0: image: "%SERVER_IMAGE%" container_name: gravity_server0 environment: - SPRING_DATASOURCE_URL=jdbc:oracle:thin:@%DB_SERVER_ADDRES%:%DB_SERVER_PORT%:%DB_NAME% - SPRING_DATASOURCE_USERNAME=%DB_USERNAME% - SPRING_DATASOURCE_PASSWORD=%DB_PASSWORD% ports: - "8080:8080" restart: 'always'

Example of docker-compose.yml (oracle version)

1 2 3 4 5 6 7 8 9 10 11 12 13 version: '3.4' services: gravity_server0: image: "gravityglobaldev/gravity-server-oracle:1_12_0" container_name: gravity_server0 environment: - SPRING_DATASOURCE_URL=jdbc:oracle:thin:@192.168.60.102:1521:gravity_db - SPRING_DATASOURCE_USERNAME=gravity_user - SPRING_DATASOURCE_PASSWORD=gravity_user_password ports: - "8080:8080" restart: 'always'

Example of docker-compose.yml (MariaDB + MariaDB version)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 version: '3.4' services: gravity-mysql0: image: "gravityglobaldev/gravity-db" container_name: gravity_mysql0 volumes: - gravity-mysql0:/var/lib/mysql restart: 'always' gravity_server0: image: "gravityglobaldev/gravity-server:1_12_0" container_name: gravity_server0 ports: - "8080:8080" environment: - SPRING_DATASOURCE_URL=jdbc:mysql://gravity-mysql0:3306/gravity - SPRING_DATASOURCE_USERNAME=gravity - SPRING_DATASOURCE_PASSWORD=gravity links: - gravity-mysql0 restart: 'always' volumes: gravity-mysql0

Also check the Oracle DB wiki page (https://gravity-global.atlassian.net/wiki/spaces/GPUB/pages/963084289/gravity.oracle.run ) for guidance on Oracle DB initial setup.