docker image creation on private (rackspace) runners

Andrew Bartlett abartlet at samba.org
Thu Oct 10 03:10:14 UTC 2019


On Tue, 2019-10-08 at 10:28 +0200, Andreas Schneider wrote:
> The branch, master has been updated
>        via  c9d302f20b0 gitlab-ci: Add CentOS 8 to CI
>        via  9cd0d153701 bootstrap: We can only build docker images on
> gitlab shared runners
>        via  42edab7bd76 bootstrap: Remove pyhton2 packages
>       from  7bceafe8401 s3/passdb: clang: Fix 'Value stored during
> initialization is never read'
> 
> https://git.samba.org/?p=samba.git;a=shortlog;h=master
> 
> 
> - Log -------------------------------------------------------------
> ----
> commit c9d302f20b066267a8fd2d7ce4dc171161c9c40c
> Author: Andreas Schneider <asn at samba.org>
> Date:   Mon Oct 7 11:28:24 2019 +0200
> 
>     gitlab-ci: Add CentOS 8 to CI
>     
>     Signed-off-by: Andreas Schneider <asn at samba.org>
>     Reviewed-by: Alexander Bokovoy <ab at samba.org>
>     
>     Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
>     Autobuild-Date(master): Tue Oct  8 08:27:50 UTC 2019 on sn-devel-
> 184
> 
> commit 9cd0d15370142b3694a51fa9b6cfffdb8e08e886
> Author: Andreas Schneider <asn at samba.org>
> Date:   Mon Oct 7 13:28:07 2019 +0200
> 
>     bootstrap: We can only build docker images on gitlab shared
> runners
>     
>     Our rackspace runners don't provide a running docker.
>     
>     Signed-off-by: Andreas Schneider <asn at samba.org>
>     Reviewed-by: Alexander Bokovoy <ab at samba.org>

I don't think this patch is right, you probably just got lucky and got
a shared runner when re-submitting this.

Instead we need the patch Garming did in:

https://gitlab.com/samba-team/samba/merge_requests/803

> diff --git a/bootstrap/.gitlab-ci.yml b/bootstrap/.gitlab-ci.yml
> index 8254986d2dc..e474b4b500f 100644
> --- a/bootstrap/.gitlab-ci.yml
> +++ b/bootstrap/.gitlab-ci.yml
> @@ -6,6 +6,7 @@ services:
>    stage: images
>    tags:
>      - docker
> +    - shared
>    variables:
>      SAMBA_CI_IS_BROKEN_IMAGE: "no"
>    before_script:

Or we need to remove 'shared' from the rackspace runners.  

Currently we declare those as shared to take some of the load, but we
could stop doing that.

If we wanted to still, sometimes, share the load we could instead have
the rackspace runners only declare 'docker' to gitlab.com.

Yeah, the interactions here are a bit too subtle.

Andrew Bartlett

-- 
Andrew Bartlett                       https://samba.org/~abartlet/
Authentication Developer, Samba Team  https://samba.org
Samba Developer, Catalyst IT          
https://catalyst.net.nz/services/samba






More information about the samba-technical mailing list