PromucFlow_constructor/deploy
Shrikant Sharat Kandula 164d2e6b65
ci: Use esbuild to build RTS (#27310)
This fixes RTS build to use `esbuild`.

1. This means the whole `node_modules` won't need to be copied over to
the Docker image. There's unused insignifant _test_ files in there, that
don't add any value, but are causing irrelevant CVEs to be reported on
our Docker image. See example at
https://github.com/appsmithorg/appsmith-ee/pull/2349.

2. Much faster. Not that RTS build is our slow point, but still. Perhaps
we can move client to `esbuild` too. 🙂

## Why are we doing this?

The current method of loading RTS into the Docker image means that _all_
contents of _all_ dependencies are copied over. The whole
`node_modules`. But several of these packages include _test_ files too,
that aren't needed at runtime at all. One of such test files is creating
a false alert for a CVE on our Docker image. Has absolutely no relevance
and impact, but it's there.

To fix that, I [had to `rm -rf /opt/appsmith/rts/node_modules/*/test` in
the Docker
image](https://github.com/appsmithorg/appsmith-ee/pull/2349/files). This
felt very hacky, and very dirty. It felt like we're introducing more
debt and more duct tape around the current build process.

So, `esbuild`.

## Where is `esbuild` coming from?

We're using `esbuild` v0.18.20 only, while the latest is v0.19.3. We
need to update `design-system`'s storybook dependency, I think, to get a
more recent version of `esbuild`. I'm yet to figure this out and can use
some help. 🙂
2023-10-03 07:00:40 +05:30
..
ansible fix: issue with ansible deployment (#19974) 2023-01-25 10:45:04 +05:30
aws Encoding the mongo credentials in install.sh script (#310) 2020-08-17 11:10:01 +05:30
aws_ami fix: Change watchtower to latest (#20001) 2023-02-02 06:27:35 +05:30
digital_ocean Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30
docker ci: Use esbuild to build RTS (#27310) 2023-10-03 07:00:40 +05:30
helm chore: disable allowprivilegeescalation in the securitycontext of helm chart (#27041) 2023-09-12 11:18:03 +05:30
heroku chore: Move Maps API Key to database (#20771) 2023-07-24 13:33:53 +05:30
packer Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30