Commit Graph

30 Commits

Author SHA1 Message Date
Rijk van Zanten
2f16bdff61 Add legacy in docker build as well (#25483) 2025-07-17 10:44:20 -04:00
daedalus
19179adef8 Fix sqlite in docker image (#24728)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-02-28 12:43:53 +01:00
Pascal Jufer
110083e909 Patch corepack in Docker image (#24521) 2025-02-04 11:02:04 +01:00
Rijk van Zanten
b8cc796f4c Upgrade Node.js runtime version to 22 (#24140)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-08 13:26:14 +01:00
Pascal Jufer
646eb4dafa Fix docker image to allow subsequent pnpm setups (#23878) 2024-10-24 09:22:17 +02:00
Rijk van Zanten
7df84c0a89 Add support for EXTENSIONS_LOCATION setting (#20207)
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-16 13:29:03 +00:00
Pascal Jufer
45847a61a2 Prevent re-installation of deps in Docker image (#20346)
* Ignore Dockerfile to prevent layer cache drops

* Prevent reinstallation of deps in Docker image

* Add changeset

* Prettify by using heredoc & inject packageManager

* Add comment

* Update docs

* Apply suggestions from code review

* Refer to original issue instead of pull request

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-11-08 13:37:59 -05:00
Rijk van Zanten
cde4dc6c78 Run Directus in PM2 Cluster mode in Docker Image (#18998)
* Send ready state to pm2

* Run with pm2

* Add ecosystem config

* Fix cjs naming

* Add start command

* Increase kill timeout retry

* Set PM2 config through environment variables

* Add changeset

* Add config options for pm2

* Add additional config options

* Add more wordssssssssss

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update ecosystem.config.cjs

Co-authored-by: Wryn (yage) Wagner <yage@yage.io>

* Default to undefined instead of empty string

* Update docs to match safer defaults

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Wryn (yage) Wagner <yage@yage.io>
2023-10-25 15:34:26 -04:00
Pascal Jufer
830bddd554 Fix docker build for arm64 image (#19530)
* Fix docker build for arm64 image

* Add changeset
2023-08-25 12:30:58 -04:00
Pascal Jufer
27072a1599 Fix the ownership of the workdir in the docker image (#18275) 2023-04-21 13:12:37 -04:00
Pascal Jufer
dcc246e165 Introduce new directus wrapper package (#18134)
* Maybe?

* Maybe maybe

* ESM & version update

* Adjust Dockerfile to new wrapper package

* Clean-up api package.json file

* Update directus/package.json

* Update directus/package.json

* Update directus/package.json

* Regen pnpm lock

* Declare engines in new wrapper package

* Use wrapper version in app-settings

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-04-11 15:25:58 -04:00
Pascal Jufer
5b256f64c6 Use pnpm 8.1.0, define version via packageManager field, clean-up other version definitions (#17993)
* Use `packageManager` field to define pnpm version in one place

* Update to pnpm 8.1.0 (see also #17990)

* Enforce pnpm >= 8 via `engines`

* Clean-up `engines` & remove `volta`

* Add dedup workaround, consolidate test env prepare steps

* No checkout, no action :-)

* Bump minimal pnpm version to 8.1.0

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-04 15:20:25 -04:00
Rijk van Zanten
953c2f95d5 Upgrade pnpm to 8 (#17979) 2023-03-28 13:43:25 -04:00
Wryn (yage) Wagner
e1a1190975 Dockerfile Improvements (#17965)
* combined layers, optimized layer order

* Revert data volume scoping

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-03-28 11:07:26 -04:00
Rijk van Zanten
13a720bb63 Make final docker image lighter (#17933)
* Make final docker image lighter

* Revert max-old-space-size change
2023-03-24 19:38:43 -04:00
rijkvanzanten
9f9abfa0a0 Use two layers for corepack & fetch 2023-03-24 15:08:58 -04:00
Rijk van Zanten
495b57f00b Fix npm usage in Docker image (#17923)
* Hacky nonesense

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Copy bin file for `directus`

To be able to use `npx directus ...`

* Add chown for node on files

* Simplify folder / ownership commands

* Enable pnpm

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-24 11:33:07 -04:00
Rijk van Zanten
27706f7067 Fix volume names (#17921) 2023-03-24 09:42:12 -04:00
Rijk van Zanten
0d8b3a52c7 Simplify / improve release flow (#17858)
* Remove git-hook

This is already running in GH Actions as well

* Start new Dockerfile

* Remove unused files

* Close, but not quite

* Line break between environment specific commands / operational ones

* Cleanup dockerfile

* Update github release automation

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Improve based on review comments

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-23 13:20:14 -04:00
Nicola Krumschmidt
03cf03b1bf Clean up API exports (#9418)
* Move API entrypoint to typescipt

* Remove explicit cli exort from API

The "./*" export should export all subpaths, so explicitly exporting the cli shouldn't be necessary.

* Remove dedicated start script from API

This script isn't even included in the final npm package and it's only used by the test Dockerfile.
2021-11-03 17:34:48 -04:00
Jay Cammarano
90bb9d4879 End-to-end tests for filters (#9078)
* reorganized for sanity

* filter tests for _eq/_neq

* logical operators

* update one one to many

* /:collection PATCH one to many

* base tables.id => uuids to minimize collisions

* tests pass

* added python to dockerfile

* tests passing

* ci?

* ci...

* hanging async
2021-11-01 14:21:44 -04:00
rijkvanzanten
728a9397e7 Improve e2e tests, fail when directus fails 2021-09-28 15:42:50 -04:00
Nicola Krumschmidt
3e7d00982f Replace require.main check with start script (#8005) 2021-09-13 16:31:21 -04:00
Nicola Krumschmidt
727947b72d Fix CLI not executing any command (#7992)
Fixes a regression introduced in #7675
2021-09-13 12:32:15 -04:00
rijkvanzanten
10d0b5623c Limit to node 16 2021-07-14 16:29:16 -04:00
rijkvanzanten
56e58c913c Should work now 2021-07-14 16:09:46 -04:00
rijkvanzanten
c54b955359 Attempt to fix e2e test 2021-07-14 15:51:27 -04:00
Nicola Krumschmidt
965bcde4ee Enforce latest node and npm version in dev (#6414)
* Enforce latest node and npm version in dev

* Update CI workflows to Node 16
2021-06-22 11:22:37 -04:00
Jakob
f5250143c7 Setup CI for e2e tests (#5035) 2021-04-13 17:03:45 -04:00
Rijk van Zanten
c7476cedbd End-to-end test setup (#4833)
* First start on test setup

* Setup e2e runner framework

* Use prepublishOnly for docs build

* Setup docker-based e2e test runner

* Spacing

* Setup db-getter + config

* Build image in Dockerode, pull images if needed

* Fix waiting for DB, run test for each running instance

* Get tests running per vendor

* Temp remove oracle

* Close awaiting connections in between
2021-04-05 15:11:02 -04:00