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
199
Issues
199
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
f85213fd
Verified
Commit
f85213fd
authored
Aug 01, 2025
by
Przemyslaw Kaminski
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI] add sudo to dockerfile, change dir owner in CI
parent
f14c6246
Pipeline
#7796
failed with stages
in 43 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
.gitlab-ci.yml
.gitlab-ci.yml
+14
-12
Dockerfile
devops/docker/Dockerfile
+1
-0
No files found.
.gitlab-ci.yml
View file @
f85213fd
...
@@ -25,10 +25,12 @@ cabal:
...
@@ -25,10 +25,12 @@ cabal:
-
dist-newstyle/
-
dist-newstyle/
-
.cabal/
-
.cabal/
policy
:
pull-push
policy
:
pull-push
before_script
:
-
sudo chown -R test /builds/gargantext
script
:
script
:
-
git config --global --add safe.directory $XDG_CACHE_HOME/nix/tarball-cache
-
git config --global --add safe.directory $XDG_CACHE_HOME/nix/tarball-cache
-
git config --global --add safe.directory '*'
-
git config --global --add safe.directory '*'
-
nix-shell --run "./bin/update-project-dependencies && cabal --store-dir=$STORE_DIR v2-build all --flags 'test-crypto no-phylo-debug-logs' --ghc-options='-O0 -fclear-plugins'"
-
nix-shell --run "
cabal update &&
./bin/update-project-dependencies && cabal --store-dir=$STORE_DIR v2-build all --flags 'test-crypto no-phylo-debug-logs' --ghc-options='-O0 -fclear-plugins'"
allow_failure
:
false
allow_failure
:
false
stack
:
stack
:
...
@@ -62,17 +64,17 @@ test:
...
@@ -62,17 +64,17 @@ test:
stage
:
test
stage
:
test
# The tests needs to run as the 'test' user, because they leverage the
# The tests needs to run as the 'test' user, because they leverage the
# initdb utility from postgres that cannot be run by 'root'.
# initdb utility from postgres that cannot be run by 'root'.
before_script
:
#
before_script:
-
echo "Creating test user..."
#
- echo "Creating test user..."
-
mkdir -p /home/test
#
- mkdir -p /home/test
-
mkdir -p /root/.config
#
- mkdir -p /root/.config
-
useradd -U test
#
- useradd -U test
-
chown -R test:test dist-newstyle/
#
- chown -R test:test dist-newstyle/
-
chown -R test:test /root/
#
- chown -R test:test /root/
-
chown -R test:test $STORE_DIR
#
- chown -R test:test $STORE_DIR
-
chown -R test:test ${CABAL_DIR}
#
- chown -R test:test ${CABAL_DIR}
-
mkdir -p "$XDG_CACHE_HOME/nix"
#
- mkdir -p "$XDG_CACHE_HOME/nix"
-
chown -R test:test "$XDG_CACHE_HOME/nix"
#
- chown -R test:test "$XDG_CACHE_HOME/nix"
cache
:
cache
:
key
:
cabal.project
key
:
cabal.project
...
...
devops/docker/Dockerfile
View file @
f85213fd
...
@@ -32,6 +32,7 @@ ENV PATH=/home/test/.nix-profile/bin:$PATH
...
@@ -32,6 +32,7 @@ ENV PATH=/home/test/.nix-profile/bin:$PATH
ENV
PATH=/home/test/.local/bin:$PATH
ENV
PATH=/home/test/.local/bin:$PATH
RUN
mkdir
-m
0777 /nix
&&
chown test
/nix
&&
\
RUN
mkdir
-m
0777 /nix
&&
chown test
/nix
&&
\
mkdir
-p
"/builds/gargantext/"
&&
chmod
777
-R
"/builds/gargantext"
mkdir
-p
"/builds/gargantext/"
&&
chmod
777
-R
"/builds/gargantext"
RUN
echo
'test ALL=(ALL) NOPASSWD:ALL'
>>
/etc/sudoers
USER
test
USER
test
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
...
...
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