package_check icon indicating copy to clipboard operation
package_check copied to clipboard

Add script to run package check via Vagrant in a VirtualBox

Open jedie opened this issue 2 years ago • 1 comments

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.

jedie avatar Jan 19 '22 07:01 jedie

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...

selfhoster1312 avatar Jan 09 '23 12:01 selfhoster1312