some updates for solr

This commit is contained in:
Greg DiCristofaro 2023-07-17 10:47:44 -04:00
parent 0501133f7d
commit 36b6c20ef3

View File

@ -18,15 +18,14 @@ plugs:
read: [/dev] read: [/dev]
layout:
# java appears to find the real home and write some stuff there
$SNAP_REAL_HOME/.icesoft:
bind: $SNAP_DATA/.icesoft
$SNAP_REAL_HOME/.java:
bind: $SNAP_DATA/.java
$SNAP_REAL_HOME/.openjfx:
bind: $SNAP_DATA/.openjfx
# does not appear necessary as writing to home directory gets written to $SNAP_USER_DATA: https://snapcraft.io/docs/environment-variables # does not appear necessary as writing to home directory gets written to $SNAP_USER_DATA: https://snapcraft.io/docs/environment-variables
#layout:
# $SNAP_REAL_HOME/.icesoft:
# bind: $SNAP_DATA/.icesoft
# $SNAP_REAL_HOME/.java:
# bind: $SNAP_DATA/.java
# $SNAP_REAL_HOME/.openjfx:
# bind: $SNAP_DATA/.openjfx
# /$SNAP_USER_DATA/tmp: # /$SNAP_USER_DATA/tmp:
# bind: $SNAP_DATA/tmp # bind: $SNAP_DATA/tmp
# /$SNAP_USER_DATA/.autopsy: # /$SNAP_USER_DATA/.autopsy:
@ -39,6 +38,7 @@ apps:
autopsy: autopsy:
environment: environment:
jdkhome: $SNAP/usr/lib/jvm/java-17-openjdk-amd64 jdkhome: $SNAP/usr/lib/jvm/java-17-openjdk-amd64
SOLR_JAVA_HOME: $SNAP/usr/lib/jvm/java-17-openjdk-amd64
# provide means for java gstreamer to find gstreamer libs with jna.library.path # provide means for java gstreamer to find gstreamer libs with jna.library.path
# set user home to new home value to avoid issues writing cache files to hom # set user home to new home value to avoid issues writing cache files to hom
jreflags: $jreflags '-Duser.home=$HOME' '-Djava.io.tmpdir=$HOME/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib' jreflags: $jreflags '-Duser.home=$HOME' '-Djava.io.tmpdir=$HOME/tmp' '-Djna.library.path=$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/local/lib'
@ -51,6 +51,7 @@ apps:
GST_PLUGIN_SCANNER: $SNAP/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner GST_PLUGIN_SCANNER: $SNAP/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
SOLR_LOGS_DIR: $HOME/.autopsy/dev/solr/logs SOLR_LOGS_DIR: $HOME/.autopsy/dev/solr/logs
SOLR_PID_DIR: $HOME/.autopsy/dev/solr/logs SOLR_PID_DIR: $HOME/.autopsy/dev/solr/logs
SOLR_DATA_HOME: $HOME/solr
command: autopsy/bin/autopsywrapper.sh command: autopsy/bin/autopsywrapper.sh
# More info here: https://snapcraft.io/docs/gnome-extension # More info here: https://snapcraft.io/docs/gnome-extension
extensions: [ gnome ] extensions: [ gnome ]
@ -74,14 +75,15 @@ apps:
- kernel-crypto-api - kernel-crypto-api
- log-observe - log-observe
# may be necessary for solr # may be necessary for solr
- microstack-support
- modem-manager - modem-manager
- mount-control - mount-control
- mount-observe - mount-observe
- network - network
# may be necessary for solr
- network-bind - network-bind
- network-control - network-control
- network-manager - network-manager
- network-manager-observe
- network-observe - network-observe
- network-setup-observe - network-setup-observe
- network-status - network-status
@ -177,6 +179,8 @@ parts:
- openjdk-17-jre - openjdk-17-jre
- openjdk-17-jdk - openjdk-17-jdk
- perl - perl
# possibly needed by solr
- lsof
plugin: nil plugin: nil
# source: https://github.com/sleuthkit/autopsy.git # source: https://github.com/sleuthkit/autopsy.git
source: https://github.com/gdicristofaro/autopsy.git source: https://github.com/gdicristofaro/autopsy.git