Skip to content
Snippets Groups Projects
Commit 5187f951 authored by iaibrys's avatar iaibrys
Browse files

Create cache volume to save getpdf results between sessions.

# Conflicts:
#	lib/enote_config.rb
parent 74cbf4b3
No related branches found
No related tags found
No related merge requests found
Pipeline #328 canceled
...@@ -138,6 +138,7 @@ services: ...@@ -138,6 +138,7 @@ services:
- <%= @data_root %>/content:/content - <%= @data_root %>/content:/content
- <%= @log_root %>/getpdf:/getpdf-server/log - <%= @log_root %>/getpdf:/getpdf-server/log
- <%= @data_root %>/sharelatex-data/:/sharelatex - <%= @data_root %>/sharelatex-data/:/sharelatex
- getpdf_cache:/cache
environment: environment:
TIMEZONE_CITY: '<%= timezone_city %>' TIMEZONE_CITY: '<%= timezone_city %>'
TZ: '<%= timezone %>' TZ: '<%= timezone %>'
...@@ -274,3 +275,5 @@ services: ...@@ -274,3 +275,5 @@ services:
<% for container in (expected_containers.reject{|x| x.eql? 'enote-proxy' }) %> <% for container in (expected_containers.reject{|x| x.eql? 'enote-proxy' }) %>
- <%= container %><% end %> - <%= container %><% end %>
volumes:
getpdf_cache:
...@@ -34,6 +34,8 @@ module DockerComposeHelpers ...@@ -34,6 +34,8 @@ module DockerComposeHelpers
to, from = volume_binding.split(':') to, from = volume_binding.split(':')
next unless to.starts_with? '/' # i.e. not a named volume
exist = yield to exist = yield to
unless exist unless exist
missing = true missing = true
......
...@@ -28,7 +28,6 @@ module EnoteConfig ...@@ -28,7 +28,6 @@ module EnoteConfig
attr_accessor :docker_machine attr_accessor :docker_machine
attr_accessor :timezone attr_accessor :timezone
default_enabled_features = { default_enabled_features = {
:redis => true, :redis => true,
:revproxy => true, :revproxy => true,
...@@ -85,7 +84,7 @@ module EnoteConfig ...@@ -85,7 +84,7 @@ module EnoteConfig
@use_wildcard_ssl_cert = true @use_wildcard_ssl_cert = true
@docker_version_tag = 'develop' @docker_version_tag = 'develop'
elsif "enote-2019" == @hostname elsif "enote-2019" == @hostname
@enote_domain_suffix = ".compute.dtu.dk" @enote_domain_suffix = "-2019.compute.dtu.dk"
@enote_domain = "enote" + @enote_domain_suffix @enote_domain = "enote" + @enote_domain_suffix
@allow_testing = false # do not allow testing in the real production system! @allow_testing = false # do not allow testing in the real production system!
@public_facing = true @public_facing = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment