Skip to content

Commit c6287cd

Browse files
committed
Remove xh and supabase CLI from runtime image
1 parent 0c07f5b commit c6287cd

3 files changed

Lines changed: 5 additions & 17 deletions

File tree

Dockerfile

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ARG DEBIAN_FRONTEND=noninteractive
77
ARG NODE_MAJOR=24
88
ARG OXIPNG_VERSION=10.1.1
99
ARG HADOLINT_VERSION=2.13.1
10-
ARG XH_VERSION=0.25.3
1110
ARG WEBSOCAT_VERSION=1.14.1
1211
ARG BUN_INSTALL=/opt/bun
1312
ARG UV_INSTALL_DIR=/usr/local/bin
@@ -99,6 +98,7 @@ RUN printf '%s\n' \
9998
pipx \
10099
virtualenv \
101100
csvkit \
101+
httpie \
102102
jq \
103103
yq \
104104
ripgrep \
@@ -225,15 +225,11 @@ RUN set -eux; \
225225
amd64) \
226226
aws_arch="x86_64"; \
227227
hadolint_arch="x86_64"; \
228-
supabase_arch="amd64"; \
229-
xh_arch="x86_64-unknown-linux-musl"; \
230228
websocat_asset="websocat.x86_64-unknown-linux-musl"; \
231229
;; \
232230
arm64) \
233231
aws_arch="aarch64"; \
234232
hadolint_arch="arm64"; \
235-
supabase_arch="arm64"; \
236-
xh_arch="aarch64-unknown-linux-musl"; \
237233
websocat_asset="websocat.aarch64-unknown-linux-musl"; \
238234
;; \
239235
*) \
@@ -249,17 +245,9 @@ RUN set -eux; \
249245
ln -sf /root/.duckdb/cli/latest/duckdb /usr/local/bin/duckdb; \
250246
curl -fsSL -o /usr/local/bin/hadolint "https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Linux-${hadolint_arch}"; \
251247
chmod +x /usr/local/bin/hadolint; \
252-
curl -fsSL -o /tmp/supabase.deb "https://github.com/supabase/cli/releases/latest/download/supabase_linux_${supabase_arch}.deb"; \
253-
apt-get update; \
254-
apt-get install -y --no-install-recommends /tmp/supabase.deb; \
255-
rm -rf /var/lib/apt/lists/*; \
256-
curl -fsSL -o /tmp/xh.tar.gz "https://github.com/ducaale/xh/releases/download/v${XH_VERSION}/xh-v${XH_VERSION}-${xh_arch}.tar.gz"; \
257-
mkdir -p /tmp/xh; \
258-
tar -xzf /tmp/xh.tar.gz -C /tmp/xh; \
259-
install -m 0755 "/tmp/xh/xh-v${XH_VERSION}/${xh_arch}/xh" /usr/local/bin/xh; \
260248
curl -fsSL -o /usr/local/bin/websocat "https://github.com/vi/websocat/releases/download/v${WEBSOCAT_VERSION}/${websocat_asset}"; \
261249
chmod +x /usr/local/bin/websocat; \
262-
rm -rf /tmp/aws /tmp/awscliv2.zip /tmp/install-duckdb.sh /tmp/supabase.deb /tmp/xh /tmp/xh.tar.gz
250+
rm -rf /tmp/aws /tmp/awscliv2.zip /tmp/install-duckdb.sh
263251

264252
RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
265253
&& uv --version \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ This image includes a comprehensive suite of tools categorized for agentic tasks
4646
| **Web & API CLIs** | `vercel`, `wrangler` (Cloudflare), `gemini` (Google), `gws` (Google Workspace), `lark-cli` (Feishu) |
4747
| **Python Libraries** | `requests`, `httpx`, `pydantic`, `pandas`, `numpy`, `beautifulsoup4`, `ruff`, `duckdb` |
4848
| **Document Processing** | LibreOffice (Headless), `pandoc`, `pypdf`, `pdfplumber`, `python-docx`, `openpyxl`, `python-pptx` |
49-
| **Database Clients** | PostgreSQL, MySQL, Redis, SQLite, DuckDB, **Neon (`neonctl`)**, Supabase CLI |
50-
| **Network Tools** | `curl`, `wget`, `aria2`, `nmap`, `cloudflared`, `xh`, `websocat`, `socat`, `sshpass` |
49+
| **Database Clients** | PostgreSQL, MySQL, Redis, SQLite, DuckDB, **Neon (`neonctl`)** |
50+
| **Network Tools** | `curl`, `wget`, `aria2`, `nmap`, `cloudflared`, **HTTPie (`http`)**, `websocat`, `socat`, `sshpass` |
5151
| **Cloud & DevOps** | `aws-cli`, `gh` (GitHub CLI), `git-lfs`, `rclone`, `hadolint`, `shellcheck` |
5252
| **Multimedia** | `ffmpeg`, `yt-dlp`, ImageMagick, `exiftool`, `oxipng` |
5353
| **Text & Data Utils** | `jq`, `yq`, `rg` (ripgrep), `fd`, `mlr` (miller), `csvkit`, `tmux` |

verify-runtime.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for cmd in printenv envsubst timeout flock stdbuf script git git-lfs gh rg aria2
1313
done
1414

1515
echo "== network and text tools =="
16-
for cmd in dig nslookup ip ping nc nmap tcpdump traceroute whois cloudflared xh websocat awk gawk grep envsubst diff patch csvcut mlr shellcheck shfmt hadolint ruff aws supabase neon neonctl gws lark-cli sshpass; do
16+
for cmd in dig nslookup ip ping nc nmap tcpdump traceroute whois cloudflared http websocat awk gawk grep envsubst diff patch csvcut mlr shellcheck shfmt hadolint ruff aws neon neonctl gws lark-cli sshpass; do
1717
command -v "$cmd" >/dev/null
1818
printf '%-14s %s\n' "$cmd" "$(command -v "$cmd")"
1919
done

0 commit comments

Comments
 (0)