Skip to content

Commit

Permalink
Merge pull request #60 from screwdriver-cd/disk
Browse files Browse the repository at this point in the history
fix: add catbox-disk
  • Loading branch information
minzcmu authored Oct 15, 2018
2 parents 89a38e1 + 377233e commit cf75458
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/custom-environment-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ commands:

strategy:
plugin: STRATEGY
disk:
# Reference for the following options: https://github.com/mirusresearch/catbox-disk
# existing dir to store the cache
cachePath: DISK_CACHE_PATH
# number of milliseconds between each cache cleanup for disk space recovery. Set to 0 to deactivate entirely.
cleanEvery: DISK_CLEAN_EVERY
memory:
# Upper limit on the number of bytes that can be stored in the cache
maxByteSize: MEMORY_MAX_BYTES
Expand Down
6 changes: 6 additions & 0 deletions config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ commands:

strategy:
plugin: memory
disk:
# Reference for the following options: https://github.com/mirusresearch/catbox-disk
# existing dir to store the cache
cachePath: /tmp/screwdriver
# number of milliseconds between each cache cleanup for disk space recovery, Set to 0 to deactivate entirely.
cleanEvery: 0
memory:
# Upper limit on the number of bytes that can be stored in the cache
maxByteSize: 1073741824 # 1GB
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"aws-sdk": "^2.323.0",
"boom": "^7.2.0",
"catbox": "^10.0.2",
"catbox-disk": "^3.0.0",
"catbox-memory": "^3.1.2",
"catbox-s3": "^4.0.0",
"config": "^1.30.0",
Expand Down

0 comments on commit cf75458

Please sign in to comment.