Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYS-1315: Fix npm install problem on Mac M1 #26

Merged
merged 1 commit into from
Jun 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# per https://github.com/ExLibrisGroup/primo-explore-devenv
FROM node:16-bullseye

# Add dependencies needed to fix problem with "npm install" of primo-explore-devenv (below) on Mac M1 ARM64,
# which does not have pre-built node-canvas packages.
# https://github.com/Automattic/node-canvas/wiki/Installation:-Ubuntu-and-other-Debian-based-systems
# Note that libgif-dev, librsvg2-dev and libjpeg-dev are optional, and only required if you want gif, svg and jpeg support, respectively.
# apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
RUN apt-get update && apt-get install -y build-essential libcairo2-dev libpango1.0-dev

# Install primo-explore-devenv
# This, and the npm install, will show lots of deprecation warnings due to the old
# Ex Libris environment being used here.
Expand Down