AstraLinux - Installing and Running GitFlic
Recommended System Requirements
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.
-
Edit the
/etc/apt/sources.listfile#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-freedeb 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 -
Update the package list indexes
sudo apt update
Installing Java
Installation instructions on the AstraLinux website
OpenJDK
-
Check available OpenJDK versions
apt policy openjdk-11-jdk -
Install the package
sudo apt install openjdk-11-jdk -
Check the installed version
java --version
-
Check available OpenJDK versions
apt policy openjdk-17-jdk -
Install the package
sudo apt install openjdk-17-jdk -
Check the installed version
java --version
Axiom JDK
-
Copy the Axiom JDK deb package to the remote server
scp axiomjdk11-*.deb <username>@<ip>:~/ -
Install the package
sudo apt install ./axiomjdk11*.deb -
Check the installed version
java --version
Installing PostgreSQL
Installation instructions on the AstraLinux website
PostgreSQL
-
Check available PostgreSQL versions
apt policy postgresql-11 -
Install the package
sudo apt install postgresql-11 -
Check the installed version
psql --version -
Make sure the service is running
sudo systemctl status postgresql
-
Check available PostgreSQL versions
apt policy postgresql-15 -
Install the package
sudo apt install postgresql-15 -
Check the installed version
psql --version -
Make sure the service is running
sudo systemctl status postgresql
Tantor SE
-
Copy the tantor deb package to the remote server
scp tantor-*.deb <username>@<ip>:~/ -
Install the package
sudo apt install ./tantor-*.deb -
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 -
Start the database and enable autostart
systemctl start tantor-*.service systemctl enable tantor-*.service -
Make sure the service is running
sudo systemctl status tantor-*.service
PostgreSQL Configuration
-
Set the
zero_if_notfoundparameter toyesin the/etc/parsec/mswitch.confconfiguration fileThis parameter allows setting zero access level for all users with undefined permissions
-
Restart the service
sudo systemctl restart postgresql -
Connect to the psql console
sudo -u postgres psql -
Create a user with a password and a database
CREATE USER gitflic WITH PASSWORD 'gitflic'; CREATE DATABASE gitflic WITH OWNER gitflic; \q -
Log in to the previously created database
sudo -u postgres psql -d gitflic -
Install the pgcrypto and pg_trgm extensions for the GitFlic database (required)
CREATE EXTENSION pgcrypto; CREATE EXTENSION pg_trgm;
Installing Redis/KeyDB
-
Update the package list
sudo apt update -
Install the package
sudo apt install keydb -
Make sure the KeyDB version is above 6.2
keydb-server --version -
Make sure the KeyDB service is running
sudo systemctl status keydb -
Check KeyDB availability with the command (should return PONG)
keydb-cli ping
-
Update the package list
sudo apt update -
Install the package
sudo apt install redis -
Make sure the Redis version is above 6.2
redis-server --version -
Make sure the Redis service is running
sudo systemctl status redis -
Check Redis availability with the command (should return PONG)
redis-cli ping
Installing RabbitMQ
-
Install the package
sudo apt install rabbitmq-server -
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
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.