Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
194
Issues
194
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
120e205c
Verified
Commit
120e205c
authored
Jul 09, 2025
by
Przemyslaw Kaminski
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[corenlp] some fixes to Dockerfile
parent
3a2b2079
Pipeline
#7733
failed with stages
in 43 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Dockerfile
devops/docker/Dockerfile
+3
-1
Main.hs
test/drivers/hspec/Main.hs
+5
-4
No files found.
devops/docker/Dockerfile
View file @
120e205c
...
...
@@ -36,10 +36,12 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN
set
-o
pipefail
&&
\
locale-gen en_US.UTF-8
&&
\
bash <
(
curl
-L
https://releases.nixos.org/nix/nix-2.2
6.3
/install
)
--no-daemon
&&
\
bash <
(
curl
-L
https://releases.nixos.org/nix/nix-2.2
9.1
/install
)
--no-daemon
&&
\
chown
root
-R
/nix
&&
\
.
"
$HOME
/.nix-profile/etc/profile.d/nix.sh"
&&
\
mkdir
-vp
"
$HOME
/.config/nix"
&&
echo
"experimental-features = nix-command flakes"
>>
$HOME
/.config/nix/nix.conf
&&
\
# prefetch corenlp
nix build 'git+https://gitlab.iscpif.fr/gargantext/corenlp-nix.git' && \
mkdir -p "/builds/gargantext/" && chmod 777 -R "/builds/gargantext" && \
echo "source $HOME/.nix-profile/etc/profile.d/nix.sh" >> "$HOME/.bashrc" && \
echo `which nix-env` && \
...
...
test/drivers/hspec/Main.hs
View file @
120e205c
...
...
@@ -34,10 +34,11 @@ startCoreNLPServer = do
,
create_group
=
True
,
std_out
=
UseHandle
devNull
,
std_err
=
UseHandle
devNull
})
`
catch
`
\
e
->
case
e
of
_
|
True
<-
"does not exist"
`
isInfixOf
`
(
T
.
pack
.
show
@
SomeException
$
e
)
->
fail
$
"Cannot execute the 'corenlp' via nix flakes. Make sure you are in a nix environment."
|
otherwise
->
throwIO
e
})
`
catch
`
\
e
->
case
e
of
_
|
True
<-
"does not exist"
`
isInfixOf
`
(
T
.
pack
.
show
@
SomeException
$
e
)
->
fail
$
"Cannot execute the 'corenlp' via nix flakes. Make sure you are in a nix environment."
|
otherwise
->
throwIO
e
pure
hdl
killProcessTree
::
ProcessHandle
->
IO
()
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
78032d98
·
Aug 04, 2025
mentioned in commit
78032d98
mentioned in commit 78032d980205bdc10120a302e191c883282b9224
Toggle commit list
Przemyslaw Kaminski
@cgenie
mentioned in merge request
!434 (merged)
·
Aug 04, 2025
mentioned in merge request
!434 (merged)
mentioned in merge request !434
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment