The web application to search for photos in your storage.
$ git clone [email protected]:ponkotuy/photographic-indexer.git
$ cd photographic-indexer/docker/flyway/drivers
$ ./download_mysql.sh
$ cd photographic-indexer/clip-server
$ ./download_model.sh
Configure settings using environment variables. The following are supported.
Describing them in the .env file makes them easier to handle.
$ cd path/to/photographic-indexer
$ docker compose up -d
After running local and setting config values, execute a following command.
$ docker compose run flickr
The use of asdf or mise is recommended. (Enable JDK/nodejs)
Requires exiftool to be installed on your system.
$ docker compose -f docker-compose.dev.yml up # up DB
$ sbt ~warStart
If you need migration,
$ docker compose -f docker-compose.dev.yml --profile migration up
$ npm run dev -- --open
Python 3.11.3 / Poetry 1.8.5 (see clip-server/.tool-versions). The model is auto-downloaded by transformers on first request; ./download_model.sh pre-fetches it.
Note:
torchis pinned to a cp311 wheel URL, and the rest of the lockfile only ships cp311 wheels. Using Python 3.12+ will makepoetry installfail with "Unable to find installation candidates" / ABI tag mismatch. Make sure mise/asdf has activated 3.11 before installing.
$ cd clip-server
$ mise install # or: asdf install
$ poetry env use 3.11 # only if an env was already created with another Python
$ poetry install
$ poetry run dev # alias for uvicorn with --reload; see clip_server/__init__.py
Point the backend at it via ENV_CLIP_SERVER_URL=http://localhost:8000 in .env. See clip-server/README.md for endpoints and details.
Rewrite the version of build.sbt, commit and release on GitHub. Docker images are pushed to DockerHub by GitHub Actions.
The web application to search for photos in your storage.
$ git clone [email protected]:ponkotuy/photographic-indexer.git
$ cd photographic-indexer/docker/flyway/drivers
$ ./download_mysql.sh
$ cd photographic-indexer/clip-server
$ ./download_model.sh
Configure settings using environment variables. The following are supported.
Describing them in the .env file makes them easier to handle.
$ cd path/to/photographic-indexer
$ docker compose up -d
After running local and setting config values, execute a following command.
$ docker compose run flickr
The use of asdf or mise is recommended. (Enable JDK/nodejs)
Requires exiftool to be installed on your system.
$ docker compose -f docker-compose.dev.yml up # up DB
$ sbt ~warStart
If you need migration,
$ docker compose -f docker-compose.dev.yml --profile migration up
$ npm run dev -- --open
Python 3.11.3 / Poetry 1.8.5 (see clip-server/.tool-versions). The model is auto-downloaded by transformers on first request; ./download_model.sh pre-fetches it.
Note:
torchis pinned to a cp311 wheel URL, and the rest of the lockfile only ships cp311 wheels. Using Python 3.12+ will makepoetry installfail with "Unable to find installation candidates" / ABI tag mismatch. Make sure mise/asdf has activated 3.11 before installing.
$ cd clip-server
$ mise install # or: asdf install
$ poetry env use 3.11 # only if an env was already created with another Python
$ poetry install
$ poetry run dev # alias for uvicorn with --reload; see clip_server/__init__.py
Point the backend at it via ENV_CLIP_SERVER_URL=http://localhost:8000 in .env. See clip-server/README.md for endpoints and details.
Rewrite the version of build.sbt, commit and release on GitHub. Docker images are pushed to DockerHub by GitHub Actions.