From 30bf6d514ec165ab3db61bbafa6dbb1e0758d65b Mon Sep 17 00:00:00 2001 From: "Aode (Lion)" Date: Thu, 21 Oct 2021 23:17:46 -0500 Subject: [PATCH] Update mastodon build --- mastodon/Dockerfile.arm64v8 | 2 +- .../root/usr/bin/{mastodon-accounts => mastodon-accounts-cull} | 0 mastodon/root/usr/bin/mastodon-accounts-refresh | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) rename mastodon/root/usr/bin/{mastodon-accounts => mastodon-accounts-cull} (100%) create mode 100755 mastodon/root/usr/bin/mastodon-accounts-refresh diff --git a/mastodon/Dockerfile.arm64v8 b/mastodon/Dockerfile.arm64v8 index a9d9bf8..8d6a2c4 100644 --- a/mastodon/Dockerfile.arm64v8 +++ b/mastodon/Dockerfile.arm64v8 @@ -42,7 +42,7 @@ RUN mkdir -p /opt/mastodon/.config/yarn/global && \ gem install bundler:1.17.2 && \ bundle config set deployment 'true' && \ bundle install -j$(nproc) --without development test --with production && \ - yarn install --pure-lockfile + yarn install --pure-lockfile --network-timeout=30000 # Compile assets RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder \ diff --git a/mastodon/root/usr/bin/mastodon-accounts b/mastodon/root/usr/bin/mastodon-accounts-cull similarity index 100% rename from mastodon/root/usr/bin/mastodon-accounts rename to mastodon/root/usr/bin/mastodon-accounts-cull diff --git a/mastodon/root/usr/bin/mastodon-accounts-refresh b/mastodon/root/usr/bin/mastodon-accounts-refresh new file mode 100755 index 0000000..5487d98 --- /dev/null +++ b/mastodon/root/usr/bin/mastodon-accounts-refresh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +bundle exec bin/tootctl accounts refresh --all