Be able to install a self-hosted out of Docker #22735
Replies: 3 comments 1 reply
-
Directus is able to installed without Docker! But you may have to resolve some system specifc dependencies. Directus does rely on a couple of system dependencies ( Because it is not realistic for us to document all the various possible combinations (and more importantly keep those up-to-date) or provide support to every unique configuration we heavily recommend using Docker which solves this exact dependency problem. |
Beta Was this translation helpful? Give feedback.
-
This will not be a supported path in the future - Docker is a standard tool which solves issues @br41nslug mentions. When we launch our upcoming docs platform, this install method will not feature. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answers and your support. I now can do everything with Docker and it rocks :) |
Beta Was this translation helpful? Give feedback.
-
Summary
Fortunately I now use Docker and it rocks.
But I was curious to understand why
npm init directus-project test
doesn't work anymore as it should.It systematically encounters a problem with sharp:
npm install --include=optional sharp
yarn add sharp --ignore-engines
See https://sharp.pixelplumbing.com/install#cross-platform
npm install --os=linux --cpu=x64 sharp
See https://sharp.pixelplumbing.com/install
at Object. (/var/www/test/node_modules/sharp/lib/sharp.js:114:9)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object. (/var/www/test/node_modules/sharp/lib/constructor.js:10:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
None of the proposed solutions work.
Basic Example
run
npm init directus-project test
on a bare new server on debian 12Motivation
Sometimes it's nice to have a quick test installation out of docker
Detailed Design
Make sure sharp tries to install with the right options?
Requirements List
Must Have:
Should Have:
Could Have:
Won't Have:
Drawbacks
None
Alternatives
Docker of course. But that is not the goal here.
Adoption Strategy
Immediate
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions