Skip to content

AstraLinux - GitFlic Installation and Launch


View minimum requirements on this page

Download and Extract Archive

Download the latest GitFlic self-hosted version. Archive contents:
- ./gitflic.jar - Executable file
- /application.properties - Application configuration file

For remote server deployment:

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

Enabling Required Repositories

Edit /etc/apt/sources.list - comment cdrom repos and uncomment online repos:

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  

* repository-extended - Optional for GitFlic installation

Update package indexes:

sudo apt update  

Java 11 Installation

AstraLinux installation guide

apt policy openjdk-11-jdk  
sudo apt install openjdk-11-jdk  
java --version  
scp axiomjdk11-*.deb <username>@<ip>:~/  
sudo apt install ./axiomjdk11*.deb  
java --version  

PostgreSQL Installation

AstraLinux installation guide

apt policy postgresql-11  
sudo apt install postgresql-11  
psql --version  
sudo systemctl status postgresql  
scp tantor-*.deb <username>@<ip>:~/  
sudo apt install ./tantor-*.deb  
sudo -iu postgres  
/opt/tantor/db/14/bin/initdb -D /var/lib/postgresql/tantor-se-14/data/  
exit  
systemctl start tantor-*.service  
systemctl enable tantor-*.service  
sudo systemctl status tantor-*.service  

PostgreSQL Configuration

  1. Set zero_if_notfound=yes in etc/parsec/mswitch.conf and restart service:
sudo systemctl restart postgres  
  1. Create database and user:
sudo -u postgres psql  
CREATE USER gitflic WITH PASSWORD 'gitflic';  
CREATE DATABASE gitflic WITH OWNER gitflic;  
\q  
  1. Enable pgcrypto extension:
sudo -u postgres psql -d gitflic  
CREATE EXTENSION pgcrypto;  

KeyDB Installation

# Add to /etc/apt/sources.list:  
deb https://download.astralinux.ru/astra/frozen/1.7_x86-64/1.7.5/repository-extended 1.7_x86-64 main contrib non-free  
sudo apt update  
sudo apt install keydb  
keydb-server --version  
sudo systemctl status keydb  
keydb-cli ping  
sudo apt install redis  
redis-server --version  
sudo systemctl status redis  
redis-cli ping  

RabbitMQ Installation

Required for self-hosted enterprise edition

sudo apt install rabbitmq-server  
sudo systemctl status rabbitmq-server.service  

Install GitFlic

GitFlic application installation


Configure SSH Port

SSH port configuration


Configure and Launch GitFlic

GitFlic configuration and launch

Automatic translation!

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