Skip to content

Commit

Permalink
Fix artrifact upload paths
Browse files Browse the repository at this point in the history
* Move artifact upload directory out of source tree by setting
  MEDIA_ROOT to `/var/lib/galaxy/media/`
* Add `/var` directory to dockerignore.

Signed-off-by: Alexander Saprykin <[email protected]>
  • Loading branch information
cutwater committed Apr 12, 2019
1 parent f82b3e6 commit 94894fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ dist/
docs/docsite/_build/
galaxy.egg-info/
galaxyui/node_modules

var/
2 changes: 2 additions & 0 deletions galaxy/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@

STATIC_ROOT = os.path.join(BASE_DIR, 'build', 'static')

MEDIA_ROOT = '/var/lib/galaxy/media/'

# Database
# ---------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN yum -y install epel-release \
# Create directories structure
RUN mkdir -p /galaxy \
/usr/share/galaxy \
/var/lib/galaxy \
/var/lib/galaxy/media \
/var/tmp/galaxy/imports \
/var/tmp/galaxy/uploads \
/var/run/galaxy
Expand Down

0 comments on commit 94894fd

Please sign in to comment.