kellnerd: In dev it is not used so the setup does not have any provision for it, indeed. We could amend the docker-compose file to set the build arg when we build the container as described here: https://docs.docker.com/compose/compose-file/bu...
I had a doubt, so as BookBrainz is still in the early stages, would my proposal of building something like a recommendation system for users like listenbrainz has based on user's likes, (also improving the genre system) could be useful to bookbrainz rn?
monkey
Hi Sahaj ! At the moment there is no such thing as likes in BookBrainz, and I doubt there are any data points that would be usable for a recommendation system
Sahaj
So should the genre system (and maybe a likes system) be of any importance to bookbrainz?
So would it be apt for me to propose a MusicBrainz-like tags system similar to trivia tags like Pulitzer book awards etc. along with UI/UX improvements for gsoc 23 ?
Or are there other priorities to focus on first.
kellnerd joined the channel
kellnerd
monkey: I've followed your suggestion and almost got it working.
My dev server now has the following inside the footer: "Alpha Software — $(git rev-parse --short HEAD) — Report a Bug"
So .env file values are taken literally and will not be interpolated :/
Also, when passing this as Docker ARG, it is not available during runtime, e.g. via `process.env.GIT_COMMIT_SHA`
This leads to hacky workarounds such as `RUN echo $GIT_COMMIT_SHA > .git-version` and reading that file during runtime...
Wouldn't it be much easier to pass $GIT_COMMIT_SHA as an environment variable in docker-compose.yml?
I will try that now.
Ok, now I have "User-Agent: bookbrainz-site/$(git rev-parse --short HEAD) (bookbrainz.org)", but still not interpolated of course.
I think I've figured out how to approach this, will push my commits soon :)
Sahaj has quit
Testing the changes took me a bit longer, because Docker rebuilds the whole image from scratch every time an ARG changes...
Sorry for force-pushing my branch twice in such a short period, I usually try to avoid that, but I wanted to clarify the commit messages a bit O:3