gitlab

三、平台即服务--GitLab

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 01:57:47
3.1 简介 GitLab 是利用 Ruby on Rails 一个开源的版本管理系统,实现一个自托管的 Git 项目仓库,可通过 Web 界面进行访问公开的或者私人项目。它拥有与 Github 类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序 (Wall) 进行交流。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。 开源的第三方代码托管平台只有GitLab,且支持自动化运维。 3.2 安装运行 GitLab 需要一定的电脑配置,至少要2G内存,因为我们已经会了docker 所以我们用 docker-compose来安装GitLab version: '3' services: web: image: 'twang2218/gitlab-ce-zh' restart: always hostname: '192.168.0.108' environment: TZ: 'Asia/Shanghai' GITLAB_OMNIBUS_CONFIG: | external_url 'http://192.168.0.108' gitlab_rails['gitlab_shell_ssh_port'] = 2222 unicorn['port'] =

How to install GitZilla with GitLab and Bugzilla

牧云@^-^@ 提交于 2019-12-11 01:37:28
问题 I have a setup with GitLab (the latest version) and Bugzilla 4.4.1 installed on a CentOS machine. Users create local repositories on their systems and push to a central repository, i.e., on GitLab. I need to setup bug tracking with Gitab, so that each push updates Bugzilla with all the commits to the project. I found that Gitzilla is used for such a thing, but after going through its installation instructions, I failed to understand one of the points. Switch to the hooks directory (/path/to

How do I pass the commit SHA as a parameter in GITLab WebHook

让人想犯罪 __ 提交于 2019-12-11 01:37:11
问题 I want to trigger a Jenkins Job if there is code commit made to Gitlab I am using WebHooks for this: The URL I am trying is http://10.192.39.32:1024/job/SCMSnaps/buildWithParameters?token=secretkey&SNAP=$GIT_COMMIT I want SNAP to hold the value of the SHA Number on the Gitlab can anyone help with the correct way to pass variables in a WebHook URL? 回答1: You should install the gitlab hook plugin for jenkins, it will allow you to do just what you want : https://wiki.jenkins-ci.org/display

xcodebuild: error: 'APP.xcworkspace' does not exist

纵然是瞬间 提交于 2019-12-11 01:24:38
问题 I am trying to set up CI with gitlab. When I try to build locally, I get this error : xcodebuild: error: 'APP.xcworkspace' does not exist. "APP" not being the real name. I am also using CocoaPods. This happens after I run this command in terminal: gitlab-ci-multi-runner exec shell build_project I have checked and the file does exist in the same folder I call the command. This is my .gitlab-ci.yml file: stages: - build build_project: stage: build script: - xcodebuild clean -workspace APP

Automating unit testing in PyQt5 using Gitlab's CI: QXcbConnection error

自闭症网瘾萝莉.ら 提交于 2019-12-10 22:47:19
问题 I am creating a GUI skeleton (for now) using PyQt5 and I have written some unit tests (using Python's unittest package) for testing its basic features. While trying to automate the procedure of running those unit tests each time a commit is made to this repository (currently hosted in GitLab), I have created the following .gitlab-ci.yml file: before_script: - sudo apt-get -qq update && sudo apt-get -qq install -y python3 - sudo apt-get -qq update - sudo apt-get -qq install -y python3 python

gitlab相关命令操作

不想你离开。 提交于 2019-12-10 22:27:10
[root@xuegod63 ~]# git config --global user.name "zsl3" [root@xuegod63 ~]# git config --global user.email "245305579@qq.com" [root@xuegod63 ~]# cat ~/.gitconfig #查看 cd zsl-web/ ll ll -a vi .git/config [user] email = 245305579@qq.com name = zsl3 git clone http://45.115.243.24/zsl/zsl-web.git 命令需要在目录下执行 git config --global user.name “name“ #设置全局用户名 git config --global user.email mail #设置全局邮箱 git config --global --list #列出用户全局设置 git add index.html #添加文件到暂存区 git commit -m “描述内容“ #提交文件到工作区 git status #查看工作区的状态 git push #提交代码到 git 服务器上 git pull #获取代码到本地 git log #查看操作日志 vim .gitignore #定义忽略文件 版本回滚

Whitescreen of death after pulling from git repo (ReactJS, Nginx)

倖福魔咒の 提交于 2019-12-10 21:38:42
问题 Whenever I perform a git pull from my master branch onto my server, all my React files seem to just disappear and the screen turns white. The temporary workarounds I had found were: Delete browser cookies, cache & site history, and then close the browser and try again. Delete node_modules, npm install all react dependencies again After a while, the site reappears and everything works as normal until the next time after a few pull requests, the problem appears again. Any console I use on any

Can not do merge request on GitLab

孤街浪徒 提交于 2019-12-10 21:37:14
问题 After updating GitLab from 6.2 to 7.1. I can not do merge requests. It tells me that there isn't anything to merge (but ofcourse there are). System info: System information System: Current User: git Using RVM: no Ruby Version: 2.1.2p95 Gem Version: 2.2.2 Bundler Version:1.6.5 Rake Version: 10.3.2 Sidekiq Version:2.17.0 GitLab information Version: 7.1.1 Revision: facfec4 Directory: /home/git/gitlab DB Adapter: mysql2 URL: <not showing> HTTP Clone URL: <not showing> SSH Clone URL: <not showing>

Is it possible to disable syntax highlighting for .txt files in Gitlab?

喜欢而已 提交于 2019-12-10 21:27:49
问题 I'd like to disable syntax highlighting and enable (if possible) soft wrapping for .txt files in Gitlab. Can this be done? 回答1: Disable syntax highlight: seems not: https://github.com/gitlabhq/gitlabhq/issues/8404 Similar problem for code blocks in markdown: http://feedback.gitlab.com/forums/176466-general/suggestions/6571399-don-t-guess-rendered-code-block-filetype-and-rende Soft wrapping: not possible. It has been recently implemented for merge requests: http://feedback.gitlab.com/forums

How to build, test and deploy using Jhipster, Docker, Gitlab and Heroku

和自甴很熟 提交于 2019-12-10 21:18:29
问题 I am very new to Jhipster and Docker and I would like some help understanding the basics of how to build and deploy my application on my Heroku instance. As I am working with a friend, we will probably need some sort of integration platform such as Gitlab that will also work as our code versioning and repository. Here is what we have done so far: Generated a monolithic application and tested it locally (works fine, thanks Jhipster for making it so easy). Pushed it on our gitlab repository.