Add the perform cog (sravan-cogs); build the Red image from fast Debian mirrors
deb.debian.org is Fastly, which the home network reaches via a congested NMSU -> CENIC -> Fastly path (~125 ms, ~60 KB/s); Leaseweb gives ~7 MB/s and OCF Berkeley (which carries debian-security) ~3 MB/s. Both are build args, so other hosts can keep deb.debian.org. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
85bcee8c1a
commit
63affa8033
3 files changed
+22
-1
No files matched your search
@@ -11,7 +11,19 @@ FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
|
||||
ARG IMAGEMAGICK_VERSION="8:6.9.11.60+dfsg-1.6+deb12u*"
|
||||
ARG DEJAVU_VERSION="2.37-6"
|
||||
ARG NOTO_EMOJI_VERSION="2.042-0+deb12u*"
|
||||
RUN apt-get update \
|
||||
# deb.debian.org is Fastly, which the home network reaches through a congested
|
||||
# path (NMSU -> CENIC -> Fastly: ~125 ms and ~60 KB/s, 2026-11-10) while other
|
||||
# mirrors give 3-7 MB/s. Leaseweb has no debian-security; OCF Berkeley does.
|
||||
# Pass --build-arg DEBIAN_MIRROR=http://deb.debian.org/debian (and the
|
||||
# security one) to build elsewhere with the defaults.
|
||||
ARG DEBIAN_MIRROR="http://mirror.us.leaseweb.net/debian"
|
||||
ARG DEBIAN_SECURITY_MIRROR="http://mirrors.ocf.berkeley.edu/debian-security"
|
||||
RUN sed -i \
|
||||
-e "s#http://deb.debian.org/debian-security#${DEBIAN_SECURITY_MIRROR}#" \
|
||||
-e "s#http://deb.debian.org/debian\$#${DEBIAN_MIRROR}#" \
|
||||
/etc/apt/sources.list.d/debian.sources \
|
||||
&& grep -q "${DEBIAN_MIRROR}" /etc/apt/sources.list.d/debian.sources \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends git build-essential \
|
||||
"libmagickwand-6.q16-6=${IMAGEMAGICK_VERSION}" \
|
||||
"libmagickcore-6.q16-6-extra=${IMAGEMAGICK_VERSION}" \
|
||||
|
||||
@@ -34,6 +34,11 @@ REPOS: tuple[CogRepo, ...] = (
|
||||
CogRepo(
|
||||
"doge_cogs", "https://github.com/RustyRaptor/doge_cogs", "main"
|
||||
),
|
||||
CogRepo(
|
||||
"sravan-cogs",
|
||||
"https://github.com/sravan1946/sravan-cogs",
|
||||
"master",
|
||||
),
|
||||
)
|
||||
|
||||
# Cogs that ship with Red. Downloader is needed to install the others.
|
||||
@@ -59,6 +64,9 @@ THIRD_PARTY_COGS: dict[str, str] = {
|
||||
"userinfo": "flare-cogs",
|
||||
"watch": "doge_cogs",
|
||||
"doge_alignment": "doge_cogs",
|
||||
# GIF actions (hug, pat, ...); needs `[p]set api perform api_key`
|
||||
# from https://kawaii.red
|
||||
"perform": "sravan-cogs",
|
||||
}
|
||||
|
||||
# Cogs shipped in this repo's cogs/ folder (besides dogesetup, which Red loads
|
||||
|
||||
@@ -19,6 +19,7 @@ REQUIRED = {
|
||||
"warnings",
|
||||
"watch",
|
||||
"doge_alignment",
|
||||
"perform",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user