coursier wants a .cache writeable directory.

This commit is contained in:
Andrea Dell'Amico 2020-09-03 16:38:53 +02:00
parent 7966d3aefe
commit c2967116a9
3 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,5 @@ polynote_base_uri: '/'
polynote_listen_ip: '127.0.0.1'
polynote_listen_port: '8192'
polynote_data_basedir: '/srv/polynote'
polynote_storage_location: '{{ polynote_data_basedir }}/data'
polynote_cache_dir: '{{ polynote_data_basedir }}/tmp'
polynote_logrotate_maxfilesize: '1G'
polynote_logrotate_retention: '7'

View File

@ -29,6 +29,7 @@
with_items:
- '{{ polynote_storage_location }}'
- '{{ polynote_cache_dir }}'
- '{{ polynote_coursier_cache_dir }}'
- name: Download the polynote distribution
unarchive: remote_src=yes src={{ polynote_distribution_url }} dest={{ polynote_install_base_dir }} owner=root group=root

View File

@ -6,6 +6,10 @@ polynote_service_user: polynote
polynote_install_base_dir: /opt
polynote_install_dir: '{{ polynote_install_base_dir }}/polynote'
polynote_log_dir: '/var/log/polynote'
polynote_storage_location: '{{ polynote_data_basedir }}/data'
polynote_cache_dir: '{{ polynote_data_basedir }}/tmp'
polynote_coursier_cache_dir: '{{ polynote_data_basedir }}/.cache'
polynote_startup_env:
- 'JAVA_HOME={{ jdk_java_home }}'
- 'YARN_CONF_DIR=/opt/cloudera/parcels/CDH/lib/hadoop/etc/hadoop'