Keytar installation fails on Alpine Linux (Docker image)
manekinekko opened this issue · 1 comments
manekinekko commented
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
We are using Keytar as a dependency in our project (Azure Static Web Apps CLI), and some users have reported a failure when trying to install the package, on Alpine Linux (Docker image). We managed to reproduce the issue on our end, and here is the error message:
Steps to Reproduce
- Open a container image like
docker run -it mcr.microsoft.com/azure-cli:2.33.1
- Run the following commands:
# Update and upgrade
apk update && apk upgrade \
&& apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils \
&& apk add -U bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib \
&& apk add -U libgdiplus --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ \
&& apk add -U libc6-compat gcompat
# Install nvm
cd ~
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Install node.js
nvm install --lts
nvm use --lts
# Install SWA CLI
npm install -g @azure/static-web-apps-cli
Expected behavior:
The SWA CLI should be installed successfully.
Actual behavior:
See error above.
Reproduces how often:
Always.
Versions
OS: A container image, mcr.microsoft.com/azure-cli:2.33.1, based on Alpine Linux
Additional Information
Origina issue: Azure/static-web-apps-cli#509
justinyoo commented
Wonder whether I can get any update on this?