Skip to content

AstraLinux - Installing and Running GitFlic


You can find the minimum requirements on this page

Description and Installation from Archive

Download the latest version of GitFlic Self-hosted. The archive contains:

  • ./gitflic.jar - executable file.
  • /application.properties - application configuration file.

If you are deploying GitFlic on a remote server, you need to:

# Copy the archive to the remote server:
scp ~/Downloads/gitflic-*.zip <username>@<ip>:~/
# Install unzip:
sudo apt install unzip
# Unzip the GitFlic archive on the server:
sudo unzip gitflic-*.zip

Enabling Required Repositories

Check /etc/apt/sources.list - after installing Astra Linux, you need to comment out the cdrom repositories and uncomment the online base and extended repositories.

  1. Edit the /etc/apt/sources.list file

    #deb cdrom:[OS Astra Linux 1.7.8.6  1.7_x86-64 DVD ]/ 1.7_x86-64 contrib main non-free
    deb https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-main/ 1.7_x86-64 main contrib non-free
    deb https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-update/ 1.7_x86-64 main contrib non-free
    
    deb https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base/ 1.7_x86-64 main contrib non-free
    deb https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 main contrib non-free
    
    deb https://download.astralinux.ru/astra/stable/1.8_x86-64/repository-extended/ 1.8_x86-64 main contrib non-free non-free-firmware
    deb https://download.astralinux.ru/astra/stable/1.8_x86-64/repository-main/ 1.8_x86-64 main contrib non-free non-free-firmware
    #deb cdrom:[OS Astra Linux 1.8.4.48 1.8_x86-64 DVD]/ 1.8_x86-64 contrib main non-free non-free-firmware
    
  2. Update the package list indexes

    sudo apt update
    

Installing Java

Installation instructions on the AstraLinux website

OpenJDK

  1. Check available OpenJDK versions

    apt policy openjdk-11-jdk
    
  2. Install the package

    sudo apt install openjdk-11-jdk
    
  3. Check the installed version

    java --version
    
  1. Check available OpenJDK versions

    apt policy openjdk-17-jdk
    
  2. Install the package

    sudo apt install openjdk-17-jdk
    
  3. Check the installed version

    java --version
    

Axiom JDK

  1. Copy the Axiom JDK deb package to the remote server

    scp axiomjdk11-*.deb <username>@<ip>:~/ 
    
  2. Install the package

    sudo apt install ./axiomjdk11*.deb
    
  3. Check the installed version

    java --version
    

Installing PostgreSQL

Installation instructions on the AstraLinux website

PostgreSQL

  1. Check available PostgreSQL versions

    apt policy postgresql-11
    
  2. Install the package

    sudo apt install postgresql-11
    
  3. Check the installed version

    psql --version
    
  4. Make sure the service is running

    sudo systemctl status postgresql
    
  1. Check available PostgreSQL versions

    apt policy postgresql-15
    
  2. Install the package

    sudo apt install postgresql-15
    
  3. Check the installed version

    psql --version
    
  4. Make sure the service is running

    sudo systemctl status postgresql
    

Tantor SE

  1. Copy the tantor deb package to the remote server

    scp tantor-*.deb <username>@<ip>:~/ 
    
  2. Install the package

    sudo apt install ./tantor-*.deb
    
  3. Log in as the postgres user and initialize the database

    sudo -iu postgres
    /opt/tantor/db/14/bin/initdb -D /var/lib/postgresql/tantor-se-14/data/
    exit
    
  4. Start the database and enable autostart

    systemctl start tantor-*.service
    systemctl enable tantor-*.service
    
  5. Make sure the service is running

    sudo systemctl status tantor-*.service
    

PostgreSQL Configuration

  1. Set the zero_if_notfound parameter to yes in the /etc/parsec/mswitch.conf configuration file

    This parameter allows setting zero access level for all users with undefined permissions

  2. Restart the service

    sudo systemctl restart postgresql
    
  3. Connect to the psql console

    sudo -u postgres psql
    
  4. Create a user with a password and a database

    CREATE USER gitflic WITH PASSWORD 'gitflic';
    CREATE DATABASE gitflic WITH OWNER gitflic;
    \q
    
  5. Log in to the previously created database

    sudo -u postgres psql -d gitflic
    
  6. Install the pgcrypto and pg_trgm extensions for the GitFlic database (required)

    CREATE EXTENSION pgcrypto;
    CREATE EXTENSION pg_trgm;
    

Installing Redis/KeyDB

  1. Update the package list

    sudo apt update
    
  2. Install the package

    sudo apt install keydb
    
  3. Make sure the KeyDB version is above 6.2

    keydb-server --version
    
  4. Make sure the KeyDB service is running

    sudo systemctl status keydb
    
  5. Check KeyDB availability with the command (should return PONG)

    keydb-cli ping
    
  1. Update the package list

    sudo apt update
    
  2. Install the package

    sudo apt install redis
    
  3. Make sure the Redis version is above 6.2

    redis-server --version
    
  4. Make sure the Redis service is running

    sudo systemctl status redis
    
  5. Check Redis availability with the command (should return PONG)

    redis-cli ping
    

Installing RabbitMQ

  1. Install the package

    sudo apt install rabbitmq-server
    
  2. Make sure the RabbitMQ service is running

    sudo systemctl status rabbitmq-server.service 
    

Install GitFlic according to the instructions

Installing the GitFlic application


Configure the SSH port according to the instructions

SSH port configuration


Configure and start GitFlic according to the instructions

Configuring and starting the GitFlic application

Automated translation!

This page has been automatically translated. The text may contain inaccuracies.