Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified Dockerfile to resolve build errors #1334

Open
wants to merge 1 commit into
base: hometown-4.0.10-merge
Choose a base branch
from

Conversation

hjhornbeck
Copy link

Had to modify the Dockerfile a bit to resolve some issues. In order of occurrence:

  1. 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.
  2. A redundant change to the container's PATH variable was eliminated. Not an issue per-se, but I was debugging the thing anyway.
  3. 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.
  4. Installing yarn would cause a failure, as it was already on the filesystem. Rather than upgrade, the old version was retained.
  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant