diff options
author | Kevin Hilman <khilman@baylibre.com> | 2019-11-03 14:27:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-03 14:27:14 +0100 |
commit | 04ce3e542a0d2d212a29621ae047096951dd0f51 (patch) | |
tree | a59c4404853860573a7303f463f34815c1be089e | |
parent | 4e07f8361ddc5677b35b94170b6b1e61b2543b01 (diff) | |
parent | 5fffe4259af6377f2ea10b40a7b8a04c5655d93a (diff) |
Merge pull request #107 from montjoie/documentation
Enhance documentation
-rw-r--r-- | README.md | 8 | ||||
-rwxr-xr-x | lavalab-gen.py | 2 |
2 files changed, 8 insertions, 2 deletions
@@ -414,10 +414,14 @@ For restoring this backup, simply cp backup-20180704_1206/* output/local/master/ ## Upgrading from a previous lava-docker For upgrading between two LAVA version, the only method is: - backup data by running ./backup.sh on the host running the master (See Backups / restore) -- checkout the new lava-docker and your boards.yaml +- checkout the new lava-docker and update your boards.yaml +- Move the old output directory away - run lavalab-gen.sh - copy your backup data in output/yourhost/master/backup directory -- build and run docker-compose +- build via docker-compose build +- Stop the old docker via docker-compose down +- Run the new version via docker-compose up -d +- Check everything is ok via docker-compose logs -f ## Security Note that this container provides defaults which are unsecure. If you plan on deploying this in a production enviroment please consider the following items: diff --git a/lavalab-gen.py b/lavalab-gen.py index d37eb90..6b0b2a0 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -556,6 +556,8 @@ def main(): if use_nfs: dockcomp["services"][worker_name]["volumes"].append("/var/lib/lava/dispatcher/tmp:/var/lib/lava/dispatcher/tmp") fp = open("%s/scripts/extra_actions" % workerdir, "a") + # LAVA check if this package is installed when doing NFS jobs + # So we need to install it, even if it is not used fp.write("apt-get -y install nfs-kernel-server\n") fp.close() os.chmod("%s/scripts/extra_actions" % workerdir, 0o755) |