FROM dmstraub/gramps-webapi:latest-devel # copy config file COPY config.cfg /app/config/ # extract & use Gramps example tree ENV GRAMPS_RESOURCES /usr/share/ RUN cp -r /usr/local/share/doc/gramps/example/gramps/example.gramps . RUN gramps -C Example -i example.gramps --config=database.backend:sqlite --config=database.path:/root/.gramps/grampsdb RUN rm -rf appcache # build full-text search index RUN python3 -m gramps_webapi --config /app/config/config.cfg search index-full # add user accounts RUN python3 -m gramps_webapi --config /app/config/config.cfg user add --role 4 owner owner RUN python3 -m gramps_webapi --config /app/config/config.cfg user add --role 3 editor editor RUN python3 -m gramps_webapi --config /app/config/config.cfg user add --role 2 contributor contributor RUN python3 -m gramps_webapi --config /app/config/config.cfg user add --role 1 member member RUN python3 -m gramps_webapi --config /app/config/config.cfg user add --role 0 guest guest RUN python3 -m gramps_webapi --config /app/config/config.cfg user add --role -1 disabled disabled