Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4c86c12d authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

debug

parent d8b33259
No related branches found
No related tags found
No related merge requests found
Pipeline #1163563 failed
......@@ -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' &
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment