4 Commits

Author SHA1 Message Date
jcabillot 9db78dcce5 Merge pull request 'chore(deps): update dependency opencode-ai to v1.17.18' (#23) from renovate/opencode-ai-1.x into main
Main Release / hadolint (push) Successful in 6s
Main Release / test (push) Successful in 3m13s
Main Release / build (push) Successful in 13s
Main Release / tag (push) Successful in 9s
Tag Release / hadolint (push) Successful in 6s
Tag Release / test (push) Successful in 11s
Tag Release / build-push (push) Successful in 4m45s
Reviewed-on: #23
2026-07-13 18:28:33 -04:00
renovate cb3f2e06a8 chore(deps): update dependency opencode-ai to v1.17.18
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 8s
PR Checks / build-test (pull_request) Successful in 3m42s
2026-07-13 22:23:47 +00:00
jcabillot f72c3513d4 Merge pull request 'fix: run opencode-ai postinstall script after npm install' (#24) from fix/opencode-postinstall into main
Main Release / hadolint (push) Successful in 6s
Main Release / test (push) Successful in 12s
Main Release / build (push) Successful in 11s
Main Release / tag (push) Successful in 9s
Tag Release / hadolint (push) Successful in 7s
Tag Release / test (push) Successful in 3m9s
Tag Release / build-push (push) Successful in 4m25s
Reviewed-on: #24
2026-07-13 18:17:39 -04:00
Hermes Agent 7dc7c4a043 fix: pass --allow-scripts to npm install for blocked postinstall
PR Checks / hadolint (pull_request) Successful in 5s
PR Checks / build-test (pull_request) Successful in 3m7s
The node:24-trixie base image has npm configured with a restricted
allowScripts list, preventing opencode-ai's postinstall from running.
Pass --allow-scripts=opencode-ai,better-sqlite3 to npm install -g to
explicitly allow these packages to run their install scripts.

This is the npm-recommended fix as shown in the npm warning message.
2026-07-13 20:52:32 +00:00
+1 -1
View File
@@ -12,7 +12,7 @@ RUN apt-get update && \
groupadd -g 1000 opencode; \
useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \
npm update -g --no-fund --no-audit && \
npm install -g --no-fund --no-audit opencode-ai@1.17.15 n2-soul@9.0.9 && \
npm install -g --no-fund --no-audit --allow-scripts=opencode-ai,better-sqlite3 opencode-ai@1.17.18 n2-soul@9.0.9 && \
npm cache clean --force && \
chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/