From 097583c532b3ea59f4b5057fe4517d32578a54b4 Mon Sep 17 00:00:00 2001 From: Timothee Legros Date: Tue, 8 Oct 2024 14:09:05 +0300 Subject: [PATCH] delete old discord bot docker files --- .../deploy/dockerfiles/Dockerfile.consumer | 2 - .../deploy/dockerfiles/Dockerfile.listener | 2 - .../deploy/dockerfiles/Dockerfile.release | 3 -- pnpm-lock.yaml | 54 +++---------------- 4 files changed, 8 insertions(+), 53 deletions(-) delete mode 100644 packages/discord-bot/deploy/dockerfiles/Dockerfile.consumer delete mode 100644 packages/discord-bot/deploy/dockerfiles/Dockerfile.listener delete mode 100644 packages/discord-bot/deploy/dockerfiles/Dockerfile.release diff --git a/packages/discord-bot/deploy/dockerfiles/Dockerfile.consumer b/packages/discord-bot/deploy/dockerfiles/Dockerfile.consumer deleted file mode 100644 index 4b8f942fc58..00000000000 --- a/packages/discord-bot/deploy/dockerfiles/Dockerfile.consumer +++ /dev/null @@ -1,2 +0,0 @@ -FROM discord-bot -CMD NODE_ENV=production ./datadog-entrypoint.sh node --import=extensionless/register --max_old_space_size=$(./scripts/get-max-old-space-size.sh) ./build/src/discord-consumer/discordConsumer.js \ No newline at end of file diff --git a/packages/discord-bot/deploy/dockerfiles/Dockerfile.listener b/packages/discord-bot/deploy/dockerfiles/Dockerfile.listener deleted file mode 100644 index e10f147eb96..00000000000 --- a/packages/discord-bot/deploy/dockerfiles/Dockerfile.listener +++ /dev/null @@ -1,2 +0,0 @@ -FROM discord-bot -CMD NODE_ENV=production ./datadog-entrypoint.sh node --import=extensionless/register --max_old_space_size=$(./scripts/get-max-old-space-size.sh) ./build/src/discord-listener/discordListener.js \ No newline at end of file diff --git a/packages/discord-bot/deploy/dockerfiles/Dockerfile.release b/packages/discord-bot/deploy/dockerfiles/Dockerfile.release deleted file mode 100644 index 424b333db79..00000000000 --- a/packages/discord-bot/deploy/dockerfiles/Dockerfile.release +++ /dev/null @@ -1,3 +0,0 @@ -FROM discord-bot -RUN apt-get update && apt-get install -y curl -CMD node --import=extensionless/register ./build/scripts/releasePhaseEnvCheck.js \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bcf72dca0e4..d91fea0be85 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1151,6 +1151,9 @@ importers: crypto-browserify: specifier: ^3.12.0 version: 3.12.0 + discord.js: + specifier: ^14.16.2 + version: 14.16.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) dompurify: specifier: ^2.2.6 version: 2.5.2 @@ -1477,48 +1480,6 @@ importers: specifier: ^17.0.2 version: 17.0.2 - packages/discord-bot: - dependencies: - '@hicommonwealth/adapters': - specifier: workspace:* - version: link:../../libs/adapters - '@hicommonwealth/core': - specifier: workspace:* - version: link:../../libs/core - '@hicommonwealth/model': - specifier: workspace:* - version: link:../../libs/model - '@hicommonwealth/shared': - specifier: workspace:* - version: link:../../libs/shared - '@polkadot/util-crypto': - specifier: 12.6.2 - version: 12.6.2(@polkadot/util@12.6.2) - axios: - specifier: ^1.3.4 - version: 1.6.8 - discord.js: - specifier: ^14.16.2 - version: 14.16.2(bufferutil@4.0.8)(utf-8-validate@6.0.3) - extensionless: - specifier: ^1.9.9 - version: 1.9.9 - moment: - specifier: ^2.23.0 - version: 2.30.1 - pg: - specifier: ^8.11.3 - version: 8.11.5 - sequelize: - specifier: ^6.32.1 - version: 6.37.3(pg@8.11.5) - tsx: - specifier: ^4.7.2 - version: 4.9.3 - zod: - specifier: ^3.22.4 - version: 3.23.6 - packages/load-testing: dependencies: moment: @@ -18053,7 +18014,7 @@ snapshots: '@discordjs/util@1.1.1': {} - '@discordjs/ws@1.1.1(bufferutil@4.0.8)(utf-8-validate@6.0.3)': + '@discordjs/ws@1.1.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@discordjs/collection': 2.1.1 '@discordjs/rest': 2.4.0 @@ -18063,7 +18024,7 @@ snapshots: '@vladfrangu/async_event_emitter': 2.4.6 discord-api-types: 0.37.83 tslib: 2.7.0 - ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -26652,14 +26613,14 @@ snapshots: discord-api-types@0.37.97: {} - discord.js@14.16.2(bufferutil@4.0.8)(utf-8-validate@6.0.3): + discord.js@14.16.2(bufferutil@4.0.8)(utf-8-validate@5.0.10): dependencies: '@discordjs/builders': 1.9.0 '@discordjs/collection': 1.5.3 '@discordjs/formatters': 0.5.0 '@discordjs/rest': 2.4.0 '@discordjs/util': 1.1.1 - '@discordjs/ws': 1.1.1(bufferutil@4.0.8)(utf-8-validate@6.0.3) + '@discordjs/ws': 1.1.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@sapphire/snowflake': 3.5.3 discord-api-types: 0.37.97 fast-deep-equal: 3.1.3 @@ -35312,6 +35273,7 @@ snapshots: optionalDependencies: bufferutil: 4.0.8 utf-8-validate: 6.0.3 + optional: true ws@8.5.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): optionalDependencies: