diff --git a/Vagrantfile b/Vagrantfile index e3af2f8..8fef620 100755 --- a/Vagrantfile +++ b/Vagrantfile @@ -4,11 +4,11 @@ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" -NETWORK = "192.168.33." +NETWORK = "10.0.3." HOSTS = { - "ynh-dev" => ["83", "stretch-unstable"], - "ynh-dev-buster" => ["84", "buster-unstable"], + "ynh-dev" => ["83", "ynh-dev"], + "ynh-dev-buster" => ["84", "ynh-dev-buster"], } Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| @@ -25,7 +25,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| machine.vm.guest = :debian machine.vm.provider "lxc" do |lxc| - config.vm.box_url = "https://build.yunohost.org/yunohost-" + version + "-lxc.box" + config.vm.box_url = "https://build.yunohost.org/" + version + "-lxc.box" config.vm.synced_folder ".", "/ynh-dev", id: "vagrant-root" config.vm.network :private_network, ip: NETWORK + ipaddr, lxc__bridge_name: 'lxcbr0' end diff --git a/deploy.sh b/deploy.sh index 0bd536f..abe70c8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -8,7 +8,7 @@ set -x sudo apt-get install vagrant lxc git -y -git clone https://github.com/YunoHost/ynh-dev +git clone https://github.com/alexAubin/ynh-dev cd ./ynh-dev git clone https://github.com/YunoHost/moulinette git clone https://github.com/YunoHost/yunohost diff --git a/prebuild/prebuild.sh b/prebuild/prebuild.sh index f115272..99aaeb7 100755 --- a/prebuild/prebuild.sh +++ b/prebuild/prebuild.sh @@ -1,23 +1,19 @@ #!/bin/bash -DEBIAN_VERSION="stretch" -YNH_VERSION="unstable" -PROVIDER="lxc" - # Compute box name -BOX="$DEBIAN_VERSION-$YNH_VERSION" +BOX="ynh-dev" # Create box -vagrant up $BOX --provider $PROVIDER +vagrant up $BOX # Package box -vagrant package $BOX --output /tmp/yunohost-$BOX-$PROVIDER.box +vagrant package $BOX --output /tmp/$BOX.box # Destroy current box vagrant destroy $BOX # User message, and exit echo "" -echo "Your Vagrant box was packaged to /tmp/yunohost-$BOX-$PROVIDER.box" -echo "You might want to run : vagrant box add "yunohost/$BOX" /tmp/yunohost-$BOX-$PROVIDER.box" +echo "Your Vagrant box was packaged to /tmp/$BOX.box" +echo "You might want to run : vagrant box add 'yunohost/ynh-dev' /tmp/$BOX.box" exit diff --git a/ynh-dev b/ynh-dev index 19dbf98..bdd943e 100755 --- a/ynh-dev +++ b/ynh-dev @@ -4,32 +4,21 @@ readonly THISSCRIPT=`basename $0` function show_usage() { cat <