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

[FIX] arm64 libvips (broken sqlite build) #281

Merged
merged 1 commit into from
Jan 12, 2022
Merged

[FIX] arm64 libvips (broken sqlite build) #281

merged 1 commit into from
Jan 12, 2022

Conversation

ianmclinden
Copy link
Contributor

SUMMARY:

On non-amd64 platforms the 4/*/Dockerfile will fail to install sqlite3 from node, and failover to manually building it. Changes to the node-sqlite3 build scripts now include python2 syntax that causes python3 build errors. This can be fixed by downgrading to python2. Debian support on arm64 necessitates bumping to bullseye for dependency requirements.

The following builds now complete successfully:

  • 4/alpine linux/arm64 (docker buildx)
  • 4/alpine linux/arm (docker buildx)
  • 4/alpine linux/amd64 (native)
  • 4/debian linux/arm64 (docker buildx)
  • 4/debian linux/arm (docker buildx)
  • 4/debian linux/amd64 (native)

This may need more deployment testing of non-arm images.

CHANGES:

  • Downgrades python3 to python2 to support broken sqlite3 build scripts when arm/arm64 fails over to manual build
  • Upgrades 4/debian to bullseye for arm64 dependency compatibility

RELATED:

- Downgrades python3 to python2 to support broken sqlite3 build scripts when arm/arm64 fails over to manual build
- Upgrades 4/debian to bullseye for arm64 dependency compatibility
@tianon
Copy link
Member

tianon commented Jan 12, 2022

😩

I thought for sure this can't be right, given Python 2 has been totally EOL for two years now and deprecated for much longer than that, but sure enough, I found TryGhost/node-sqlite3#1516 -- in the "good news" column we have TryGhost/node-sqlite3#1441 (and TryGhost/node-sqlite3#1443, and others) which fixed the issue by updating to a newer dependency on node-gyp, but that isn't in a release yet. 🤦

@tianon
Copy link
Member

tianon commented Jan 12, 2022

Thanks for the fix -- hopefully we'll get a new sqlite3 release before this breaks, because I know Debian is trying to remove python2 ASAP and I imagine Alpine is on a similar path. 🙈

@tianon tianon merged commit ae48809 into docker-library:master Jan 12, 2022
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jan 13, 2022
Changes:

- docker-library/ghost@ae48809: Merge pull request docker-library/ghost#281 from ianmclinden/fix-arm-arm64-sharp
- docker-library/ghost@a398151: [FIX] arm64/arm libvips (broken sqlite build)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instantly crashes when trying to specifically upload pictures arm64 support?
2 participants