File size: 528 Bytes
d6585f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

HOME=/root

# check pth
echo "check path for JAVA_HOME"
echo $JAVA_HOME

# additional environment variable
export PYSERINI_CACHE=/root/indexes

# APP_PATH: assumed to be volume mounted with host
APP_PATH=$HOME/np_app_text_retrieval_inference

# EXTERNAL_PATH: assumed having system specific files, not volume mounted with host
EXTERNAL_PATH=/workspace/external

# copy jar file
cp $EXTERNAL_PATH/anserini/target/anserini-*-fatjar.jar $APP_PATH/pyserini/resources/jars

# launch /bin/bash
cd $APP_PATH
exec /bin/bash