Skip to content

Commit ef33c51

Browse files
committed
chore: update Dockerfile and package versions
- Updated package version to 2.1.8 in package.json and package-lock.json. - Removed node-segfault-handler from dependencies and refactored related code in ProcessorsRootModule and SchedulerRootModule.
1 parent c9f4dcf commit ef33c51

File tree

5 files changed

+20
-56
lines changed

5 files changed

+20
-56
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN if [ "$BRANCH" = "dev" ]; then \
2727
FROM node:22.18.0-alpine AS backend-build
2828
WORKDIR /opt/app
2929

30-
RUN apk add python3 python3-dev build-base pkgconfig libunwind-dev
30+
# RUN apk add python3 python3-dev build-base pkgconfig libunwind-dev
3131

3232
ENV PRISMA_CLI_BINARY_TARGETS=linux-musl-openssl-3.0.x,linux-musl-arm64-openssl-3.0.x
3333

@@ -56,9 +56,9 @@ ARG BRANCH=main
5656
# Install jemalloc
5757
# RUN apk add --no-cache jemalloc curl
5858
# ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2
59-
59+
# libunwind
6060
# Install mimalloc
61-
RUN apk add --no-cache mimalloc libunwind
61+
RUN apk add --no-cache mimalloc
6262
ENV LD_PRELOAD=/usr/lib/libmimalloc.so
6363

6464
ENV REMNAWAVE_BRANCH=${BRANCH}

package-lock.json

Lines changed: 2 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@remnawave/backend",
3-
"version": "2.1.7",
3+
"version": "2.1.8",
44
"description": "Remnawave Panel Backend",
55
"private": false,
66
"type": "commonjs",
@@ -107,7 +107,6 @@
107107
"nestjs-cls": "^6.0.1",
108108
"nestjs-zod": "4.3.1",
109109
"node-object-hash": "^3.1.1",
110-
"node-segfault-handler": "^1.4.2",
111110
"p-map": "^7.0.3",
112111
"parse-prometheus-text-format": "^1.1.1",
113112
"passport": "0.7.0",

src/bin/processors/processors.root.module.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import segfaultHandler from 'node-segfault-handler';
21
import { ClsModule } from 'nestjs-cls';
32

43
import { QueueModule } from 'src/queue/queue.module';
54

65
import { TransactionalAdapterPrisma } from '@nestjs-cls/transactional-adapter-prisma';
7-
import { Logger, OnApplicationShutdown, Module, OnModuleInit } from '@nestjs/common';
6+
import { Logger, OnApplicationShutdown, Module } from '@nestjs/common';
87
import { ClsPluginTransactional } from '@nestjs-cls/transactional';
98
import { EventEmitterModule } from '@nestjs/event-emitter';
109
import { ConfigModule } from '@nestjs/config';
@@ -55,16 +54,16 @@ import { RemnawaveModules } from '@modules/remnawave-backend.modules';
5554
],
5655
controllers: [],
5756
})
58-
export class ProcessorsRootModule implements OnApplicationShutdown, OnModuleInit {
57+
export class ProcessorsRootModule implements OnApplicationShutdown {
5958
private readonly logger = new Logger(ProcessorsRootModule.name);
6059

61-
async onModuleInit(): Promise<void> {
62-
segfaultHandler.registerHandler();
60+
// async onModuleInit(): Promise<void> {
61+
// segfaultHandler.registerHandler();
6362

64-
this.logger.log('Segfault handler');
63+
// this.logger.log('Segfault handler');
6564

66-
// segfaultHandler.segfault();
67-
}
65+
// // segfaultHandler.segfault();
66+
// }
6867

6968
async onApplicationShutdown(signal?: string): Promise<void> {
7069
this.logger.log(`${signal} signal received, shutting down...`);

src/bin/scheduler/scheduler.root.module.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import segfaultHandler from 'node-segfault-handler';
21
import { ClsModule } from 'nestjs-cls';
32

43
import { QueueModule } from 'src/queue/queue.module';
54

65
import { TransactionalAdapterPrisma } from '@nestjs-cls/transactional-adapter-prisma';
7-
import { Logger, Module, OnApplicationShutdown, OnModuleInit } from '@nestjs/common';
6+
import { Logger, Module, OnApplicationShutdown } from '@nestjs/common';
87
import { ClsPluginTransactional } from '@nestjs-cls/transactional';
98
import { EventEmitterModule } from '@nestjs/event-emitter';
109
import { ScheduleModule } from '@nestjs/schedule';
@@ -62,16 +61,16 @@ import { SchedulerModule } from '@scheduler/scheduler.module';
6261
HealthModule,
6362
],
6463
})
65-
export class SchedulerRootModule implements OnApplicationShutdown, OnModuleInit {
64+
export class SchedulerRootModule implements OnApplicationShutdown {
6665
private readonly logger = new Logger(SchedulerRootModule.name);
6766

68-
async onModuleInit(): Promise<void> {
69-
segfaultHandler.registerHandler();
67+
// async onModuleInit(): Promise<void> {
68+
// segfaultHandler.registerHandler();
7069

71-
this.logger.log('Segfault handler');
70+
// this.logger.log('Segfault handler');
7271

73-
// segfaultHandler.segfault();
74-
}
72+
// // segfaultHandler.segfault();
73+
// }
7574

7675
async onApplicationShutdown(signal?: string): Promise<void> {
7776
this.logger.log(`${signal} signal received, shutting down...`);

0 commit comments

Comments
 (0)