In development setup, when recreating the container for the service musicbrainz, the history of the commands run inside the container is gone, which is annoying for repeating commands.
Solution
Bind mount the file .bash_history so that it is the always the same in development setup.
It doesn’t affect mirror/test setup which don’t need to run commands in the container anyway.
Problem
In development setup, when recreating the container for the service
musicbrainz
, the history of the commands run inside the container is gone, which is annoying for repeating commands.Solution
Bind mount the file
.bash_history
so that it is the always the same in development setup.It doesn’t affect mirror/test setup which don’t need to run commands in the container anyway.
This implementation is mostly copied/slightly adapted from https://github.com/metabrainz/mmd-schema/pull/35.