gitlab

MongoDB server doesn't start at gitlab runner using gitlab-ci

妖精的绣舞 提交于 2020-05-28 07:43:18
问题 right now I'm in the middle at developing an application using Ruby and Mongo. But I got stuck when I deploy the application using gitlab-ci where it seems that mongo server doesn't start at test environment on gitlab runner. Here are my gitlab-ci.yml stages : - test - deploy services: - mongo:latest unitTest:API: image: ruby:2.6.10 stage: test cache: paths: - API/vendor/ before_script: - ruby -v - gem install bundler --no-ri --no-rdoc - bundle install --gemfile=API/Gemfile --path vendor

Gitlab CI - ERROR: Job failed: executor requires OSType=linux, but Docker Engine supports only OSType=windows

隐身守侯 提交于 2020-05-27 04:32:42
问题 Getting this error while running Gitlab CI pipeline. As I understand the error says that I'm trying to run a Linux type docker image on a windows docker-engine? But the thing is I'm using a windows docker image. What could be the problem? ERROR: Job failed: executor requires OSType=linux, but Docker Engine supports only OSType=windows My CI: image: hello-world:nanoserver stages: - build build1: stage: build script: - echo "Hello world" 回答1: What's the difference between "Shared" and "Simple"

Gitlab CI - ERROR: Job failed: executor requires OSType=linux, but Docker Engine supports only OSType=windows

自作多情 提交于 2020-05-27 04:31:26
问题 Getting this error while running Gitlab CI pipeline. As I understand the error says that I'm trying to run a Linux type docker image on a windows docker-engine? But the thing is I'm using a windows docker image. What could be the problem? ERROR: Job failed: executor requires OSType=linux, but Docker Engine supports only OSType=windows My CI: image: hello-world:nanoserver stages: - build build1: stage: build script: - echo "Hello world" 回答1: What's the difference between "Shared" and "Simple"

Gitlab CI - ERROR: Job failed: executor requires OSType=linux, but Docker Engine supports only OSType=windows

可紊 提交于 2020-05-27 04:31:10
问题 Getting this error while running Gitlab CI pipeline. As I understand the error says that I'm trying to run a Linux type docker image on a windows docker-engine? But the thing is I'm using a windows docker image. What could be the problem? ERROR: Job failed: executor requires OSType=linux, but Docker Engine supports only OSType=windows My CI: image: hello-world:nanoserver stages: - build build1: stage: build script: - echo "Hello world" 回答1: What's the difference between "Shared" and "Simple"

git commands on GitLab HTTP remote fail with 403

六月ゝ 毕业季﹏ 提交于 2020-05-27 02:08:30
问题 I have a GitLab 5.0 installation that suddenly, for no apparent reason, started failing git commands on the HTTP URLs. Any command such as git clone/pull/push fails with the following error: fatal: unable to access 'http://host/user/project.git/': The requested URL returned error: 403 The error happens before any prompt for user/password. This happens for existing and new projects. The SSH URLs continue to work just fine. The GitLab UI on HTTP works fine too. Any idea what might be wrong or

git commands on GitLab HTTP remote fail with 403

拈花ヽ惹草 提交于 2020-05-27 02:07:53
问题 I have a GitLab 5.0 installation that suddenly, for no apparent reason, started failing git commands on the HTTP URLs. Any command such as git clone/pull/push fails with the following error: fatal: unable to access 'http://host/user/project.git/': The requested URL returned error: 403 The error happens before any prompt for user/password. This happens for existing and new projects. The SSH URLs continue to work just fine. The GitLab UI on HTTP works fine too. Any idea what might be wrong or

How to add Server-side Custom Hooks in Gitlab?

二次信任 提交于 2020-05-17 08:52:07
问题 What I am trying to do is that i want to add my hooks to repo in server, so that whoever has cloned the repo, passes through this before pushing to Gitlab server. So far what i have done is, created pre-receive file in custom_hooks folder in /.git/custom_hooks and added some script to it. Below is my pre-receive file. #!/bin/bash zero_commit="0000000000000000000000000000000000000000" excludeExisting="--not --all" while read oldrev newrev refname; do # echo "payload" echo $refname $oldrev

How to add Server-side Custom Hooks in Gitlab?

落花浮王杯 提交于 2020-05-17 08:52:05
问题 What I am trying to do is that i want to add my hooks to repo in server, so that whoever has cloned the repo, passes through this before pushing to Gitlab server. So far what i have done is, created pre-receive file in custom_hooks folder in /.git/custom_hooks and added some script to it. Below is my pre-receive file. #!/bin/bash zero_commit="0000000000000000000000000000000000000000" excludeExisting="--not --all" while read oldrev newrev refname; do # echo "payload" echo $refname $oldrev

Fetch projects greater than 100 from gitlab for sourcegraph projectQuery

守給你的承諾、 提交于 2020-05-17 06:45:17
问题 I am updating a sourcegraph's projectQuery configuration for gitlab but gitlab's (for the version I have) max count per page is 100 therefore, I can not get all the projects in a single query because I have more than 100 projects although I can add additional queries to fetch multiple projects but this I have to monitor and keep track of if the new projects are added that does not seems ntutive. project query could look like this "projectQuery": [ "../v4/projects?per_page=100&page=1", "../v4

Git: unable to get remote and local/server the same

£可爱£侵袭症+ 提交于 2020-05-17 06:26:30
问题 git status on the server returns: On branch develop Your branch is ahead of 'origin/develop' by 14 commits. (use "git push" to publish your local commits) nothing to commit, working tree clean My goal is to get the git branch on gitlab.com and on the server synchronized. When I look at the difference between the two, the commits that it states that remote on the server is ahead, are commits I believe are actually there on gitlab.com. I did the following on the server: git status returns "Your