I’m struggling to install netlify:lm on a docker image:
This is my error. I’ve not seen any documentation about a SHELL environmental variable.
I’ve been unable to find the ~/.netlify/helper/ file. Perhaps there is a problem about running as root which is kind of standard in docker.
# netlify lm:setup
✔ Checking Git version [2.11.0]
✔ Checking Git LFS version [2.12.0]
✔ Checking Git LFS filters
✖ Installing Netlify's Git Credential Helper for Linux
→ Unable to detect SHELL type, make sure the variable is defined in your environment
Configuring Git to use Netlify's Git Credential Helper
Error: Unable to detect SHELL type, make sure the variable is defined in your environment
at shellVariables (/root/.local/share/netlify-cli/node_modules/netlify-lm-plugin/lib/install.js:232:15)
at setupUnixPath (/root/.local/share/netlify-cli/node_modules/netlify-lm-plugin/lib/install.js:138:23)
at Task.task (/root/.local/share/netlify-cli/node_modules/netlify-lm-plugin/lib/install.js:74:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
context: [Object: null prototype] {}
}
Reproduction instructions.
#On host
docker pull node:latest
docker run --rm -it node "/bin/sh"
#In container
SECRET_NETLIFY_AUTH_TOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && apt-get install -y git-lfs
npm install netlify-cli -g
netlify plugins:install netlify-lm-plugin
netlify lm:install