Skip to content

Commit

Permalink
Merge pull request #7 from dependabot/docker-memory-options
Browse files Browse the repository at this point in the history
Set Docker memory limit
  • Loading branch information
Nish Sinha authored and GitHub committed Oct 13, 2021
2 parents c42654c + 786ce22 commit c1e582e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export class Updater {
],
Cmd: ['sh', '-c', cmd],
HostConfig: {
Memory: 8 * 1024 * 1024 * 1024, // 8GB in bytes
NetworkMode: proxy.networkName,
Binds: [
`${path.join(__dirname, '../output')}:${JOB_OUTPUT_PATH}:rw`,
Expand Down

0 comments on commit c1e582e

Please sign in to comment.