Skip to content

Commit

Permalink
Use tmp dir within repo dir
Browse files Browse the repository at this point in the history
This makes it a little bit easier to track the files created by the
local Cachito deployment.

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
  • Loading branch information
lcarva committed Aug 21, 2019
1 parent cba024a commit 16a2a68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,6 @@ settings.py

# Local application cache
/dest

# Local deployment storage
/tmp
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
ATHENS_DISK_STORAGE_ROOT: /var/lib/athens
ATHENS_STORAGE_TYPE: disk
volumes:
- /tmp/athens-storage:/var/lib/athens:z
- ./tmp/athens-storage:/var/lib/athens:z
ports:
- 3000:3000

Expand All @@ -47,7 +47,7 @@ services:
CACHITO_DEV: 'true'
volumes:
- ./:/src:z
- /tmp/cachito-shared:/tmp/cachito-shared:z
- ./tmp/cachito-shared:/tmp/cachito-shared:z
# This is needed in order to allow cleaning up a temporary tarball
# which is populated by the worker container. In an OpenShift environment
# this is not needed.
Expand All @@ -73,8 +73,8 @@ services:
CACHITO_DEV: 'true'
volumes:
- ./:/src:z
- /tmp/cachito-archives:/tmp/cachito-archives:z
- /tmp/cachito-shared:/tmp/cachito-shared:z
- ./tmp/cachito-archives:/tmp/cachito-archives:z
- ./tmp/cachito-shared:/tmp/cachito-shared:z
depends_on:
- cachito-api
- rabbitmq

0 comments on commit 16a2a68

Please sign in to comment.