Skip to content

fix(agent): drop archived neofetch, fix broken node/yarn install - #255

Open
AmirF194 wants to merge 1 commit into
av:mainfrom
AmirF194:fix/240-agent-dockerfile-neofetch-node
Open

fix(agent): drop archived neofetch, fix broken node/yarn install#255
AmirF194 wants to merge 1 commit into
av:mainfrom
AmirF194:fix/240-agent-dockerfile-neofetch-node

Conversation

@AmirF194

@AmirF194 AmirF194 commented Aug 9, 2026

Copy link
Copy Markdown

What

services/agent/Dockerfile fails to build. apt-get install includes neofetch, which has been dropped from the Ubuntu archives the linuxserver/webtop base image tracks, so the build exits with E: Unable to locate package neofetch (exit code 100) before it gets anywhere near the agent sources.

Fixing that surfaces two more breaks further down the same build:

  • curl -L https://npmjs.org/install.sh | sh refuses to run with "npm cannot be installed without node.js" because nothing in the image installs Node.js.
  • npm install -g --unsafe-perm yarn fails with "Unknown cli flag: --unsafe-perm" because the npm version the install script fetches no longer accepts that flag.

Fix

  • Drop neofetch in favor of nodejs in the apt-get install list (neofetch is a display tool and nothing else in the image or the agent sources references it).
  • Drop --unsafe-perm from the yarn install.

Verification

  • docker build against unpatched services/agent/Dockerfile (build context services/agent, HEAD ff2314e): fails at the apt-get install step with E: Unable to locate package neofetch.
  • Same build against the patched Dockerfile: completes end to end (Successfully built), and node --version / npm --version / yarn --version all resolve inside the built image.
  • Checked .github/workflows/*.yml: no lint or test workflow's path filters cover services/agent/**, and harbor.sh dev lint has no Dockerfile pass, so there is no CI gate on this file; the Docker build above is the verification.

Fixes #240

services/agent/Dockerfile installed neofetch via apt-get, but the
package has been dropped from the Ubuntu/Debian archives the
linuxserver/webtop base image tracks, so the build fails immediately
with "E: Unable to locate package neofetch" (exit code 100).

Fixing that surfaces two more breaks in the same build: the npm
bootstrap script (curl -L https://npmjs.org/install.sh | sh) refuses
to run without Node.js already present, since nothing in the image
installs it, and the current npm no longer accepts the --unsafe-perm
flag the yarn install step passes, so it exits with "Unknown cli
flag: --unsafe-perm".

Drop neofetch (a display tool, not used by anything else in the
image) in favor of nodejs, and drop --unsafe-perm from the yarn
install.

Fixes av#240
@AmirF194

Copy link
Copy Markdown
Author

No rush, just checking in after a week. Happy to rebase or split the node/yarn fix out separately if that's easier to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build harbor-agent results in exit code 100, apt-get fails to find neofetch

1 participant