mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Use base image from devbaseimgs.yunohost.org
This commit is contained in:
parent
4805c79d35
commit
e3506a3208
3 changed files with 15 additions and 6 deletions
15
README.md
15
README.md
|
@ -67,14 +67,21 @@ able to run `lxc` commands without sudo... You can check this with the command
|
||||||
to propagate (sigh))
|
to propagate (sigh))
|
||||||
|
|
||||||
Then you shall initialize LXD which will ask you a bunch of question. Usually
|
Then you shall initialize LXD which will ask you a bunch of question. Usually
|
||||||
answering the default (just pressing enter) to all questions is fine.
|
answering the default (just pressing enter) to all questions is fine - EXCEPT
|
||||||
|
for the size of the default storage it'll create (the default is 5G but you may
|
||||||
|
want 10 or 20G for heavy usage ?).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo lxd init
|
lxd init
|
||||||
```
|
```
|
||||||
|
|
||||||
You can keep the default answer to all question EXCEPT the size of the default
|
The base images for tests are centralized on `devbaseimgs.yunohost.org` and we'll download them from there to speed things up:
|
||||||
storage it'll create (default is 5G but you probably want 10 instead ... or 20 for heavy usage)
|
|
||||||
|
```bash
|
||||||
|
lxc remote add yunohost https://devbaseimgs.yunohost.org --public
|
||||||
|
```
|
||||||
|
|
||||||
|
(At the time this README is written, fingerprint is d9ae6e76c374e3c58c3c20a881cffe7435809adb3b222ec393805f5bd01bb522 )
|
||||||
|
|
||||||
Then you can :
|
Then you can :
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
LXC_CREATE () {
|
LXC_CREATE () {
|
||||||
lxc image list $LXC_BASE | grep -q -w $LXC_BASE || log_critical "The base image $LXC_BASE doesn't exist yet. Consider using the build_base_lxc.sh to create it first"
|
lxc image list $LXC_BASE | grep -q -w $LXC_BASE || log_critical "The base image $LXC_BASE doesn't exist yet. Consider using the build_base_lxc.sh to create it first"
|
||||||
lxc launch $LXC_BASE $LXC_NAME || clean_exit 1
|
lxc launch yunohost:$LXC_BASE $LXC_NAME || clean_exit 1
|
||||||
lxc config set "$LXC_NAME" security.nesting true
|
lxc config set "$LXC_NAME" security.nesting true
|
||||||
_LXC_START_AND_WAIT $LXC_NAME
|
_LXC_START_AND_WAIT $LXC_NAME
|
||||||
set_witness_files
|
set_witness_files
|
||||||
|
|
|
@ -9,9 +9,11 @@ print_help() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage: package_check.sh [OPTION]... PACKAGE_TO_CHECK
|
Usage: package_check.sh [OPTION]... PACKAGE_TO_CHECK
|
||||||
|
|
||||||
-r, --rebuild (Re)Build the base container
|
|
||||||
-b, --branch=BRANCH Specify a branch to check.
|
-b, --branch=BRANCH Specify a branch to check.
|
||||||
-i, --interactive Wait for the user to continue before each remove.
|
-i, --interactive Wait for the user to continue before each remove.
|
||||||
|
-r, --rebuild (Re)Build the base container
|
||||||
|
(N.B.: you're not supposed to use this option, images
|
||||||
|
are supposed to be fetch from devbaseimgs.yunohost.org automatically)
|
||||||
-h, --help Display this help
|
-h, --help Display this help
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue