[nix] remove devops/corenlp dir, update README, add 'nil' to nix pkgs

parent e1be02d6
Pipeline #7415 passed with stages
in 44 minutes and 10 seconds
......@@ -103,6 +103,17 @@ Then initialize the database using the dedicated command: from inside the
And provide a name and a password for the master user as requested.
### Launching CoreNLP
CoreNLP can be started with nix:
```shell
nix-shell --run startCoreNLPServer.sh
```
By default, this starts on port `9000`. If you want a different port, then do:
```shell
nix-shell --run 'startCoreNLPServer.sh -p 9001'
```
### Running Gargantext
From inside the `haskell-gargantext/` directory, run
......
FROM openjdk
#ADD home/debian/CoreNLP /CoreNLP
ADD stanford-corenlp-current /CoreNLP
WORKDIR /CoreNLP
CMD ./startServer.sh
#!/bin/bash
# releases are here:
# https://stanfordnlp.github.io/CoreNLP/history.html
VERSION=4.5.8
FILE="stanford-corenlp-${VERSION}.zip"
DIR_V="stanford-corenlp-${VERSION}"
DIR="stanford-corenlp-current"
URL="http://nlp.stanford.edu/software/${FILE}"
# https://www.digitalocean.com/community/tutorials/workflow-downloading-files-curl
[ ! -f ${FILE} ] && echo 'Fetching file' && curl -L -o ${FILE} ${URL}
[ ! -d ${DIR_V} ] && echo 'Unzipping file' && unzip ./${FILE}
[ ! -L ${DIR} ] && echo "Symlinking ${DIR_V} -> ${DIR}" && ln -s ${DIR_V} ${DIR}
[ ! -f ${DIR}/startServer.sh ] && echo "Copying startServer.sh" && cp ./startServer.sh ${DIR}/
echo "You can now build with: docker build -t cgenie/corenlp-garg:${VERSION}" --pull .
#!/bin/sh
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000
......@@ -61,11 +61,11 @@ services:
# volumes:
# - pgadmin:/var/lib/pgadmin
corenlp:
#image: 'cgenie/corenlp-garg:latest'
image: 'cgenie/corenlp-garg:4.5.4'
ports:
- 9000:9000
# corenlp:
# #image: 'cgenie/corenlp-garg:latest'
# image: 'cgenie/corenlp-garg:4.5.4'
# ports:
# - 9000:9000
# johnsnownlp:
# image: 'johnsnowlabs/nlp-server:latest'
......
#!/bin/bash
if [ ! -d coreNLP ]; then
mkdir -v coreNLP
fi
pushd coreNLP
wget https://dl.gargantext.org/coreNLP.tar.bz2
tar xvjf coreNLP.tar.bz2
pushd home/debian/CoreNLP
./startServer.sh
......@@ -100,39 +100,40 @@ rec {
pkgs.haskellPackages.pretty-show
];
nonhsBuildInputs = with pkgs; [
#haskell-language-server
blas
bzip2
corenlp
curl
czmq
docker-compose
expat
gcc13
gfortran
git
gmp
graphviz
gsl
#haskell-language-server
hlint
icu
icu
igraph_0_10_4
igraph_0_10_4
jre
lapack
libffi
lapack
xz
libffi
libpqxx
libsodium
nanomsg
nil # nix language server
pcre
pkg-config
postgresql
xz
zlib
blas
gfortran
expat
icu
graphviz
gcc13
igraph_0_10_4
libpqxx
libsodium
nanomsg
xz
zeromq
curl
zlib
] ++ ( lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Accelerate
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment