Skip to content

Commit

Permalink
도커를 삭제하던 이전 코드 삭제 (#181)
Browse files Browse the repository at this point in the history
* chore: cicd network

* chore: env file path

* chore: cd chroe

* fix: image prune

* fix: /t fix

* fix(#151): container remove change
  • Loading branch information
mjh000526 authored Nov 28, 2024
1 parent 767ee5f commit c83e61b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/be-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: froxy Continuous Delivery
name: froxy BE Continuous Delivery

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/be-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Froxy Continuous Integration
name: Froxy-BE Continuous Integration

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fe-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Froxy Continuous Integration
name: Froxy-FE Continuous Integration

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fe-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Froxy Continuous Integration
name: Froxy-CI Continuous Integration

on:
push:
Expand Down
4 changes: 1 addition & 3 deletions apps/backend/src/docker/docker.consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ export class DockerConsumer {
});

stream.on('end', async () => {
await container.remove({ force: true });
let result = this.filterAnsiCode(output);
if (inputs.length !== 0) {
result = result.split('\n').slice(1).join('\n');
}

this.initWorkDir(container);
resolve(result);
});
Expand Down Expand Up @@ -182,7 +180,6 @@ export class DockerConsumer {
AttachStderr: true,
Cmd: ['rm', '-rf', '/tmp/*']
});

const stream = await exec.start();
return new Promise((resolve, reject) => {
stream.on('data', (chunk) => {
Expand All @@ -192,6 +189,7 @@ export class DockerConsumer {
stream.on('error', reject);
});
} catch (error) {
console.log(error.message);
throw new Error('container tmp init failed');
}
}
Expand Down

0 comments on commit c83e61b

Please sign in to comment.