eniklas / gamatrix

Inspect GOG DBs and report the games in common between them
Mozilla Public License 2.0
11 stars 3 forks source link

add justfile and dev environment #123

Closed eniklas closed 1 year ago

eniklas commented 1 year ago

This adds a justfile (modern make replacement) with recipes to make development easier. Notably, it includes a just dev recipe that spins up the container and dumps you into it in editable mode, so you can dev directly in the container. I opted to move to the full python:3.11 base as the slim base is too minimal for comfortable development (e.g., no ps). This bloats the container from 170MB to 965MB, but a 1GB container is still very reasonable so I think it's worth it.

The justfile only supports Linux for now. Just is cross-platform and recipes can be OS aware, so we can add Windows support in the future if desired. Another approach would be to run just from inside the container, but that will require installing it in the container along with configuring git and possibly ssh, which we can do if we like; I didn't want to go down that rabbit hole just now.