[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building a Docker image for GitLab-CI
From: |
Reza Housseini |
Subject: |
Re: Building a Docker image for GitLab-CI |
Date: |
Fri, 31 May 2024 11:26:29 +0200 |
Ludovic Courtès <ludovic.courtes@inria.fr> 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
archive=$(guix time-machine -C channels.scm -- pack -f docker -S /bin=bin -S
/lib=lib -S /share=share -m manifest.scm)
tag=$(docker load -i $archive)
docker tag ${tag##*"Loaded image: "} $registry
docker push $registry
what seems to be crucial is to add the following packages to the
manifest file:
"bash"
"coreutils"
"git"
than I can use the image in the gitlab-ci.yml file
generate-exercises:
image: registry.gitlab.ost.ch:45023/sciceg/teaching/eeu_mlds:latest
...
Hope that helps!
Best,
Reza
PS: It would be really nice if one could provide a docker tag directly
to `guix pack -f docker`
- Re: Building a Docker image for GitLab-CI,
Reza Housseini <=