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
197
Issues
197
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
a94c239c
Commit
a94c239c
authored
Feb 17, 2025
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(docker): Update GGTX docker image to support GHC 9.6.6
parent
65b9d486
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
24 deletions
+21
-24
install-cabal2stack
bin/install-cabal2stack
+1
-1
Dockerfile
devops/docker/Dockerfile
+20
-23
No files found.
bin/install-cabal2stack
View file @
a94c239c
...
@@ -19,7 +19,7 @@ then
...
@@ -19,7 +19,7 @@ then
CURDIR
=
$PWD
CURDIR
=
$PWD
git clone https://github.com/iconnect/cabal2stack.git cabal2stack-installer
git clone https://github.com/iconnect/cabal2stack.git cabal2stack-installer
cd
cabal2stack-installer
cd
cabal2stack-installer
cabal
--store-dir
=
$STORE_DIR
v2-install
--index-state
=
"
${
INDEX_STATE
}
"
--overwrite-policy
=
always
cabal
--store-dir
=
$STORE_DIR
v2-install
--
allow-newer
--
index-state
=
"
${
INDEX_STATE
}
"
--overwrite-policy
=
always
cd
$CURDIR
cd
$CURDIR
rm
-rf
cabal2stack-installer
rm
-rf
cabal2stack-installer
fi
fi
devops/docker/Dockerfile
View file @
a94c239c
...
@@ -3,18 +3,25 @@ FROM ubuntu:noble
...
@@ -3,18 +3,25 @@ FROM ubuntu:noble
## NOTA BENE: In order for this to be built successfully, you have to run ./devops/coreNLP/build.sh first.
## NOTA BENE: In order for this to be built successfully, you have to run ./devops/coreNLP/build.sh first.
ARG
DEBIAN_FRONTEND=noninteractive
ARG
DEBIAN_FRONTEND=noninteractive
ARG
GHC=9.
4.8
ARG
GHC=9.
6.6
ARG
CORENLP=4.5.4
ARG
CORENLP=4.5.4
ARG
CORE
ARG
CORE
COPY
./shell.nix /builds/gargantext/shell.nix
COPY
./shell.nix /builds/gargantext/shell.nix
COPY
./nix/pkgs.nix /builds/gargantext/nix/pkgs.nix
COPY
./nix/pkgs.nix /builds/gargantext/nix/pkgs.nix
COPY
./nix/pinned-2
3.11.nix /builds/gargantext/nix/pinned-23.11
.nix
COPY
./nix/pinned-2
5.05.nix /builds/gargantext/nix/pinned-25.05
.nix
COPY
./devops/coreNLP/build.sh /root/devops/coreNLP/build.sh
COPY
./devops/coreNLP/build.sh /root/devops/coreNLP/build.sh
COPY
./devops/coreNLP/startServer.sh /root/devops/coreNLP/startServer.sh
COPY
./devops/coreNLP/startServer.sh /root/devops/coreNLP/startServer.sh
COPY
./bin/setup-ci-environment /builds/gargantext/bin/setup-ci-environment
COPY
./bin/setup-ci-environment /builds/gargantext/bin/setup-ci-environment
COPY
./bin/install-cabal2stack /builds/gargantext/bin/install-cabal2stack
COPY
./bin/install-cabal2stack /builds/gargantext/bin/install-cabal2stack
ENV
TZ=Europe/Rome
ENV
TZ=Europe/Rome
ENV
LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV
USER=root
ENV
SHELL /bin/bash
ENV
PATH=/root/.nix-profile/bin:$PATH
ENV
PATH=/root/.local/bin:$PATH
RUN
apt-get update
&&
\
RUN
apt-get update
&&
\
apt-get
install
--no-install-recommends
-y
\
apt-get
install
--no-install-recommends
-y
\
apt-transport-https
\
apt-transport-https
\
...
@@ -47,32 +54,22 @@ RUN apt-get update && \
...
@@ -47,32 +54,22 @@ RUN apt-get update && \
unzip
&&
\
unzip
&&
\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
&&
\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
&&
\
mkdir
-m
0755 /nix
&&
groupadd
-r
nixbld
&&
chown
root /nix
&&
\
mkdir
-m
0755 /nix
&&
groupadd
-r
nixbld
&&
chown
root /nix
&&
\
for
n
in
$(
seq
1 10
)
;
do
useradd
-c
"Nix build user
$n
"
-d
/var/empty
-g
nixbld
-G
nixbld
-M
-N
-r
-s
"
$(
command
-v
nologin
)
"
"nixbld
$n
"
;
done
for
n
in
$(
seq
1 10
)
;
do
useradd
-c
"Nix build user
$n
"
-d
/var/empty
-g
nixbld
-G
nixbld
-M
-N
-r
-s
"
$(
command
-v
nologin
)
"
"nixbld
$n
"
;
done
&&
\
gpg
--batch
--keyserver
keys.openpgp.org
--recv-keys
7D1E8AFD1D4A16D71FADA2F2CCC85C0E40C06A8C
&&
\
RUN
gpg
--batch
--keyserver
keys.openpgp.org
--recv-keys
7D1E8AFD1D4A16D71FADA2F2CCC85C0E40C06A8C
&&
\
gpg
--batch
--keyserver
keyserver.ubuntu.com
--recv-keys
FE5AB6C91FEA597C3B31180B73EDE9E8CFBAEF01
gpg
--batch
--keyserver
keyserver.ubuntu.com
--recv-keys
FE5AB6C91FEA597C3B31180B73EDE9E8CFBAEF01
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
RUN
cd
/root/devops/coreNLP
;
./build.sh
RUN
set
-o
pipefail
&&
\
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
bash <
(
curl
-L
https://releases.nixos.org/nix/nix-2.15.0/install
)
--no-daemon
&&
\
locale-gen en_US.UTF-8
&&
chown
root
-R
/nix
ENV
LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
RUN
cd
/root/devops/coreNLP
;
./build.sh
&&
\
ENV
USER=root
set
-o
pipefail
&&
\
ENV
SHELL /bin/bash
bash <
(
curl
-L
https://releases.nixos.org/nix/nix-2.26.2/install
)
--no-daemon
&&
\
RUN
.
"
$HOME
/.nix-profile/etc/profile.d/nix.sh"
&&
\
locale-gen en_US.UTF-8
&&
chown
root
-R
/nix
&&
\
.
"
$HOME
/.nix-profile/etc/profile.d/nix.sh"
&&
\
mkdir
-p
"/builds/gargantext/"
&&
chmod
777
-R
"/builds/gargantext"
&&
\
mkdir
-p
"/builds/gargantext/"
&&
chmod
777
-R
"/builds/gargantext"
&&
\
echo
"source
$HOME
/.nix-profile/etc/profile.d/nix.sh"
>>
"
$HOME
/.bashrc"
&&
\
echo
"source
$HOME
/.nix-profile/etc/profile.d/nix.sh"
>>
"
$HOME
/.bashrc"
&&
\
echo
`
which nix-env
`
echo
`
which nix-env
`
&&
\
.
$HOME
/.bashrc
&&
nix-env
--version
&&
\
ENV
PATH=/root/.nix-profile/bin:$PATH
cd
/builds/gargantext
&&
nix-shell
--run
"./bin/install-cabal2stack"
RUN
.
$HOME
/.bashrc
&&
nix-env
--version
ENV
PATH=/root/.local/bin:$PATH
RUN
cd
/builds/gargantext
&&
nix-shell
--run
"./bin/install-cabal2stack"
WORKDIR
"/builds/gargantext/"
WORKDIR
"/builds/gargantext/"
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