-
-
Notifications
You must be signed in to change notification settings - Fork 20
Installation Guide
If you prefer not to use Docker, you can build and run the SctgDesk Server manually on your system. Follow the steps below to get started:
Ensure that you have the following installed on your system:
- Rust: Follow the instructions on rust-lang.org to install Rust.
- Git: Ensure you have Git installed. You can download it from git-scm.com.
- on windows only: You need to have a working Microsoft Visual C++ 2022 installation and Sqlite3 libraries installed.
First, clone the SctgDesk Server repository:
git clone https://github.com/sctg-development/sctgdesk-server.git
cd sctgdesk-server
Once you have cloned the repository, navigate to the project directory and build the server using Cargo (the Rust package manager):
- on unices:
DATABASE_URL=sqlite://$(pwd)/db_v2.sqlite3 && cargo build --release
- on windows:
set "DATABASE_URL=sqlite://%CD%/db_v2.sqlite3" && cargo build --release
Note: the DATABASE_URL environment variable is used during the compilation process for checking the validity off each SQL request. So you need to have at least a valid empty database during building. You can use the db provided in the repository?
- Make sure your Windows system supports Hyper-V and Containers Windows features.
- Download the Docker Desktop installer from the Docker Hub.
-
Run the Docker Desktop Installer: Once downloaded, double-click
Docker Desktop Installer.exe
to run the installer. - Follow the Install Wizard: Accept the defaults and authorize the Docker Desktop Installer with your system password during the install process.
- Complete the Installation: Click Finish on the setup complete dialog and launch the Docker Desktop application.
- Open a terminal window (Command Prompt or PowerShell, but not PowerShell ISE).
- Run
docker --version
to ensure that you have a supported version of Docker. - Run
docker run hello-world
to verify that Docker can pull and run images.
- Docker Compose on Windows is included as part of the Docker Desktop install. Verify the installation by running
docker-compose --version
in the terminal.
- Make sure your system is running macOS Sierra 10.12 or newer.
- Download the Docker Desktop installer from the Docker Hub.
-
Run the Docker Desktop Installer: Once downloaded, double-click
Docker.dmg
to open the installer, then drag the Docker icon to the Applications folder. - Open Docker Desktop: Open Docker.app from the Applications folder. You'll see a whale icon in the top status bar indicating that Docker Desktop is running.
- Complete the Installation: Follow the on-screen instructions to complete the installation.
- Open a terminal window.
- Run
docker --version
to ensure that you have a supported version of Docker. - Run
docker run hello-world
to verify that Docker can pull and run images.
- Docker Compose on macOS is included as part of the Docker Desktop install. Verify the installation by running
docker-compose --version
in the terminal.
- Make sure your system is running Ubuntu 22.04 LTS.
- Update your existing list of packages:
sudo apt update
.
-
Install Docker: Run
sudo apt install docker.io
. -
Start and Automate Docker: Start Docker using
sudo systemctl start docker
and automate Docker at boot by runningsudo systemctl enable docker
.
- Run
docker --version
to ensure that you have a supported version of Docker. - Run
docker run hello-world
to verify that Docker can pull and run images.
-
Download Docker Compose: Run
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
. -
Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
.
- Run
docker-compose --version
to check if the installation was successful.
Running the Sctgdesk-server stack is straightforward using Docker Compose. Follow these steps to get it up and running:
-
Fetch the Docker Compose File: Clone the repository or download the
docker-compose.yml
file directly. -
Edit the Docker Compose File: Open the
docker-compose.yml
file in a text editor. Locate the DNS names for your server within the file and replace them with the correct values. -
Launch the Docker Stack: Navigate to the directory containing your modified
docker-compose.yml
file. Run the following command to start the Docker stack:docker-compose up
By following these steps, you should have a working Sctgdesk-server stack running on your machine.
© Ronan LE MEILLAT - SCTG Development