Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Keytar installation fails on Alpine Linux (Docker image) #461

Open
1 task done
manekinekko opened this issue May 25, 2022 · 1 comment
Open
1 task done

Keytar installation fails on Alpine Linux (Docker image) #461

manekinekko opened this issue May 25, 2022 · 1 comment

Comments

@manekinekko
Copy link

Prerequisites

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:

image

Steps to Reproduce

  1. Open a container image like docker run -it mcr.microsoft.com/azure-cli:2.33.1
  2. 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
Copy link

Wonder whether I can get any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants