Skip to content

Commit

Permalink
fix(#151): release deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh000526 committed Dec 3, 2024
1 parent b43937a commit 856dc41
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface GistFile {
attr: GistFileAttributes;
}

@Processor('always-queue')
@Processor('docker-queue')
@Injectable()
export class DockerConsumer {
queue_num = false;
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { GistModule } from '@/gist/gist.module';
imports: [
GistModule,
BullModule.registerQueue({
name: 'always-queue'
name: 'docker-queue'
})
],
controllers: [DockerController],
Expand Down
4 changes: 2 additions & 2 deletions apps/backend/src/docker/docker.pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class DockerContainerPool implements OnApplicationBootstrap {
const containersToDelete = await this.docker.listContainers({ all: true });
await Promise.all(
containersToDelete
.filter((container) => container.Names.some((name) => name.startsWith('/always')))
.filter((container) => container.Names.some((name) => name.startsWith('/froxy-run')))
.map(async (container) => {
const removeContainer = await this.docker.getContainer(container.Id);
await removeContainer.remove({ force: true });
Expand Down Expand Up @@ -55,7 +55,7 @@ export class DockerContainerPool implements OnApplicationBootstrap {
'NODE_DISABLE_COLORS=true', // 색상 비활성화
'TERM=dumb' // dumb 터미널로 설정하여 색상 비활성화
],
name: `always${i + 1}`,
name: `froxy-run${i + 1}`,
HostConfig: {
Memory: (1024 * 1024 * 1024) / 2, // 1GB 메모리 제한
MemorySwap: (1024 * 1024 * 1024) / 2, // swap 메모리도 1GB로 설정
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DockerContainerPool } from './docker.pool';
export class DockerProducer implements OnApplicationBootstrap {
cnt = 0;
constructor(
@InjectQueue('always-queue')
@InjectQueue('docker-queue')
private readonly dockerQueue: Queue,
private dockerContainerPool: DockerContainerPool
) {}
Expand Down

0 comments on commit 856dc41

Please sign in to comment.