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
191
Issues
191
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
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:
-
dist-newstyle/
-
.cabal/
policy
:
pull-push
before_script
:
-
sudo chown -R test /builds/gargantext
script
:
-
git config --global --add safe.directory $XDG_CACHE_HOME/nix/tarball-cache
-
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
stack
:
...
...
@@ -62,17 +64,17 @@ test:
stage
:
test
# The tests needs to run as the 'test' user, because they leverage the
# initdb utility from postgres that cannot be run by 'root'.
before_script
:
-
echo "Creating test user..."
-
mkdir -p /home/test
-
mkdir -p /root/.config
-
useradd -U test
-
chown -R test:test dist-newstyle/
-
chown -R test:test /root/
-
chown -R test:test $STORE_DIR
-
chown -R test:test ${CABAL_DIR}
-
mkdir -p "$XDG_CACHE_HOME/nix"
-
chown -R test:test "$XDG_CACHE_HOME/nix"
#
before_script:
#
- echo "Creating test user..."
#
- mkdir -p /home/test
#
- mkdir -p /root/.config
#
- useradd -U test
#
- chown -R test:test dist-newstyle/
#
- chown -R test:test /root/
#
- chown -R test:test $STORE_DIR
#
- chown -R test:test ${CABAL_DIR}
#
- mkdir -p "$XDG_CACHE_HOME/nix"
#
- chown -R test:test "$XDG_CACHE_HOME/nix"
cache
:
key
:
cabal.project
...
...
devops/docker/Dockerfile
View file @
f85213fd
...
...
@@ -32,6 +32,7 @@ ENV PATH=/home/test/.nix-profile/bin:$PATH
ENV
PATH=/home/test/.local/bin:$PATH
RUN
mkdir
-m
0777 /nix
&&
chown test
/nix
&&
\
mkdir
-p
"/builds/gargantext/"
&&
chmod
777
-R
"/builds/gargantext"
RUN
echo
'test ALL=(ALL) NOPASSWD:ALL'
>>
/etc/sudoers
USER
test
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