mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 18:07:45 +01:00
committed by
rootzoll
parent
4e0b4f1675
commit
b5816c7f79
@@ -14,11 +14,10 @@ On MacOS you need to install:
|
||||
3. vagrant: `brew install vagrant`
|
||||
4. virtualbox: `brew cask install virtualbox` (maybe re-run after you changed the requested secruity permission to be successfull)
|
||||
|
||||
```sha
|
||||
```
|
||||
cd alternative.platforms/amd64/packer
|
||||
packer build raspiblitz.json
|
||||
|
||||
vagrant box add --force raspiblitz output/raspiblitz.box
|
||||
vagrant box add --force rotzoll/raspiblitz output/raspiblitz.box
|
||||
cd ../../..
|
||||
```
|
||||
|
||||
@@ -36,4 +35,4 @@ You will need to connect a virtual data drive to the RaspiBlitzVM ... todo so:
|
||||
Every file in `home.admin` will be linked to `/home/admin` inside the VM,
|
||||
if you add a new file you should run `vagrant provision` to make sure it gets linked inside the VM. Every time you boot the VM, `home.admin` files will be linked automatically.
|
||||
|
||||
The content of the `/home/admin/assets` folder is not kept in sync at the moment (see [#1578](https://github.com/rootzoll/raspiblitz/issues/1578)). You can still access your development assets file inside the VM in `/vagrant/home.admin/assets/`.
|
||||
The content of the `/home/admin/assets` folder is not kept in sync at the moment (see [#1578](https://github.com/rootzoll/raspiblitz/issues/1578)). You can still access your development assets file inside the VM in `/vagrant/home.admin/assets/`.
|
||||
@@ -1,26 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
echo "************* Vagrant Provisioning ********************"
|
||||
|
||||
echo "************* Vagrant provisioning ********************"
|
||||
echo 'Syncing local code with RaspiBlitzVM'
|
||||
|
||||
echo 'linking development files'
|
||||
source_dir=/vagrant/home.admin
|
||||
dest_dir=$HOME
|
||||
# make sure the lastest sync script is in place
|
||||
cp /vagrant/home.admin/XXsyncScripts.sh /home/admin/XXsyncScripts.sh
|
||||
|
||||
cd $source_dir
|
||||
for f in *; do
|
||||
if [ "$f" = "assets" ] ; then
|
||||
continue
|
||||
fi
|
||||
# execute 'patch' command to sync laptop with VM
|
||||
/home/admin/XXsyncScripts.sh -run
|
||||
|
||||
source_file="$source_dir/$f"
|
||||
dest_file="$dest_dir/$f"
|
||||
|
||||
if [ -L $dest_file ] && [ "$(readlink "$dest_file")" = "$source_file" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
rm -rf "$dest_file"
|
||||
ln -s "$source_file" "$dest_file"
|
||||
done
|
||||
echo
|
||||
echo "************* NEXT ********************"
|
||||
echo "vagrant ssh --> ssh into your RaspiBlitzVM"
|
||||
echo "vagrant provision --> trigger code sync from outside VM"
|
||||
echo "patch --> trigger code sync from inside the VM"
|
||||
echo
|
||||
Reference in New Issue
Block a user