Skip to main content
All CollectionsAdministration
Rocky Linux Image (Applicable for On Premise only)
Rocky Linux Image (Applicable for On Premise only)
Asaf Cohen avatar
Written by Asaf Cohen
Updated over 5 months ago

First Boot

After importing the OVA, follow these steps for your initial setup:

Logging In

The image has SSH server installed and configured. Login credentials will be provided separately for security reasons.

Setting Up Networking

Network Interface

By default, networking is set to DHCP with DNS servers 8.8.8.8 and 1.1.1.1. Modify these settings to match your network configuration using the nmtui utility.

For more information, refer to the Rocky Linux Network Configuration Guide.

Setting up NTP and timezone

Proper time synchronization is crucial for system operations and logging. Follow these steps to set up NTP (Network Time Protocol) and configure the correct timezone for your Rocky Linux image.

Configuring NTP

  1. Verify that Chrony is running and synchronizing:

    chronyc tracking
  2. To configure NTP servers, edit the /etc/chrony.conf file:

    sudo nano /etc/chrony.conf

  3. Add or modify the server lines to use your preferred NTP servers, for example:

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org

4. Save the file and restart the Chrony service:

sudo systemctl restart chronyd

Setting the Timezone

  1. List available timezones:

    timedatectl list-timezones
  2. Set your desired timezone:

    sudo timedatectl set-timezone Your/Timezone

    Replace Your/Timezone with the appropriate timezone (e.g., America/New_York).

  1. Verify the timezone setting:

    timedatectl

Updating the System Clock

After configuring NTP and setting the timezone, update the system clock:

sudo hwclock --systohc

This command synchronizes the hardware clock with the system clock.

Verifying the Configuration

To ensure everything is set up correctly:

  1. Check the current time and timezone:

    date
  2. Verify NTP synchronization:

    chronyc sources

This should show a list of NTP sources and their status.

Mapping Hostnames

The image contains two web applications:

  1. Next Plus

  2. Metabase (BI Service)

Create two DNS A records and map them to the server IP. For example:

  • nextplus.local

  • nextplus-analytics.local

Modify the /opt/nextplus/.env file with the newly created records:

NEXTPLUS_SITE_URL: http://nextplus.local (include protocol, no trailing slash) 

DEFAULT_HOST: nextplus.local (hostname only, no trailing slash)

VIRTUAL_HOST: nextplus.local (hostname only, no trailing slash)

METABASE_VIRTUAL_HOST: nextplus-analytics.local (hostname only, no trailing slash)

NEXTPLUS_METABASE_SITE_URL: http://nextplus-analytics.local (include protocol, no trailing slash)

Starting Web Services

Navigate to the /opt/nextplus directory and execute the following commands:

docker-compose up -d d
docker compose -f bi.yml up -d

Verify that you can access both hostnames from your browser (may take up to 1 minute to become accessible).

(Optional) Setup SSL

To enable HTTPS:

  1. Place .crt and .key files under /srv/nginx/data/certs/

  2. Name the files according to the hostname:

    • nextplus.local.crt

    • nextplus.local.key

    • nextplus-analytics.local.crt

    • nextplus-analytics.local.key

  3. Restart the nginx webserver:

    docker restart nextplus-nginx
  4. Update the .env file to use the HTTPS protocol.

Setting up SMTP

Next Plus

  1. Open Next Plus in your browser

  2. Navigate to Settings -> System -> SMTP Settings

  3. Set up the SMTP connection details

  4. Send a test email and save the settings

Metabase

  1. Open Metabase in your browser

  2. Navigate to Settings -> Admin Settings -> Email

  3. Click on "Edit configuration"

  4. Set up the SMTP connection details

  5. Send a test email and save the settings

Getting Logs

View all running Docker containers:

docker ps

View logs for a specific container:

docker logs CONTAINER_NAME

Useful flags:

  • -f: Follow log output

  • --tail: Show only the last N lines of output

Version Upgrade

Important: Take a backup before proceeding.

Upgrading Next Plus

  1. Load the new Docker image:

    docker image load -i filename.gz
  2. Navigate to the Next Plus directory:

    cd /opt/nextplus
  3. Modify .env with the updated Next Plus tag version (NEXTPLUS_TAG)

  4. Restart the service:

    docker-compose up -d

Upgrading Data Modeler Service

  1. Load the new Docker image:

    docker image load -i filename.gz
  2. Navigate to the Data Modeling directory:

    cd /opt/nextplus/data-modeling
  3. Restart the service:

    docker-compose up -d

Manually Restart All Services

docker-compose -f /opt/nextplus/docker-compose.yml down 
docker-compose -f /opt/nextplus/docker-compose.yml up -d
docker-compose -f /opt/nextplus/bi.yml down
docker-compose -f /opt/nextplus/bi.yml up -d
docker-compose -f /opt/nextplus/microservices.yml down
docker-compose -f /opt/nextplus/microservices.yml up -d
docker-compose -f /opt/nextplus/data-modeling/docker-compose.yml down docker-compose -f /opt/nextplus/data-modeling/docker-compose.yml up -d
Did this answer your question?