Open nt3rp opened 3 days ago
I've done a bit of investigation, and have managed to figure out a few pieces but not the whole problem:
node:18-alpine
doesn't ship with disttools
The image used for the Dockerfile ships with python3, which doesn't include disttools
, which is used by gyp
, which is a dependency of zlib-sync
and opus
. In my testing, fixing that was a matter of adding py-setuptools
to lines 5 and 15 of the Dockerfile
Incorrect version of yarn
used
After getting past that, I was running into issues with yarn
. I don't have a log handy, but it was something like, "packageManager
requires yarn@4.x (from package.json
) but currently using 1.22.22" (which I was able to confirm).
I think the solution to that is to run corepack enable
before installing yarn
, as it seemed to resolve the issue.
Problems with yarn
After that I hit a roadblock that I haven't figured out as I'm not super familiar with yarn
. It's either:
workspaces
plugin(I'll try to dig in deeper but wanted to file this bug report in case there are known fixesβor if someone more familiar with the project is able to fix it faster)
Problem When trying to run the Pandora application, the Docker image cannot be built.
Steps to Reproduce
git clone
the latest releasev2.5.2
master
cp .env.example
tosamples/minimal
and rename to.env
PANDORA_TOKEN
cd samples/minimal; docker compose up
Expected Pandora, along with a redis instance and cooking instance should be running.
Actual An error occurs while trying to
yarn install
:Error
``` docker compose up [+] Building 0.0s (0/1) [+] Building 0.2s (2/3) docker:default => [pandora internal] load build definition from Dockerfile => => transferring dockerfile: 933B [+] Building 0.4s (2/3) docker:default => [pandora internal] load build definition from Dockerfile => => transferring dockerfile: 933B [+] Building 19.9s (11/14) docker:default => [pandora internal] load build definition from Dockerfile => => transferring dockerfile: 933B => [pandora internal] load metadata for docker.io/library/node:18-alpine => [pandora auth] library/node:pull token for registry-1.docker.io => [pandora internal] load .dockerignore => => transferring context: 116B => [pandora internal] load build context => => transferring context: 7.35kB => [pandora build 1/7] FROM docker.io/library/node:18-alpine@sha256:7e43a2d633d91e8655a6c0f45d2ed987 => CACHED [pandora build 2/7] WORKDIR /app => CACHED [pandora build 3/7] RUN apk add python3 make alpine-sdk yarn => CACHED [pandora build 4/7] COPY . /app/ => CACHED [pandora build 5/7] RUN yarn set version berry && grep -qF 'nodeLinker' .yarnrc.yml || ec => ERROR [pandora build 6/7] RUN yarn install ------ > [pandora build 6/7] RUN yarn install: 0.587 β€ YN0087: Migrated your project to the latest Yarn version π 0.587 0.589 β€ YN0000: Β· Yarn 4.5.3 0.598 β€ YN0000: β Resolution step 4.408 β€ YN0085: β + typescript@patch:typescript@npm%3A5.0.3#optional!builtin