* Add phone call authentication method * Remove dynamic mem allocation from error handler * Add more error handling code * Move error handling to different file * Remove Socket IO dependency * cleanup in websocket code * Add rapidjson as cmake dependency * Added Dockerfiles as primary build system for packages * Changed policy in CMakeList to work with lower version of CMake * Fix opensuse builds * Link filesystem library in gcc 8.5 or older
66 lines
2.1 KiB
Ruby
Executable File
66 lines
2.1 KiB
Ruby
Executable File
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# Default user
|
|
# ----------------------
|
|
# login: vagrant
|
|
# pass: vagrant
|
|
Vagrant.configure("2") do |config|
|
|
# Basic configuration
|
|
config.vm.provider "virtualbox"
|
|
config.vm.box = "ubuntu/jammy64"
|
|
config.ssh.forward_agent = true
|
|
|
|
# Create a public network, which generally matched to bridged network.
|
|
# Bridged networks make the machine appear as another physical device on
|
|
# your network.
|
|
config.vm.network "public_network"
|
|
|
|
# Share an additional folder to the guest VM. The first argument is
|
|
# the path on the host to the actual folder. The second argument is
|
|
# the path on the guest to mount the folder. And the optional third
|
|
# argument is a set of non-required options.
|
|
config.vm.synced_folder "../../..", "/home/vagrant/Rublon-Linux"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.memory = 4000
|
|
# Display the VirtualBox GUI when booting the machine
|
|
vb.gui = false
|
|
|
|
# Fix for 'SSH auth method: Private key' stuck
|
|
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
|
|
end
|
|
|
|
# Enable provisioning with a shell script. Additional provisioners such as
|
|
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
|
|
# documentation for more information about their specific syntax and use.
|
|
config.vm.provision "shell", inline: <<-SHELL
|
|
export BASE=/home/vagrant/Rublon-Linux
|
|
export DISTRO=ubuntu2204
|
|
export BUILDDIR=${BASE}/${DISTRO}
|
|
DEBIAN_FRONTEND=noniteracactive\
|
|
apt-get update && apt-get install -y \
|
|
gcc \
|
|
build-essential \
|
|
openssh-server \
|
|
libcurl4-openssl-dev \
|
|
libpam0g-dev \
|
|
libssl-dev \
|
|
git \
|
|
rapidjson-dev \
|
|
libwebsockets-dev \
|
|
cmake
|
|
|
|
# get dependencies
|
|
mkdir ${BUILDDIR} -p; cd ${BUILDDIR}
|
|
cmake -B rublon_ssh-build ..
|
|
cmake --build rublon_ssh-build -- -j
|
|
cmake --build rublon_ssh-build --target package -- -j
|
|
# Register Rublon pam
|
|
|
|
useradd -s /bin/bash -m bwi
|
|
echo "bwi:bwi"|chpasswd
|
|
sudo dpkg -i ${BUILDDIR}/rublon_ssh-build/rublon*.deb
|
|
SHELL
|
|
end
|