Creates a local copy of public Rebrickable database appended with additional table containing user sets.
It uses jncraton/rebrickable-sqlite to create an SQLite database from public Rebrickable csv-dumps. Then it creates a set_lists
table containing all sets from user's Set Lists.
- Build docker image:
docker build -t bricks:latest .
- Run docker container:
docker container run --rm --name lego-collection \
--env LOGIN=<rebrickable username> \
--env PASSWORD=<rebrickable password> \
--env API_KEY=<rebrickable API key> \
--volume=/path/to/database/dir:/database \
bricks:latest
- Save
sample.env
file as.env
file - Change variables' values in
.env
file - Run compose tool:
docker compose up