Alpine based container that provides a build of the silver searcher
To build the image containing the latest stable version of ag
simply invoke make build
.
The built version can be chosen through a variable AG_VERSION
that is passed to Docker
ARG
instruction.
Example: AG_VERSION=1.0.3 make build
Invoke make test
to assert the presence of ag
and the installed version.
Mount the folder you want to search in as a volume beforehand:
docker run -t --rm -v <folder>:/tmp ketouem/ag-alpine <pattern> <options> <folder>
The version of the image is directly backed against the latest stable version of ag
.