Share script to keep databases up to date
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
This commit is contained in:
parent
5aa02b785f
commit
3b97c3a73b
2 changed files with 19 additions and 0 deletions
|
|
@ -189,6 +189,12 @@ as a front-end to reduce the load on the server running the Elixir code.
|
|||
| Http client | --------> | Varnish cache | --------> | Apache running Elixir |
|
||||
'-------------' '---------------' '-----------------------'
|
||||
|
||||
### Keeping Elixir databases up to date
|
||||
|
||||
To keep your Elixir databases up to date and index new versions that are released,
|
||||
we're proposing to use a script like `utils/update-elixir-data` which is called
|
||||
through a daily cron job.
|
||||
|
||||
## Building Docker images
|
||||
|
||||
Docker files are provided in the `docker/` directory. To generate your own
|
||||
|
|
|
|||
13
utils/update-elixir-data
Executable file
13
utils/update-elixir-data
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
for p in linux u-boot busybox zephyr musl barebox uclibc-ng arm-trusted-firmware amazon-freertos qemu glibc coreboot llvm mesa ofono dpdk; do
|
||||
echo "Processing project $p ..."
|
||||
export LXR_DATA_DIR=/srv/elixir-data/$p/data
|
||||
export LXR_REPO_DIR=/srv/elixir-data/$p/repo
|
||||
|
||||
cd $LXR_REPO_DIR
|
||||
git fetch --all
|
||||
|
||||
cd /usr/local/elixir
|
||||
./update.py
|
||||
done
|
||||
Loading…
Reference in a new issue