Commit graph

192 commits

Author SHA1 Message Date
philippe lhardy
c2c5d041de support symlinks within ynh-dev path
When there are symlinks in directories contains by current path then lxc fails with :
Error: Invalid devices: Device validation failed "ynhdev-shared-folder": Missing source "(...)/ynh-dev" for disk "ynhdev-shared-folder"

using readlink -f to obtain full path.
2020-05-21 15:12:16 +02:00
Alexandre Aubin
ce101f9b66
Merge pull request #56 from YunoHost/add-names-again
add names again
2020-03-29 01:33:43 +01:00
Kay0u
d73a9d74ed
add names again 2020-03-28 23:11:07 +01:00
Kay0u
572b65a946
Redirect stdout and stderr 2020-03-10 12:09:54 +01:00
Alexandre Aubin
eb02841546 Build sometimes failing because things go too fast and the network stack isnt started yet, so adding a small delay as a quick and dirty fix 2020-02-20 20:02:50 +01:00
Alexandre Aubin
33d984b6f6 Late night copypasta 2020-02-08 17:38:38 +01:00
Alexandre Aubin
913003acb3 Add support for buster dev LXCs 2020-02-08 03:29:51 +01:00
Alexandre Aubin
3bdb65cd87 No need to sudo when creating symlinks, that could create a whole bunch of warning if slapd happens to be down 2019-10-14 17:22:55 +02:00
Alexandre Aubin
4eecc1059b
Merge pull request #54 from YunoHost/lxd
Vagrant is madness, LXD is much easy to setup and use
2019-10-14 17:21:15 +02:00
Alexandre Aubin
20dafd3827 Smarter ./ynh-dev start that will attach to the container if it already exists 2019-10-11 19:00:06 +02:00
Alexandre Aubin
b27bc5deea For now the LXC gotta be priviledged to be able to install pytest deps 2019-10-10 00:24:44 +02:00
Alexandre Aubin
c480666d9c Fix default working directory after attaching the container 2019-10-09 16:23:50 +02:00
Alexandre Aubin
ce7bd7e1ee More accurate test to check the existence of the link 2019-10-09 16:18:37 +02:00
Alexandre Aubin
f5a1860aec Trick + cleaning to allow to build the yunohost-admin in the container despite the lack of r/w of the shared folder 2019-10-09 00:16:43 +02:00
Alexandre Aubin
ea22e9409d Add lxc/lxd to /usr/local/bin so that it works nicely with sudo 2019-10-08 23:48:07 +02:00
Alexandre Aubin
360c25c747
Gotta sudo
Co-Authored-By: decentral1se <lukewm@riseup.net>
2019-10-08 23:13:34 +02:00
Alexandre Aubin
6a0a7d1990 Use an absolute path for lxc to avoid weird PATH issues 2019-10-08 22:36:53 +02:00
Alexandre Aubin
5748513a49
Add note about the fact that LXD may conflict with an already running dnsmasq 2019-10-08 21:24:40 +02:00
Alexandre Aubin
3b1ade01a7
Simplify introduction 2019-10-08 21:20:54 +02:00
Alexandre Aubin
0ab8729d70 Vagrant is madness, LXD is much easy to setup and use 2019-10-01 20:48:22 +02:00
frju365
d2ef67fd62
Merge pull request #53 from frju365/master
Add libvirt-dev as dependance for vagrant plugin
2019-09-30 13:32:50 +02:00
frju365
bb88e63dd9
Add libvirt-dev as dependance for vagrant plugin 2019-09-30 10:28:51 +02:00
Alexandre Aubin
6dd1a3c7c7
pytest-sugar ftw 2019-09-13 14:37:46 +02:00
ljf (zamentur)
45be4c7b3d
[enh] Note about between libvirtd and lxc-net 2019-08-11 19:34:28 +02:00
Alexandre Aubin
be9dac2cf2
Merge pull request #50 from decentral1se/docsfix/iterate-on-expectations-and-paths
Developer environment README improvements
2019-05-28 18:32:16 +02:00
Luke Murphy
3f80c88316
Mention the Virtualbox branch 2019-05-22 22:07:02 +02:00
Alexandre Aubin
a3e372d5a7
More comments on the tradeoff LXC vs Virtualbox, and local vs remote 2019-05-22 22:07:01 +02:00
Luke Murphy
ab36afb151
Revise and clarify paths for development environment
Closes https://github.com/YunoHost/issues/issues/1353.
2019-05-22 22:07:01 +02:00
Luke Murphy
383aa5dcb5
Further typo fixes
Follows from afbb3356db.
2019-05-21 13:16:48 +02:00
frju365
8b30f9acf3
Merge pull request #49 from decentral1se/docsfix/point-to-default-page
Point to default language page.
2019-05-21 12:58:38 +02:00
Luke Murphy
ad84da85b2
Point to default language page.
Closes https://github.com/YunoHost/issues/issues/1352.
2019-05-21 12:53:36 +02:00
M5oul
a98a9fc86a
Merge pull request #48 from decentral1se/docsfix/typos-misc
Docs: small spelling fixes
2019-05-19 18:05:46 +02:00
Luke Murphy
afbb3356db
Some spelling fixes 2019-05-19 17:42:08 +02:00
Alexandre Aubin
1d8185103f Somehow, need to use --provision now when rebuilding the box 2019-05-09 17:14:47 +02:00
Alexandre Aubin
dfe49ea191 This prebuild.sh ain't used anymoar 2019-04-29 21:50:54 +02:00
Alexandre Aubin
10af5d7a20 Additional note about how to configure apparmor 2019-03-11 17:56:22 +01:00
Alexandre Aubin
9b7aa14f85 Clarify some stuff + add troubleshooting note about apparmor 2019-03-08 17:46:37 +01:00
Alexandre Aubin
c2b8f459dd Global check prevented to run ynh-dev inside the LXC ... factorized stuff to a single check_lxc_setup function 2019-03-07 15:11:27 +01:00
Alexandre Aubin
6aa1a557af Bad substitution... 2019-03-07 15:00:27 +01:00
frju365
d4b7eab8d2
It need sudo or root mode : either add sudo, either a #. 2019-03-07 12:57:13 +01:00
Alexandre Aubin
f2ecdabe89
Merge pull request #47 from YunoHost/check_lxc_version
[mod] refuse to run for old version of LXC
2019-02-28 22:56:39 +01:00
Laurent Peuch
29fe543d05 [mod] refuse to run for old version of LXC 2019-02-28 22:52:57 +01:00
Bram
57b4d29d08
[doc] you need to be in the directory to do that 2019-02-27 19:22:29 +01:00
Bram
ee6848dbbc
[doc] we don't use virtualbox anymore 2019-02-27 19:16:43 +01:00
Alexandre Aubin
8074e71d8a Small tweaks to improve the rebuild process 2019-02-18 16:58:41 +01:00
Alexandre Aubin
0a989d0c56 Add misc tips to configure LXC properly 2019-02-06 23:06:15 +01:00
Alexandre Aubin
db04eb9463 Add note about install on Debian Buster 2019-01-17 20:40:10 +01:00
ljf (zamentur)
09457ad9dd
Merge pull request #46 from alexAubin/select-tests
Be able to selects which tests to run
2018-12-15 17:26:42 +01:00
ljf (zamentur)
56b5fbcaed
Update ynh-dev 2018-12-15 17:24:38 +01:00
Alexandre Aubin
19e7fae061 Be able to test specific functions 2018-12-15 16:13:47 +00:00