package_check
package_check copied to clipboard
Add script to run package check via Vagrant in a VirtualBox
I add a way to run package check in a VirtualBox using Vagrant.
I am an Vagrant newbie. Therefore, the whole thing can perhaps still be improved. But works for me.
I tried your PR and got the following output:
$ ./run_package_check.sh repos/reverseproxy_ynh/
Package check: 'repos/reverseproxy_ynh/'
+ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/focal64' version '20230107.0.0' is up to date...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c '/home/vagrant/package_check/vagrant/scripts/run.sh repos/reverseproxy_ynh/'
Package check: 'repos/reverseproxy_ynh/'
+ lxd init --auto
+ /home/vagrant/package_check/package_check.sh repos/reverseproxy_ynh/
Testing package repos/reverseproxy_ynh/
cp: cannot stat 'repos/reverseproxy_ynh/': No such file or directory
fatal: cannot change to '/tmp/package_check.Hnf1l5/app_folder': No such file or directory
Critical: Unable to find the directory /tmp/package_check.Hnf1l5/app_folder for the package...