Had to modify the Dockerfile a bit to resolve some issues. In order of occurrence:
Significant changes were made to the way Mastodon is built. These may not have been necessary, but they do align with what's in v4.2's Dockerfile, so I'm sticking with them.
A redundant change to the container's PATH variable was eliminated. Not an issue per-se, but I was debugging the thing anyway.
Two dependencies were missing, libjemalloc2 and libyaml-dev, the former of which was necessary to run Ruby, while the latter was used by a library.
Installing yarn would cause a failure, as it was already on the filesystem. Rather than upgrade, the old version was retained.
Pre-compiling the assets would consistently fail, with a message that a Ruby package was missing/partly installed. Adding another bundle install call fixed this.
After those changes, sudo docker compose build && sudo docker compose up -d worked without issue for the instance I run, and I have yet to notice any data loss.
Had to modify the Dockerfile a bit to resolve some issues. In order of occurrence:
libjemalloc2
andlibyaml-dev
, the former of which was necessary to run Ruby, while the latter was used by a library.yarn
would cause a failure, as it was already on the filesystem. Rather than upgrade, the old version was retained.bundle install
call fixed this.After those changes,
sudo docker compose build && sudo docker compose up -d
worked without issue for the instance I run, and I have yet to notice any data loss.