2017-10-24 21:12:24 +00:00
|
|
|
# yunorock-dev
|
|
|
|
|
|
|
|
In order to have an entire YunoRock development environment, I created a
|
|
|
|
script that install an Alpine chroot, configure and enter it.
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
Launch it, and start testing!
|
|
|
|
|
|
|
|
```bash
|
|
|
|
chmod +x ./install-and-chroot.sh
|
|
|
|
./install-and-chroot.sh
|
|
|
|
```
|
|
|
|
|
2018-07-31 18:57:18 +00:00
|
|
|
By default it writes files into `/alpine`. So enter into chroot:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
/alpine/enter-chroot
|
|
|
|
```
|
|
|
|
|
|
|
|
But you can change destination directory if needed:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
chmod +x ./install-and-chroot.sh
|
2018-08-02 15:08:41 +00:00
|
|
|
DIRPATH="/my_alpine_chroot" ./install-and-chroot.sh
|
2018-07-31 18:57:18 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
and then:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
/my_alpine_chroot/enter-chroot
|
|
|
|
```
|
|
|
|
|
2018-08-02 15:08:41 +00:00
|
|
|
Pay attention: DIRPATH should be an absolute path.
|
|
|
|
|
2017-10-24 21:12:24 +00:00
|
|
|
# TODO
|
|
|
|
|
2018-07-31 18:57:18 +00:00
|
|
|
* adapt script to install yunoconfig dependencies (alpine-chroot-install -p)
|
2017-10-24 21:12:24 +00:00
|
|
|
* git submodule with yunoconfig (and bind it into the chroot?)
|
|
|
|
* idem with yunorock-recipes
|
|
|
|
* idem with pkgxx
|