Skip to content

Instantly share code, notes, and snippets.

@jedie
Last active January 17, 2022 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedie/9318d21c4b1830aac4700facd4b1fc1c to your computer and use it in GitHub Desktop.
Save jedie/9318d21c4b1830aac4700facd4b1fc1c to your computer and use it in GitHub Desktop.
Setup YunoHost "package check" via Vagrant in a Virtual box

"package check" via Vagrant

install Vagrant:

sudo apt install virtualbox vagrant

Store Vagrantfile from above to: ~/yunohost_package_check/Vagrantfile then:

~$ cd yunohost_package_check
~/yunohost_package_check$ vagrant up
...
~/yunohost_package_check$ vagrant ssh
...
vagrant@ubuntu-focal:~$ git clone https://github.com/YunoHost-Apps/pyinventory_ynh.git
vagrant@ubuntu-focal:~$ sudo ./package_check/package_check.sh ~/pyinventory_ynh/ --branch=testing
Testing package /home/vagrant/pyinventory_ynh/
Parsing check_process file
...
# https://docs.vagrantup.com
# https://github.com/YunoHost/package_check
Vagrant.configure("2") do |config|
# https://app.vagrantup.com/ubuntu/boxes/focal64
config.vm.box = "ubuntu/focal64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get dist-upgrade
apt-get install -y python3-pip git snapd lynx jq
snap install core
snap refresh lxd
sudo ln -sf /snap/bin/lxc /usr/local/bin/lxc
sudo ln -sf /snap/bin/lxd /usr/local/bin/lxd
gpasswd -a vagrant lxd
lxd init --auto
lxc remote add yunohost https://devbaseimgs.yunohost.org --public
git clone https://github.com/YunoHost/package_check
./package_check/package_check.sh --rebuild
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment