yunohost_demo/README.MD

40 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2022-11-06 19:02:46 +01:00
# Installation and management scripts for YunoHost demo servers using LXD
2016-08-16 01:45:21 +02:00
2022-11-06 19:02:46 +01:00
## Requirements
* A debian server
* Register a dns name to your demo server and make you demo server available from internet for TCP/80 and TCP/443
2019-06-22 13:52:46 +02:00
## demo_lxc_build_init
2022-11-06 19:02:46 +01:00
This script will install YunoHost and the app yunohost_demo_ynh
2016-08-16 01:45:21 +02:00
## demo_lxc_build
2022-11-06 19:02:46 +01:00
This script will build the demo containers.
It also install crons and start the first container.
After executing this script, YunoHost demo is working.
2016-08-16 01:45:21 +02:00
## demo_lxc_destroy
2022-11-06 19:02:46 +01:00
This script stop the containers and destroy them.
It is usually used for rebuilding containers with new parameters. And should therefore be followed by the demo_lxc_build script.
2016-08-16 01:45:21 +02:00
## demo_lxc_remove
2022-11-06 19:02:46 +01:00
This script will remove yunohost_demo_ynh.
It should only be used when the host server is changed.
2016-08-16 01:45:21 +02:00
## demo_start
2022-11-06 19:02:46 +01:00
Simply allows a clean start of the first container. With network bridge and firewall rules in place.
2016-08-16 01:45:21 +02:00
## demo_stop
2022-11-06 19:02:46 +01:00
Cleanly shuts down containers and disables the specific network config.
2016-08-16 01:45:21 +02:00
## demo_switch
2022-11-06 19:02:46 +01:00
It will alternate every 30 minutes (by default) the 2 containers and restore the snapshot of the container after it is shut down.
2016-08-16 01:45:21 +02:00
## demo_upgrade
2022-11-06 19:02:46 +01:00
It checks every night for updates on the containers, and applies them if necessary. If necessary, it also takes care of redoing the snapshot.
2016-08-18 12:08:01 +02:00
2016-09-19 12:13:28 +02:00
## demo_restore_crash
2022-11-06 19:02:46 +01:00
Attempts to repair containers that do not boot from previous snapshots or snapshot archives.
2016-09-19 12:13:28 +02:00
2022-11-06 19:02:46 +01:00
To make permanent changes to the containers, it is possible to add scripts to the upgrade.d folder. These scripts will be executed after the upgrade of the packages in each container.
In case of execution failure, the script will be put aside until it is corrected. Otherwise, it will be archived.