diff --git a/containers/red/Containerfile b/containers/red/Containerfile index f50bda3..1852f73 100644 --- a/containers/red/Containerfile +++ b/containers/red/Containerfile @@ -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}" \ diff --git a/src/dogebot/manifest.py b/src/dogebot/manifest.py index f1edb02..2f1ecb8 100644 --- a/src/dogebot/manifest.py +++ b/src/dogebot/manifest.py @@ -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 diff --git a/tests/test_manifest.py b/tests/test_manifest.py index 6a631a3..60f5077 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -19,6 +19,7 @@ REQUIRED = { "warnings", "watch", "doge_alignment", + "perform", }