gitlab-foss | GitLab FOSS is a read-only mirror of GitLab | Collaboration library
kandi X-RAY | GitLab FOSS Summary
kandi X-RAY | GitLab FOSS Summary
GitLab FOSS is a read-only mirror of GitLab, with all proprietary code removed. This project was previously used to host GitLab Community Edition, but all development has now moved to
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gitlab-foss
GitLab FOSS Key Features
GitLab FOSS Examples and Code Snippets
Community Discussions
Trending Discussions on gitlab-foss
QUESTION
My CI/CD on gitlab deploy code on heroku using dpl. It have been working like a charm until a new version of faraday (I guess it is the reason) is fetch.
Here is what I had in my gitlab CI terminal when it worked (yesterday) :
...ANSWER
Answered 2022-Jan-04 at 12:32This might be useful for this case
QUESTION
On a daily basis I am working with GitLab with following workflow:
- I create a new
feature
branch frommain
branch - I commit and push changes to the
feature
branch - Then I create a new merge request (from
feature
intomain
) via GitLab GUI usingsquash
feature: - When approver accept my MR, it results with following
main
branch tree (from IntellJ IDEA):
I have tried to achieve the same on my testing repository using command line only but with no success so far. I have tried (on feature
branch) interactive rebase as well as soft reset with force push but it always results as a 'single line tree'. Example after two separate merges from feature
into main
:
ANSWER
Answered 2021-May-29 at 12:15Simply use merge without fast-forward:
QUESTION
I am trying to build a Gitlab CI yml, that triggers a certain job:
- when the commit is tagged in the form x.y.z
- I trigger manually via the Gitlab webapp
- the commit message ends with a certain regex ("-build_doc")
with the bullets being logical or statements. I tried only
statements and rules
alike but couldn't figure it out.
Web and tag already worked like so:
ANSWER
Answered 2021-Jan-25 at 16:50You won't be able to get your desired result using the only
syntax due to the way it's evaluated. The example you have above is a simple/shorthand way of using the refs
keyword, so it is the same thing as
QUESTION
I would like to create a pipeline that is only run if both of the following conditions are met:
- A tag refers to the given commit
- The commit exists on any protected branch (i.e. master)
- Optional: The job should be run whenever a tagged unprotected branch is merge (with a merge request) into a protected branch or if a tag is added to a protected branch.
I've tried:
...ANSWER
Answered 2020-Oct-20 at 16:02Combining the workaround mentioned in the question with the new gitlab rule and workflow features I came up with an answer that seem satisfying for me.
The person originally posting the workaround mentioned that there are cases in which git branch contains
does not give the correct results.
So made sure, that git fetch
does not make a shallow copy (note for the beginning it could be useful to change the GIT_STRATEGY
to clone, so that old possibly shallow copies are removed).
Instead of using CI_COMMIT_REF_PROTECTED
which could be true also for protected tags, I hardcoded the master branch as protected.
QUESTION
I am getting the 502 Whoops, GitLab is taking too much time to respond error on my fresh Manual installation of Gitlab-ce 13.2.4 on CENTOS 8 (nginx/1.16.1).
I downloaded the rpm gitlab-ce-13.2.4-ce.0.el8.x86_64.rpm
dnf -y install policycoreutils-python-utils
rpm -Uvh gitlab-ce-13.2.4-ce.0.el8.x86_64.rpm
/etc/gitlab/gitlab.rb >> external_url "https://git.mydomain.com"
/etc/gitlab/gitlab.rb >> nginx['enable'] = false
/etc/gitlab/gitlab.rb >> web_server['external_users'] = ['nginx']
/etc/gitlab/gitlab.rb >> gitlab_rails['trusted_proxies'] = [ '172.16.1.0/24', '192.168.10.0/24']
/etc/nginx/conf.d/git.mydomain.com.conf >> https://gitlab.com/gitlab-org/gitlab-foss/-/raw/master/lib/support/nginx/gitlab-ssl
systemctl restart nginx
gitlab-ctl reconfigure
ANSWER
Answered 2020-Aug-16 at 16:57My selinux was blocking the url to run. probably the gitlab directory access.
I run setenforce 0
and it worked (which is not a good practice though).
EDIT: chcon -R -t httpd_sys_rw_content_t /var/opt/gitlab/
QUESTION
I have dotnet solution which consists of console project, webapi project and mysql db. I put them in separate docker images, wrote docker-compose to start and tested on my machine. Next, I wrote a test using FluentDocker, which allows me to start docker-compose programmatically and verify that containers are up and running.
Now I want to do this on Gitlab CI. Previously I used image: mcr.microsoft.com/dotnet/core/sdk:3.1 and run test stage against test project. It worked fine because there was no docker integration. I cant run FluentDocker test on Gitlab CI because the image does not contain docker. So I started researching.
Solution to incorporate db in CI job is here https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service , but I doubt that I can use docker as service.
Next is using docker intergration for gitlab runner https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker-workflow-with-docker-executor or https://tomgregory.com/running-docker-in-docker-on-windows/ I cant use that because I use free runner from Gitlab itself and cant configure it. I tried to run docker info command, it fails in my script.
I thought of building my own image based on dotnet sdk with docker included, but it seems like a bad idea. And I did not make it working in the end.
Solution that seems working is to use dind and start docker-compose: How to run docker-compose inside docker in docker which runs inside gitlab-runner container? or https://gitlab.com/gitlab-org/gitlab-foss/-/issues/30426 But to use it I will need to install dotnet-sdk to build and test my app in before-script section, and sdk is not a small package to download each time.
I can try to build my image based on docker:dind and include dotnet sdk there, publish it on dockerhub then use it in gitlab runner. Now it seems to me as the last option.
So, whats the correct approach here?
-----------edit--------------
I made this working! See the very thorough answer from Konrad Botor with dockerfile and yml file. I built my own image with sdk and docker and used it for test stage with dind service linked. My image is hosted on dockerhub, so gitlab downloads it for usage.
Also some notes:
1 - how to use dind as service https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25344
2 - where to get modprobe.sh and docker-entrypoint.sh https://github.com/docker-library/docker (go inside latest release). Very important is to clone repo and copy files from there, because I tried to copy-paste contents and it did not work.
3 - docker-compose repo https://github.com/tmaier/docker-compose/blob/master/Dockerfile
4 - dind example https://gitlab.com/gitlab-examples/docker/-/blob/master/.gitlab-ci.yml
...ANSWER
Answered 2020-Aug-08 at 11:40We have the same situation in our comapny but with a self hosted docker / gitlab etc.
Currently we are running docker integration in gitlab runner (your number 2) and had a bunch of bad side-effects e.g.: that the container created by the gitlab runner isnt cleaned up properly because gitlab-runner doesnt think about cleaning up, because in normal cases with the closing of the docker-runner itself it should (wihtout) dnd destroying everything.
Option 3 is not a bad thing, its a default and complete normal thing to do: we have a bunch of docker images that includes lib's that are not given withtin the loaded image. You get used to it - so I would prefer that. Is a clean solution which doesnt feel "hacky".
QUESTION
We have on premise Gitlab installation and want to display big diffs. According to comments from this issue https://gitlab.com/gitlab-org/gitlab-foss/issues/30061 we made following changes
...ANSWER
Answered 2020-Apr-10 at 14:08It looks like there is an open issue on this: https://gitlab.com/gitlab-org/gitlab/-/issues/17609
QUESTION
In my GitLab CI build, I want to:
- Start a docker container with local AmazonDB. Standard port layout: port
8000
in docker, port8000
exposed. Of course, everything works locally, I can connect (curl
,awc-cli
, Java code for Amazon DB, whatever you wish). - Use it for tests, i.e. connect to it as
--endpoint-url http://localhost:8000
(or any other mapped IP instead oflocalhost
).
.gitlab-ci.yml
looks like this:
ANSWER
Answered 2020-Feb-25 at 16:10There is actually no need in writing such a complex solution with manual docker run
/ docker stop
inside the -script
section. The slim and simple way is to use the local DynamoDB as service
.
With this script, local DynamoDB will be accessible via url from alias
of the services
element, i.e. dynamodb-local
for this example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GitLab FOSS
To work on GitLab itself, we recommend setting up your development environment with the GitLab Development Kit. If you do not use the GitLab Development Kit you need to install and setup all the dependencies yourself, this is a lot of work and error prone. One small thing you also have to do when installing it yourself is to copy the example development Puma configuration file:. Instructions on how to start GitLab and how to run the tests can be found in the getting started section of the GitLab Development Kit.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page