Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
vient28
@vient28
anyone can help me? im using gitlab auto devops
vient28
@vient28
he
hey
hillar
@hillar_gitlab
Hello, does anyone experience job timeouts when building images on shared runners? It seems that it stuck in the middle of Dockerfile where 'FROM base as builder' part is done and final part starts with 'FROM base;USER root;'
hillar
@hillar_gitlab
very similar what @BANOnotIT wrote
hillar
@hillar_gitlab

seems that problem is line starting with RUN mkdir -p and workaround is to move it 'one line up behind &&'
fails:

 Step 7/22 : FROM base
  ---> 532fd65ecacd
 Step 8/22 : USER root
  ---> Running in 2647e70f4a4c
 Removing intermediate container 2647e70f4a4c
  ---> df0e8203bac6
 Step 9/22 : RUN apk add --no-cache tini
  ---> Running in 720755af6e88
 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
 (1/1) Installing tini (0.18.0-r0)
 Executing busybox-1.31.1-r9.trigger
 OK: 7 MiB in 17 packages
 Removing intermediate container 720755af6e88
  ---> 4d124e3708cb
 Step 10/22 : RUN mkdir -p /opt/ld && chown -R node:node /opt/ld
  ---> Running in b51a5550fa76
<--- stuck here ;(

workaround:

Step 7/21 : FROM base
  ---> 532fd65ecacd
 Step 8/21 : USER root
  ---> Running in d7387ae49e7f
 Removing intermediate container d7387ae49e7f
  ---> 87695f2d54be
 Step 9/21 : RUN apk add --no-cache tini && mkdir -p /opt/ld && chown -R node:node /opt/ld
  ---> Running in d80c86b07f53
 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
 (1/1) Installing tini (0.18.0-r0)
 Executing busybox-1.31.1-r9.trigger
 OK: 7 MiB in 17 packages
 Removing intermediate container d80c86b07f53
  ---> 848212112b27
 Step 10/21 : USER node
hillar
@hillar_gitlab
looked into my Dockerfiles with xxd, no funny characters
Demi Goldberg
@demig_gitlab
Hi - anyone know how can I clone another repo durring ci process ? I tryied to use : https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/... but it doesn't work
Noah Gray
@NoahGray_gitlab
private or public
@demig_gitlab
Demi Goldberg
@demig_gitlab
gitlab on cloud
Noah Gray
@NoahGray_gitlab
I think you could put a private key in your env variables and do cp $PRIVATE_KEY_FILE_NAME ~./.ssh/id_rsa
within the CI, approve that public key in your web UI settings, and try use the ssh:// clone url too
or @git or w/e
Demi Goldberg
@demig_gitlab
looks an ugly solution ... what about the gitlab-ci-token ? does it suppose to work for clone a repo via https ?
Noah Gray
@NoahGray_gitlab
what I linked is for pushing a repo so you can skip some of that
or, perhaps you can download an artifact from that other repo's ci?
know what I mean? what's your purpose for cloning?
Demi Goldberg
@demig_gitlab
Well i just need to clone an external repo (a terraform module that is stored on a diffrent gitlab repo) I tryied to do it by changing the module source to : https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/... but got en error : Could not download module .. . "https://gitlab-ci-token:[MASKED]@gitlab.com. ... error downloading
Noah Gray
@NoahGray_gitlab
networking thing on the container manager maybe, idk
Anthony BARRE
@anthonybarre_gitlab
Capture decran 2020-02-20 a 09.51.51.png
Hi, I have exactly the same issue as @hillar_gitlab and @BANOnotIT.
gitdog8
@gitdog8
help
image.png
mezen
@mezen
I'm looking for a specific function, maybe someone here can help me: When someone changes a file in a commit, someone specific is supposed to be notified about it. The easiest way to do this would be to combine it with code owners, but I'll take solutions unrelated to that as well. In my case, the change unfortunately bypassed a merge request, so unfortunately this means did not work.
Noah Gray
@NoahGray_gitlab
changes a file in a commit? so edits the commit and force pushes?
mezen
@mezen
No, sry, I meant changes a file with his commit :)
Noah Gray
@NoahGray_gitlab
make master a protected branch and then review all requests to merge
mezen
@mezen
That means I have to do this manual? I am searching for an automatismus. And our git repo is quite large with >5 mio LoC and >15 people who do commits.
Noah Gray
@NoahGray_gitlab
manual code review is what github is for
but yeah you could script that... question is why do you wanna know if anyone has edited a file, or is it just one person?
but there's lots of ways to do what you're asking
mezen
@mezen
Ok, what way should someone with a gitlab instance hosted inhouse go? I want that a project member could subscribe to changes of "special" files. Everytime someone changes this file, that specific project member gets a notification.
Noah Gray
@NoahGray_gitlab
I'm curious the use case
I think maybe you can just subscribe to files
mezen
@mezen
Something like https://docs.gitlab.com/ee/user/project/integrations/emails_on_push.html but not for every push, only for pushes which contains commits which modifies some "special" files.
Noah Gray
@NoahGray_gitlab
click file, click history, click RSS feed
subscribe
Noah Gray
@NoahGray_gitlab
does that work for you
mezen
@mezen
That sounds cool. Is it possible for a branch independent feed?
mezen
@mezen
Ok, seams I am not the only one asking :) gitlab-org/gitlab#1817
Noah Gray
@NoahGray_gitlab
so they can change the file in some branches but not push to master?
or what is the case here
Sevostyanov Denis
@den67rus_gitlab
What is the problem with docker, gitlab ci?
Freezes at this stage and nothing happens, everything worked before
Sevostyanov Denis
@den67rus_gitlab
J. Alexander Alzate Olaya
@aalzate_plvx_gitlab
how can I unrelate a MR to an issue?, just deleting the reference doesn't work.