Explorar el Código

Support new versions of debian/ubuntu with libjemalloc2

tags/v1.0.0
Benjamin Neff hace 4 años
padre
commit
a039410ebc
Ninguna cuenta vinculada a la dirección de correo electrónico del committer
Se han modificado 3 ficheros con 19 adiciones y 4 borrados
  1. +1
    -1
      diaspora/files/diaspora-sidekiq.service
  2. +1
    -1
      diaspora/files/diaspora-web.service
  3. +17
    -2
      diaspora/map.jinja

+ 1
- 1
diaspora/files/diaspora-sidekiq.service Ver fichero

@@ -6,7 +6,7 @@ StopWhenUnneeded=true
[Service]
User={{ diaspora.user.username }}
Environment=RAILS_ENV={{ diaspora.configuration.server.rails_environment }}
Environment=LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
Environment=LD_PRELOAD={{ diaspora.libjemalloc }}
WorkingDirectory={{ diaspora.install_path }}
ExecStart=/bin/bash -lc "bin/bundle exec sidekiq"
Restart=always

+ 1
- 1
diaspora/files/diaspora-web.service Ver fichero

@@ -6,7 +6,7 @@ StopWhenUnneeded=true
[Service]
User={{ diaspora.user.username }}
Environment=RAILS_ENV={{ diaspora.configuration.server.rails_environment }}
Environment=LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
Environment=LD_PRELOAD={{ diaspora.libjemalloc }}
WorkingDirectory={{ diaspora.install_path }}
PIDFile={{ diaspora.install_path }}/tmp/pids/web.pid
ExecStart=/bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E {{ diaspora.configuration.server.rails_environment }}"

+ 17
- 2
diaspora/map.jinja Ver fichero

@@ -17,7 +17,10 @@
'libmagickwand-dev',
'ghostscript',
'nodejs',
'libjemalloc1',
salt['grains.filter_by']({
'stretch': 'libjemalloc1',
'default': 'libjemalloc2'
}, grain='oscodename'),
],
'postgresql_package': 'libpq-dev',
'mysql_package' : 'libmariadbclient-dev',
@@ -28,6 +31,10 @@
'certificate_authorities': '/etc/ssl/certs/ca-certificates.crt'
}
},
'libjemalloc': salt['grains.filter_by']({
'stretch': '/usr/lib/x86_64-linux-gnu/libjemalloc.so.1',
'default': '/usr/lib/x86_64-linux-gnu/libjemalloc.so.2'
}, grain='oscodename'),
},
'RedHat': {
'dependencies' : [
@@ -55,6 +62,7 @@
'certificate_authorities': '/etc/pki/tls/certs/ca-bundle.crt'
}
},
'libjemalloc': '/usr/lib/x86_64-linux-gnu/libjemalloc.so.1',
},
}, merge=salt['grains.filter_by']({
'Ubuntu': {
@@ -70,9 +78,16 @@
'imagemagick',
'libmagickwand-dev',
'nodejs',
'libjemalloc1',
salt['grains.filter_by']({
'bionic': 'libjemalloc1',
'default': 'libjemalloc2'
}, grain='oscodename'),
],
'mysql_package' : 'libmysqlclient-dev',
'libjemalloc': salt['grains.filter_by']({
'bionic': '/usr/lib/x86_64-linux-gnu/libjemalloc.so.1',
'default': '/usr/lib/x86_64-linux-gnu/libjemalloc.so.2'
}, grain='oscodename'),
},
}, grain='os', merge=salt['pillar.get']('diaspora:lookup'))) %}


Cargando…
Cancelar
Guardar