Re: Building a Docker image for GitLab-CI

2024-12-25 Thread Simon Josefsson via
All, Here are some updates about Guix container images for GitLab pipelines or local podman usage. I'm declaring this v1.0. tl;dr: https://gitlab.com/debdistutils/guix/container Final images are built from a pure Guix container now. Everything is done on public shared GitLab runners in the pip

GitLab container /etc symlink problem (was: Re: Building a Docker image for GitLab-CI)

2024-12-23 Thread Simon Josefsson via
Simon Josefsson via writes: >>> Re /etc=etc it seems GitLab's docker setup bind-mounts things below >>> /etc/ and it cannot handle the root /etc symlink. A workaround is to >>> use `lndir` which I use in the `test-amd64-package-install` job. This >>> is limitation of GitLab's docker setup: I tr

Container image entrypoints on Gitlab (was: Re: Building a Docker image for GitLab-CI)

2024-12-23 Thread Simon Josefsson via
Simon Josefsson via writes: > I didn't test now but I think Debian images handle all three entrypoint > values, but the 'guix pack' image doesn't. That was not true! Here the situation: https://gitlab.com/debdistutils/guix/container/-/pipelines/1600726433 Debian fails on these two GitLab .git

Re: Building a Docker image for GitLab-CI

2024-12-22 Thread Simon Josefsson via
Ludovic Courtès writes: >> - guix package -i fails: `guix perform-download: error: refusing to >> run with elevated privileges (UID 0)` > > Should be fixed by running guix-daemon with > “--build-users-group=whatever” so that downloads run as one of the build > users, not as root. Yes, I discov

Re: Building a Docker image for GitLab-CI

2024-12-21 Thread Ludovic Courtès
Hi Simon! Simon Josefsson skribis: > I am happy to announce Guix container images: > > https://gitlab.com/debdistutils/guix/container/ > > They are suitable for use in GitLab pipelines. Yay! > - guix package -i fails: `guix perform-download: error: refusing to > run with elevated privileges

Re: Building a Docker image for GitLab-CI

2024-12-18 Thread Cayetano Santos via
n<#secure method=pgpmime mode=sign> Hi Andreas, Nice work ! I’ve been playing a bit with it, but failed miserably to use your image, as you can see: https://gitlab.com/csantosb/gitlabci/-/jobs/8681019372 This is my dummy yaml file: https://gitlab.com/csantosb/gitlabci/-/blob/test

Re: Building a Docker image for GitLab-CI

2024-12-18 Thread Simon Josefsson via
Andreas Enge writes: > Hello Simon, > > Am Mon, Dec 16, 2024 at 11:42:34AM +0100 schrieb Simon Josefsson via: >> I am trying to get a Guix container usable in GitLab, and thought I'd >> share my status. I have established working networking in the resulting >> Guix container, which seems like pr

Re: Building a Docker image for GitLab-CI

2024-12-17 Thread Simon Josefsson via
I am happy to announce Guix container images: https://gitlab.com/debdistutils/guix/container/ They are suitable for use in GitLab pipelines. There are many things to continue discuss and resolve. However it is now possible to start a GitLab pipeline job that uses an 'image:' pointing to a conta

Re: Building a Docker image for GitLab-CI

2024-12-17 Thread Ludovic Courtès
Simon Josefsson skribis: > Yes it seems like a GitLab/docker-specific problem since I don't get the > same /etc when running the generated image locally. > > There is this interesting entry in /proc/mounts: > > https://gitlab.com/debdistutils/guix/container/-/jobs/8652014833#L343 > > overlay / ov

Re: Building a Docker image for GitLab-CI

2024-12-17 Thread Simon Josefsson via
Ludovic Courtès writes: >> What is really weird is this root directory: >> >> Using docker image >> sha256:57160f1c13ce56799d6e3e83dd97da4c929993ac008404ac38c67317cded25d1 >> for registry.gitlab.com/debdistutils/guix/container:pack with digest >> registry.gitlab.com/debdistutils/guix/container@sh

Re: Building a Docker image for GitLab-CI

2024-12-16 Thread Ludovic Courtès
Hi Simon, Simon Josefsson skribis: > https://gitlab.com/debdistutils/guix/container/-/blob/main/.gitlab-ci.yml Yay, great that you went this far! > It fails with networking errors just like Ludo's earlier e-mail: > > fping: icmp: unknown protocol > > What is really weird is this root directory

Re: Building a Docker image for GitLab-CI

2024-12-16 Thread Andreas Enge
Hello Simon, Am Mon, Dec 16, 2024 at 11:42:34AM +0100 schrieb Simon Josefsson via: > I am trying to get a Guix container usable in GitLab, and thought I'd > share my status. I have established working networking in the resulting > Guix container, which seems like progress (whoohoo!). tl;dr: at

Re: Building a Docker image for GitLab-CI

2024-12-16 Thread Simon Josefsson via
All, I am trying to get a Guix container usable in GitLab, and thought I'd share my status. I have established working networking in the resulting Guix container, which seems like progress (whoohoo!). tl;dr: https://gitlab.com/debdistutils/guix/container/-/jobs/8652014833 The problem seems to

Re: Building a Docker image for GitLab-CI

2024-12-15 Thread Cayetano Santos
In the test-entry branch, I’m testing the trick in the guix-on-docker repository, where the entrypoint is given a guix script. https://gitlab.com/csantosb/gitlabci/-/jobs/8648429390 Getting closer ... -- Cayetano Santos GnuPG Key: https://meta.sr.ht/~csantosb.pgp FingerPrint: CCB8 1842 F9

Re: Building a Docker image for GitLab-CI

2024-12-15 Thread Cayetano Santos
I just setup a toy project, here: https://gitlab.com/csantosb/gitlabci Here, I reproduce the steps to build a docker image using guix system image, and set te entrypoint to "", as you can see. Still, a piece in the puzzle is missing, ideas ? https://gitlab.com/csantosb/gitlabci/-/jobs/

Re: Building a Docker image for GitLab-CI

2024-06-07 Thread Andreas Enge
Am Thu, Jun 06, 2024 at 11:23:20AM +0200 schrieb Ludovic Courtès: > (It’s possible to sidestep that problem for instance by having GitLab-CI > offload to a runner in a machine that you control, where Guix is > installed. But I’m looking for a solution that could work > out-of-the-box on any GitLab

Re: Building a Docker image for GitLab-CI

2024-06-06 Thread Ludovic Courtès
Reza Housseini skribis: > Ludovic Courtès writes: > >> That’s nice, but unless I’m mistaken, Guix is missing from the image, >> right? >> >> My goal would be to be able to use Guix within the image, so I can have >> GitLab-CI spawn ‘guix build’ commands (or similar). > > Oh sorry this was a misu

Re: Building a Docker image for GitLab-CI

2024-06-06 Thread Reza Housseini
Ludovic Courtès writes: > That’s nice, but unless I’m mistaken, Guix is missing from the image, > right? > > My goal would be to be able to use Guix within the image, so I can have > GitLab-CI spawn ‘guix build’ commands (or similar). Oh sorry this was a misunderstanding from my side. Have you t

Re: Building a Docker image for GitLab-CI

2024-06-06 Thread Ludovic Courtès
Hi, Andreas Enge skribis: > Am Tue, Jun 04, 2024 at 01:29:22PM +0200 schrieb Ludovic Courtès: >> My goal would be to be able to use Guix within the image, so I can have >> GitLab-CI spawn ‘guix build’ commands (or similar). > > with a colleague we have set up such a system. He has started from a

Re: Building a Docker image for GitLab-CI

2024-06-05 Thread Andreas Enge
Hello, Am Tue, Jun 04, 2024 at 01:29:22PM +0200 schrieb Ludovic Courtès: > My goal would be to be able to use Guix within the image, so I can have > GitLab-CI spawn ‘guix build’ commands (or similar). with a colleague we have set up such a system. He has started from a Debian image and written a

Re: Building a Docker image for GitLab-CI

2024-06-04 Thread Ludovic Courtès
Hi Reza, Reza Housseini skribis: >> Has anyone succeeded in building a Docker image suitable for use in >> GitLab-CI? > > I normally do the following and it seems to work fine with our gitlab > instance: > > registry=registry.gitlab.ost.ch:45023/sciceg/teaching/eeu_mlds > archive=$(guix time-mac

Re: Building a Docker image for GitLab-CI

2024-06-04 Thread Reza Housseini
Ludovic Courtès writes: sorry forgot to include the list... Hi Ludo > Has anyone succeeded in building a Docker image suitable for use in > GitLab-CI? I normally do the following and it seems to work fine with our gitlab instance: registry=registry.gitlab.ost.ch:45023/sciceg/teaching/eeu_mlds

Re: Building a Docker image for GitLab-CI

2024-02-15 Thread Ludovic Courtès
Hi, Efraim Flashner skribis: > In the past I used a script to install guix using the shell script and > then ran guix pull before building my package. I suppose you could use > a Debian image and run 'guix pull' first before building something. I could… but that’d be cheating. :-) Ludo’.

Re: Building a Docker image for GitLab-CI

2024-02-14 Thread Efraim Flashner
On Tue, Feb 13, 2024 at 11:31:28AM +0100, Ludovic Courtès wrote: > Hello Guix! > > Has anyone succeeded in building a Docker image suitable for use in > GitLab-CI? I haven’t. Here’s what I tried. In the past I used a script to install guix using the shell script and then ran guix pull before bu

Re: Building a Docker image for GitLab-CI

2024-02-14 Thread Andreas Enge
Am Tue, Feb 13, 2024 at 11:31:28AM +0100 schrieb Ludovic Courtès: > Has anyone succeeded in building a Docker image suitable for use in > GitLab-CI? I haven’t. Here’s what I tried. A colleague of mine just found this: https://gitlab.com/daym/guix-on-docker/ :-) Andreas

Re: Building a Docker image for GitLab-CI

2024-02-14 Thread Suhail
Ludovic Courtès writes: > Initially, I built an image with ‘guix system image -t docker …’ but > that doesn’t work because then the image’s “entry point” is shepherd, > but shepherd never returns. Did you try resetting the entrypoint in .gitlab-ci.yml using the image:entrypoint keyword? [1] [1]