Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
docker
Commits
4c86c12d
Commit
4c86c12d
authored
1 week ago
by
PRUVOST Florent
Browse files
Options
Downloads
Patches
Plain Diff
debug
parent
d8b33259
No related branches found
No related tags found
No related merge requests found
Pipeline
#1163563
failed
1 week ago
Stage: build-first-layout
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dockerfile-guix
+4
-12
4 additions, 12 deletions
dockerfile-guix
with
4 additions
and
12 deletions
dockerfile-guix
+
4
−
12
View file @
4c86c12d
...
...
@@ -4,7 +4,7 @@ USER root
RUN apt-get -y update
# Install dependencies to install guix
RUN apt-get -y upgrade --no-install-recommends
adduser
ca-certificates gpg gpg-agent gnupg-utils netbase tar wget xz-utils
RUN apt-get -y upgrade --no-install-recommends ca-certificates gpg gpg-agent gnupg-utils netbase tar wget xz-utils
RUN update-ca-certificates
RUN wget https://ci.guix.gnu.org/search/latest/archive?query=spec:tarball+status:success+system:x86_64-linux+guix-binary.tar.xz -O guix-binary.tar.xz
ENV GUIX_BINARY_FILE_NAME /guix-binary.tar.xz
...
...
@@ -41,15 +41,7 @@ RUN echo '#!/bin/bash' > /usr/local/bin/guix-daemon-wrapper.sh && \
echo 'exit $RESULT' >> /usr/local/bin/guix-daemon-wrapper.sh && \
chmod a+x /usr/local/bin/guix-daemon-wrapper.sh
# Create gitlab user
RUN groupadd -f -g 1001 gitlab && \
useradd -u 1001 -g gitlab -ms /bin/bash gitlab && \
echo "gitlab:gitlab" | chpasswd && adduser gitlab sudo
RUN usermod -aG sudo gitlab
RUN chown -R gitlab:gitlab /home/gitlab/
USER gitlab
USER guix-daemon
# Update Guix
RUN /usr/local/bin/guix-daemon-wrapper.sh guix pull
...
...
@@ -58,10 +50,10 @@ RUN /usr/local/bin/guix-daemon-wrapper.sh guix pull
RUN /usr/local/bin/guix-daemon-wrapper.sh guix install hello
# Add the updated guix in the PATH and path to executables installed with guix install
ENV PATH="/
home/gitlab
/.guix-profile/bin":"/
home/gitlab
/.config/guix/current/bin":$PATH
ENV PATH="/
root
/.guix-profile/bin":"/
root
/.config/guix/current/bin":$PATH
# set locale (should be fixed in future guix)
ENV LC_ALL="C.UTF-8"
## Execute this first before executing guix commands in a container:
#/var/guix/profiles/per-user/
gitlab
/current-guix/bin/guix-daemon --substitute-urls='https://bordeaux.guix.gnu.org https://ci.guix.gnu.org https://guix.bordeaux.inria.fr' &
#/var/guix/profiles/per-user/
root
/current-guix/bin/guix-daemon --substitute-urls='https://bordeaux.guix.gnu.org https://ci.guix.gnu.org https://guix.bordeaux.inria.fr' &
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment