New script utils/index does an automatic call to `git gc --auto` and if
it detects a gc.log file, it runs `git gc --aggressive`.
There shouldn't be any reason for people to have to think about that
aspect. Remove that info from the README and make it lighter weight.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
`./script.sh get-latest <offset>` gets the full list of tags, filters
it, sorts it then returns a single result. On the Python side, it gets
the first one. If that works, it uses it, else it tries the second one,
etc.
That is a weird implementation: modify get-latest to return all tags so
that Python code only has to spawn a single subprocess.
Also, rename it from `get-latest` to `get-latest-tags`. This makes
things more explicit (what latest?) and also explicits that more than
one tag is required.
Also, argument 1 is supposed to be an offset.
No custom implementation of get_latest() did implement that.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Two issues are fixed:
- Initial `docker build` instructions fail because the Dockerfile path
is wrong (elixir/Dockerfile versus elixir/docker/Dockerfile).
- Indexing instructions are wrong because they do not use the
virtualenv Python. It contains the installed packages, which we need
for indexing. Issue appears as:
ModuleNotFoundError: No module named 'bsddb3' (edited)
We also remove some common Docker knowledge (why we might want the
database to be coming from a mounted volume, rather than stored inside
the container).
Finally, we fix line widths but splitting commands into multiple lines.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
* Remove repository indexing from Dockerfile
* Copy Elixir code from the context instead of cloning it from Github
* Move Dockerfile from docker/debian/Dockerfile to docker/Dockerfile
* Add docs for the new Dockerfile
* Add an utility script that allows easier repository configuration
* Add .dockerignore
* Use relative paths in Docker section in README
Two things get fixed here:
- README says downloading Dockerfile is enough. It is not; Debian
Dockerfile requires docker/debian/000-default.conf file.
- docker/debian/Dockerfile links to 000-default.conf file using:
COPY ./docker/debian/000-default.conf /etc/apache2/sites-available/000-default.conf
This means following command in README cannot work:
docker build [...] .
Either you set cwd to root Git repo and Dockerfile is not found, or
you set cwd to docker/debian/ and 000-default.conf is not found.
Correct command would be:
docker build -f docker/debian/Dockerfile [...] .
We fix Dockerfile by expecting 000-default.conf to be in cwd. We fix
README by rewording the paragraph and updating commands to work based
on Git repo root directory.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Because required changes are now included in the official packages
(at least in Ubuntu 22.04)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
To do that we use a slightly modified version of the script found here:
https://github.com/autocompletejs/autocomplete.js/tree/2.7
This code is under MIT licence so it's compatible with Elixir's licence
The server answers requests from the script via a new interface:
https://elixir.bootlin.com/acp?q=<query>&f=<family>&p=<project>
And this is handled by autocomplete.py
The script creates and uses a tmp file to store idents for each project
in order to reduce the time needed to answer a request.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This add support for linux 0.01 to 2.6.12-rc1
Some versions are missing like 0.02 to 0.10 (not included) but it looks like
they have been deleted over time.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
The file has been updated to enable Kconfig highlighting for file with
names like Kconfig.x86, Kconfig.debug, Kconfig-nommu, ...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
- Using "API" instead of "api"
- Putting the REST API doc in the right place in the document
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>