Commit graph

161 commits

Author SHA1 Message Date
Kamil Essekkat bd5ea455e1
docs: Mention UID in the docker examples (#7281) 2023-10-13 11:56:43 +01:00
कारतोफ्फेलस्क्रिप्ट™ bc9fa10b06 ci: Remove scheduled build for beta, and fix the inputs (no-changelog) 2023-10-03 21:45:13 +02:00
कारतोफ्फेलस्क्रिप्ट™ 101255d186
ci: Make builds release-channel aware. Add support for scheduled beta builds (#7323)
ADO-1121

---------

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2023-10-03 20:49:04 +02:00
कारतोफ्फेलस्क्रिप्ट™ 1b4247498b ci: Trim FE package.json files before publishing (no-changelog) 2023-08-31 14:45:44 +02:00
कारतोफ्फेलस्क्रिप्ट™ 07d3633a05
ci: Use an init container to fix mounted-path permissions in docker compose (#6956)
Fixes
* #6733
* #6793

related PR https://github.com/n8n-io/n8n-docker-caddy/pull/12
2023-08-25 11:51:55 +02:00
Iván Ovejero 7ce5d8fd90
refactor: Upgrade to Prettier 3 (no-changelog) (#6947)
Supersedes https://github.com/n8n-io/n8n/pull/6937

Excluding fixtures and test workflow JSONs to avoid having to update
tests.
2023-08-16 17:13:57 +02:00
कारतोफ्फेलस्क्रिप्ट™ 34df8b6238
refactor: Consolidate tsconfig and eslintrc files (no-changelog) (#6816)
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
2023-08-01 17:32:43 +02:00
Ali Afsharzadeh ed9f86bb95
fix(core): Use exec in docker images to forward signals correctly (#6732) 2023-07-25 17:08:58 +02:00
Sandra Ashipala 0c47be254b
fix: Minor grammar adjustment (no-changelog) (#6626) 2023-07-13 14:15:55 +01:00
कारतोफ्फेलस्क्रिप्ट™ b701dcb8ef
ci!: Drop support for Node.js 16. Add initial support for Node.js 20 (#6649)
We need to drop node 16 support, [as support for it is ends much earlier now, due to support for openssl 1.1.1 ending](https://nodejs.org/en/blog/announcements/nodejs16-eol).

`0.236.x` releases will continue to support Node.js 16 for another two months, and `1.x.x` releases will only support Node.js 18 for now.
2023-07-12 15:03:23 +02:00
कारतोफ्फेलस्क्रिप्ट™ 05007d894e
fix(core): Update docker compose setup for V1 images (#6642) 2023-07-12 11:55:19 +02:00
Iván Ovejero 075fd02bd6
refactor: Remove basic auth env vars from docker compose stacks (#6570)
* refactor: Remove basic auth env vars from MariaDB stack

* refactor: Remove envs from other stacks

* refactor: Remove MariaDB example
2023-07-04 21:15:10 +02:00
कारतोफ्फेलस्क्रिप्ट™ f217e1f149 ci: fix docker build for release images (no-changelog) 2023-06-27 17:13:28 +02:00
Iván Ovejero 8c008f5d22 refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-06-22 20:03:47 +02:00
कारतोफ्फेलस्क्रिप्ट™ f024d8be5a ci!: Update docker images for v1 release (#6365)
* ci: Remove debian and rhel7 images

* include libc6-compat in all alpine images

* run all n8n docker containers as the user `node` instead of `root`

* upgrade the default version of npm bundled in all containers

* consolidate docker entrypoints
2023-06-22 19:57:59 +02:00
कारतोफ्फेलस्क्रिप्ट™ 968b733fd6
ci: Add support for Node.js 18 (#5793)
* ci: Start supporting Node.js 18

Node.js 18 became the active LTS on 2022-10-25, and Node.js 16 went into maintenance mode.
https://github.com/nodejs/Release#release-schedule

We should also slowly deprecate node 16 support, [as support for it is ends much earlier now, due to support for openssl 1.1.1 ending](https://nodejs.org/en/blog/announcements/nodejs16-eol).

* Remove hashing algorithms that are not available in newer node.js/openssl

- RSA-MD4
- RSA-MDC2
- md4
- md4WithRSAEncryption
- mdc2
- mdc2WithRSA

* in e2e tests, resolve `localhost` to ipv4 instead of ipv6
2023-06-02 15:23:28 +02:00
कारतोफ्फेलस्क्रिप्ट™ e88b9d880a
feat(core): Include openssh in the base docker image (no-changelog) (#6275) 2023-05-19 12:16:29 +02:00
Jimw383 4d5756cd01
ci: Use --chown=node:node in COPY commands in the custom docker image (no-changelog) (#5913)
add --chown=node:node to COPY commands

By adding `--chown=node:node` when copying the source and removing `RUN chown -R node:node .`, we save several minutes during the image building process.
2023-04-12 15:45:01 +02:00
Cornelius Suermann 573bc8bcea
docs: Refer to docker.n8n.io/n8nio/n8n for pulling n8n docker images (no-changelog) (#5763) 2023-03-23 15:38:01 +01:00
OlegIvaniv 8fe34f543e
ci: Copy jest.config.js to the Docker container on deployment (no-changelog) (#5689)
ci: Copy `jest.config.js` to the Docker container on deployment (no-changelog)
2023-03-14 18:46:41 +01:00
OlegIvaniv dbcbe595cc
ci(core): Fix docker nightly/custom image build (no-changelog) (#5284)
* ci(core): Copy patches dir to Docker (no-changelog)

* Update patch

* Update package-lock

* reapply the patch

* skip patchedDependencies after the frontend is built

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-01-30 11:02:05 +01:00
कारतोफ्फेलस्क्रिप्ट™ b4a5ff2430
refactor: Reduce custom docker image size by about 30% (#5104)
frontend dependencies are not needed after the image has been built.
2023-01-09 16:42:53 +01:00
कारतोफ्फेलस्क्रिप्ट™ c7b36ecfb2
ci: Make custom images consistent with the release images (no-changelog) (#4924) 2022-12-21 17:12:12 +01:00
कारतोफ्फेलस्क्रिप्ट™ d60a815a44
ci: Use a fixed version of NPM in the release process (no-changelog) (#4975)
ci: Use a fixed version of NPM in the release process
2022-12-21 09:52:10 -06:00
कारतोफ्फेलस्क्रिप्ट™ b80e38817d
ci: Add libc6-compat to nightly docker builds (no-changelog) (#4885)
ci: add libc6-compat to nightly docker build (no-changelog)
2022-12-11 21:15:13 +01:00
कारतोफ्फेलस्क्रिप्ट™ 6d5ea0634c
fix: Use the same entrypoint for custom docker images as for the other images (no-changelog) (#4849)
* ci: Use the same entrypoint for custom docker images as for the other images

* update docker-compose examples to use the correct volume paths to work with custom images
2022-12-07 15:54:26 +01:00
Iván Ovejero 59771c80ea
feat(editor): Overhaul expression editor modal (#4631)
* feat(editor): Integrate CodeMirror into expression editor modal (#4563)

*  Initial setup

* 👕 Fix lint

*  Extract segments

*  Implement var insertion

* 👕 Ignore `.d.cts`

*  Refactor to simplify

*  Add brace handler

*  Fully replace input and output

* feat(editor): Adjust resolved expression to match parameter input hint (#4600)

*  Initial adjustments

* 🐛 Prevent empty decorations

*  Adjust resolved expression to match param input hint

* ✏️ Improve comment

* 👕 Remove lint rule

* ✏️ Fix typo

* ✏️ Fix closing brace

*  Clean up `displayableSegments()`

* feat(editor): Apply styling to expression editor modal (#4607)

🎨 Apply styling

* feat(core): Improve errors in evaluated expression (#4619)

* 🐛 Fix env var access for FE

* 🔥 Remove excess closing bracket

* 🚧 Set up TODO

* ✏️ Update copy

*  Deny env vars access to FE

* 👕 Remove unneeded lint exception

* 📘 Remove unneeded typing

* feat(editor): Dynamically delay evaluation resolution (#4625)

* ✏️ Update copy

*  Dynamically delay evaluation resolution

* 🔥 Remove unneeded computed property

* refactor(editor): Pre-review cleanup (#4627)

* 🔥 Remove `ExpressionInput` component

* 🔥 Remove Quill

* ✏️ Rename i18n key

* 🎨 Place border on correct element

* 🐛 Handle syntax errors

*  Add sample autocompletions

* 🐛 Fix auto-extending behavior

* feat(editor): Improve escaping behavior (#4641)

* 🎨 Hide hint on small screen

*  Improve escaping

* refactor(editor): Apply styling feedback to expression editor modal (#4660)

* 🎨 Restyle hint

* 🎨 Restyle param input hint

* 🔥 Remove `e.g.`

*  Tweak delay

* 🎨 Restyle output

* 🎨 Tweak theme

* ✏️ Tweak copy

* refactor(editor): Apply feedback 2022.11.22 (#4697)

* 🎨 Change background color

*  Focus on mount

*  Account for preexisting braces on injection

* 🐛 Fix `$workflow` showing as not saved

* ✏️ Tweak copy

* 🐛 Fix readonly focus

*  Focus input on paste

*  Sync inputs with modal

* ✏️ Tweak copy

* refactor(editor): Apply feedback 2022.11.23 (#4705)

*  Allow newlines

*  Set cursor at end of content

*  Do not defocus on paste on Chrome

*  Fix import

* 🧪 Add e2e tests

*  Cleanup

*  Add telemetry

* 🔥 Remove log

*  Expose error properties

* 🧪 Rename test

*  Move `getCurrentWorkflow()` call

*  Revert highlighting removal per feedback

*  Add i18n keys

* 🚚 Move computed property to local state

* 🎨 Use CSS vars

*  Update `pnpm-lock.yaml`

*  Apply readonly state

*  Use prop

*  Complete fix
2022-12-01 13:26:22 +01:00
Ricardo Espinoza 00bed61b39
fix: Issue building image with dependency name ending in .vue (no-changelog) (#4773)
🐛 Fix issue building image
2022-11-30 21:12:34 -05:00
Iván Ovejero 78119c9f22
refactor: Consolidate .prettierignore patterns (no-changelog) (#4692)
*  Consolidate Prettier ignore patterns

*  Let Prettier select file types to format

* 🎨 Apply formatting
2022-11-22 14:11:29 +01:00
कारतोफ्फेलस्क्रिप्ट™ 63ceea2f60
fix: Docker custom image needs the scripts folder to build (no-changelog) (#4673) 2022-11-21 17:54:44 +01:00
कारतोफ्फेलस्क्रिप्ट™ 736777385c
feat: Switch from npm to pnpm (#4429) 2022-11-09 17:32:05 +01:00
कारतोफ्फेलस्क्रिप्ट™ 1c98f97e9e
ci: Revert support for node.js 18 (#4518) (#4537)
Revert "ci: Start supporting node.js 18 (#4518)"

This reverts commit 9ee292cd17.
2022-11-07 17:23:08 +01:00
कारतोफ्फेलस्क्रिप्ट™ 9ee292cd17
ci: Start supporting node.js 18 (#4518)
* ci: start supporting node.js 18

Node.js 18 becomes the active LTS on 2022-10-25, as Node.js 16 goes into maintenance mode.
https://github.com/nodejs/Release#release-schedule

* continue using node 16 for production images

* node 16 for debian and base images as well for now
2022-11-07 15:51:57 +01:00
कारतोफ्फेलस्क्रिप्ट™ 41cb0eec6e
feat(API): Set up error tracking using Sentry (#4394)
* feat(cli): Setup error tracking using Sentry

* make error reporting available in the workflows package

* address some of the PR comments

* create a ErrorReporterProxy like LoggerProxy

* remove the `captureError` helper. use ErrorReporterProxy directly

* fix linting issues

* remove ErrorReporterProxy warnings in tests

* check for NODE_ENV === 'production' instead

* IErrorReporter -> ErrorReporter

* ErrorReporterProxy.getInstance() -> ErrorReporter

* allow capturing stacks in warnings as well

* make n8n debugging consistent with `npm start`

* IReportingOptions -> ReportingOptions

* use consistent signature for `error` and `warn`

* use Logger instead of console.log
2022-11-04 17:34:47 +01:00
कारतोफ्फेलस्क्रिप्ट™ a6cd95b9f3
ci: fix nightly builds (#4322) 2022-10-12 10:08:57 +02:00
कारतोफ्फेलस्क्रिप्ट™ e63eee28e0
fix(cli): Cache generated assets in user writable directory instead (#4275) 2022-10-06 11:14:04 +02:00
कारतोफ्फेलस्क्रिप्ट™ fd22b3fbdf
fix(docker): allow node user to write to n8n/dist/public (#4245) 2022-09-30 17:24:26 +02:00
कारतोफ्फेलस्क्रिप्ट™ 0b6a9585d4
fix(cli): add git to all docker images (#4189) 2022-09-26 12:43:36 +02:00
Alex Grozav 27e2ce0470
feat: migrate editor-ui to Vite.js and various DX improvements (N8N-2277) (#4061)
* feat: Added vite.js dependencies.

* chore: Removed tests folder to follow same structure as design-system

* chore: Removed unused testing config.

* chore: Created vite.js index.html

* refactor: Updated scss structure and imports.

* refactor: Updated workflow building.

* fix: Cleared up all workflow dependency cycles. Added proper package.json imports config.

* feat: Got a working build using Vite. Need to fix issues next.

* fix: Progress! Getting process.env error.

* fix: Changed process.env to import.meta.env.

* fix: Fixed circular imports that used require(). Fixed monaco editor.

* chore: Removed commented code.

* chore: Cleaned up package.json

* feat: Made necessary changes to replace base path in css files.

* feat: Serve CSS files for `editor-ui` Vite migration (#4069)

 Serve CSS files for Vite migration

* chore: Fixed package-lock.json.

* fix: Fixed build after centralized tsconfig update.

* fix: Removed lodash-es replacement.

* fix: Commented out vitest test command.

* style: Fixed linting issues.

* fix: Added lodash-es hotfix back.

* chore: Updated package-lock.json

* refactor: Renamed all n8n scss variables to no longer be defined as private.

* feat(editor): add application-wide el-button replacement.

* fix(editor): Fix import in page alert after merge.

* chore(editor): update package-lock.json.

* fix: Case sensitive lodash-es replacement for vue-agile.

* fix: add alias for lodash-es camelcase import.

* fix: add patch-package support for fixing quill

* feat: add patch-package on postinstall

* fix: update quill patch path.

* refactor: rename quill patch

* fix: update quill version.

* fix: update quill patch

* fix: fix linting rules after installing eslint in design-system

* fix: update date picker button to have primary color

* test: update callout component snapshots

* fix(editor): fix linting issues in editor after enabling eslint

* fix(cli): add /assets/* to auth ignore endpoints in server

* chore: update package-lock.json

* chore: update package-lock.json

* fix(editor): fix linting issues

* feat: add vite-legacy support

* fix: update workflow package interface imports to type imports.

* chore: update package-lock.json

* fix(editor) fix importing translations other than english

* fix(editor): remove test command until vitest is added

* fix: increase memory allocation for vite build

* fix: add patch-package patches to n8n-custom docker build

* fix: add performance and load time improvements

* fix: add proper typing to setNodeType

* chore: update package-lock.json

* style: use generic type for reduce in setNodeType

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2022-09-23 17:14:28 +03:00
कारतोफ्फेलस्क्रिप्ट™ 651d788ddb
fix: revert CI checks to ensure that the package-lock.json file is up to date (#4135)
* Revert "ci: fail the build if `package-lock.json` is out of sync (#4101)"

This reverts commit b2807cecb3.

* Update package-lock.json
2022-09-19 11:07:28 +02:00
कारतोफ्फेलस्क्रिप्ट™ 9267e8fb12
fix(typescript): Use consistent typescript configs - N8N-4552 (#4049)
fix(typescript): Use consistent typescript configs

make all packages inherit tsconfig from the root tsconfig
skips building tests. reformat all tsconfigs with prettier.
2022-09-09 18:00:18 +02:00
Aaron Delasy 49c85a1df8
fix: correct all the spelling typos (#3960)
* Improve code health
Fix TS typos in local variables
Fix CSS typos in local styles
Fix typos in comments
Fix typos in strings

* Fix order of n8n setup sections in CONTRIBUTING.md
2022-09-02 16:13:17 +02:00
कारतोफ्फेलस्क्रिप्ट™ aec2489aef
fix(docker): n8n docker image needs su-exec (#3993) 2022-09-01 09:48:26 +02:00
कारतोफ्फेलस्क्रिप्ट™ 34a99fd089
fix(docker): Revert docker USER and WORKDIR changes (#3992)
Switching from `root` to another user needs a bit more testing, as we need to figure out how to auto-migrate all existing instances of n8n when people upgrade.
2022-09-01 09:40:35 +02:00
कारतोफ्फेलस्क्रिप्ट™ 346ebee584
fix(docker): Make the docker images backward compatible (#3987) 2022-08-31 19:34:30 +02:00
कारतोफ्फेलस्क्रिप्ट™ 398adb23e8
feat(docker): reduce the size of alpine docker images (#3973)
* reduce redundant code between the two alpine Dockerfiles
* reduce the docker image build times
* reduce the `n8n` image size from 1.17GB to 462MB
* reduce the `n8n-custom` image size from 671MB to 460MB
* reduce the size of npm tree by making all typing packages devDependencies

Partially resolves this ticket: N8N-3252
2022-08-31 15:25:52 +02:00
Iván Ovejero 11617616cd
refactor: Format root-level files (#3858)
*  Create `format.mjs` script

* 👕 Add lint exception

*  Add root formatting to `format` command

* 🎨 Fix glob in `.prettierignore`

* 🚚 Improve naming

* 🎨 Format root-level files

*  Simplify check

*  Add period to extension

*  Locate config

*  Add `ignore` arg

* 🚚 Move `config` and `ignore` after check
2022-08-19 15:34:02 +02:00
कारतोफ्फेलस्क्रिप्ट™ e53d5d9cc1
[N8N-4265] Improve docker compose setup with postgres (#3369)
* persist postgres data using docker volumes

* persist n8n data using docker volumes instead of writing to the host filesystem

* wait for postgres to be actually ready before starting the server

* run web server and workers as separate containers

* create a new `withPostgresAndWorker` example
2022-08-19 12:44:34 +02:00
कारतोफ्फेलस्क्रिप्ट™ c1451d2688
build: Prevent non-hoisted dependencies from breaking docker images (#3852) 2022-08-08 18:37:08 +02:00
Alex Grozav a9fa830bd7
build: Migrate from lerna to turborepo (#3796)
* feat: Added turborepo setup.

* feat: Updated nodes and credentials loading.

* feat: Removed remaining lerna references.

* fix: Updated npm run bootstrap command.

* feat: Added CI step for installing latest npm.

* chore: Removed lerna config.

* feat: Added gulp to global ci packages.

* fix: Set node as moduleResolution target in workflow. Fixed CI.

* fix: Added turborepo installation to the n8n-custom docker image.

* fix: Updated copied docker files for n8n-custom.

* fix: Added git as dependency in n8n-custom dockerfile.

* fix: Changed npm install command in n8n-custom.

* 📦 Update `package-lock.json`

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2022-08-06 22:55:51 +02:00