metabrainz / musicbrainz-docker

Docker Compose project for the MusicBrainz Server with replication, search, and development setup
https://musicbrainz.org/doc/MusicBrainz_Server/Setup
297 stars 75 forks source link

Store bash history for musicbrainz development #272

Closed yvanzo closed 6 months ago

yvanzo commented 6 months ago

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.

yvanzo commented 6 months ago

Just rebased after merging #273.