Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

GRAVITY builds are available on Docker Hub as private repositories. Please contact us to get your Access Token.

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. Login to Docker Hub, at the password prompt, enter the personal Access Token provided.

    docker login -u gravityglobal
  4. Create docker-compose.yml

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

Template of docker-compose.yml

version: '3.4'
services:
  gravity_server0:
    image: "%SERVER_IMAGE%"
    container_name: gravity_server0
    environment:
      - SPRING_DATASOURCE_URL=jdbc:@DB_PROVIDER@:@%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)

version: '3.4'
services:
  gravity_server0:
    image: "gravityglobaldev/gravity-server-oracle:1.18.0"
    container_name: gravity_server0
    environment:
      - SPRING_DATASOURCE_URL=jdbc:oracle:thin:@gravity_oracle_db0: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)

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.18.0"
    container_name: gravity_server0
    ports:
      - "8080:8080"
    environment:
      - SPRING_DATASOURCE_URL=jdbc:mariadb://gravity-mysql0:3306/gravity?trustServerCertificate=true&useSSL=true&requireSSL=true&enabledSslProtocolSuites=TLSv1.1,TLSv1.2
      - SPRING_DATASOURCE_USERNAME=gravity
      - SPRING_DATASOURCE_PASSWORD=gravity
    links:
      - gravity-mysql0
    restart: 'always'
volumes:
   gravity-mysql0
   

Also check the Oracle DB wiki page (gravity.oracle.run ) for guidance on Oracle DB initial setup.

  • No labels