explorer
explorer copied to clipboard
Add ARM support
Description of change
This PR adds support for ARM. Currently it still doesn't work, because there is not ARM support for the SDK it seams.
Links to any relevant issues
Fixes https://github.com/iotaledger/iota-sandbox/issues/28.
Type of change
- Enhancement (a non-breaking change which adds functionality)
How the change has been tested
Change checklist
- [x] My code follows the contribution guidelines for this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
=> CACHED [3/8] WORKDIR /usr/src/app 0.0s
=> CACHED [4/8] COPY . ./ 0.0s
=> ERROR [5/8] RUN npm install --maxsockets 1 108.0s
------
> [5/8] RUN npm install --maxsockets 1:
11.20 npm WARN deprecated [email protected]: no longer maintained
17.26 npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
107.5 npm notice
107.5 npm notice New major version of npm available! 8.19.4 -> 10.5.2
107.5 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.2>
107.5 npm notice Run `npm install -g [email protected]` to update!
107.5 npm notice
107.5 npm ERR! code 1
107.5 npm ERR! path /usr/src/app/node_modules/@iota/sdk
107.5 npm ERR! command failed
107.5 npm ERR! command sh -c -- prebuild-install --runtime napi --tag-prefix=iota-sdk-nodejs-v && tsc || npm run rebuild
107.5 npm ERR! > @iota/[email protected] rebuild
107.5 npm ERR! > node scripts/neon-build && tsc && node scripts/strip.js
107.5 npm ERR!
107.5 npm ERR! yarn run v1.22.19
107.5 npm ERR! $ cargo-cp-artifact -ac iota-sdk-nodejs ./index.node -- cargo build --profile=production --message-format=json-render-diagnostics
107.5 npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
107.5 npm ERR! prebuild-install warn install No prebuilt binaries found (target=6 runtime=napi arch=arm64 libc= platform=linux)
107.5 npm ERR! Error: could not find the `cargo` executable.
Seams like there are no prebuilt binaries linux/arm64
🤔 ?
Correct. https://github.com/iotaledger/iota-sdk/issues/97
nor x64?
[5/5] Building fresh packages...
error /__w/[redacted]/node_modules/@iota/sdk: Command failed.
Exit code: 1
Command: prebuild-install --runtime napi --tag-prefix=iota-sdk-nodejs-v && tsc || npm run rebuild
Arguments:
Directory: /__w/[redacted]/node_modules/@iota/sdk
Output:
prebuild-install warn install No prebuilt binaries found (target=6 runtime=napi arch=x64 libc=musl platform=linux)
And including cargo so it can be built results in this:
error: cannot produce cdylib for `iota-sdk-nodejs v0.1.0 (/__w/t[redacted]/node_modules/@iota/sdk)` as the target `x86_64-unknown-linux-musl` does not support these crate types
hello? anyone care about this PR? See comment above
The SDK is blocking this issue. Why do you try to build the explorer from scratch? We have a docker image for it. If you need further help please ask on our discord
I'm not building the explorer, I'm doing something similar with the SDK and running into the same issues. I'll bring this up on Discord. Thanks.