使用ssl在远程机器上安装我自己的git服务器.
我使用这个命令:
env GIT_SSL_NO_VERIFY = true git clone https://xxx.xxx.xxx.xxx/git/project.git
一切都很好,并且使用env GIT_SSL_NO_VERIFY = true所有git命令都可以正常工作.
但我需要使用netbeans ide进行拉动和推送,所以使用netbeans ide我不会添加它
env GIT_SSL_NO_VERIFY = true
所以netbeans说:
无法通过https://xxx.xxx.xxx.xxx/git/project.git连接到远程存储库
我需要做什么?
在我使用gitlab 5.3之前,一切正常.
现在我通过5.4和6.0升级到gitlab 6.1,现在我无法推送.
服务器上的安装检查:
root@ks:/home/git/gitlab# sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Debian 6.0.7
Current User: git
Using RVM: no
Ruby Version: 1.9.3p327
Gem Version: 2.1.8
Bundler Version:1.3.5
Rake Version: 10.1.0
GitLab information
Version: 6.1.0
Revision: b595503
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://git.gigadi.org
HTTP Clone URL: http://git.gigadi.org/some-project.git
SSH Clone URL: git@git.gigadi.org:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.7.1
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
root@ks:/home/git/gitlab# sudo -u git -H bundle …Run Code Online (Sandbox Code Playgroud) 我对 docker 还很陌生,我尝试在 Dockerfile 中自动执行 Composer install,但在安装时似乎无法 cd 进入我的应用程序,出了什么问题?或者也许还有另一种更好的方法来做到这一点?
我的 docker-compose.yml
version: "3.1"
services:
app:
image: nginx:alpine
container_name: app
working_dir: /application
volumes:
- ./Projects/app:/application/app
- ./Docker/nginx/app.conf:/etc/nginx/conf.d/app.conf
ports:
- "8080:8080"
php-fpm-app:
build: Docker/php-fpm-app
container_name: php-fpm-app
working_dir: /application
volumes:
- ./Projects:/application
- ./Docker/php-fpm-app/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
Run Code Online (Sandbox Code Playgroud)
我的 Dockerfile
FROM phpdockerio/php72-fpm:latest
WORKDIR "/application"
# Fix debconf warnings upon build
ARG DEBIAN_FRONTEND=noninteractive
RUN mkdir -p /var/www/.composer \
&& chown -R www-data:www-data /var/www/.composer
USER www-data
RUN cd /application/app; composer install
Run Code Online (Sandbox Code Playgroud)
我运行此命令后的输出:
docker-compose up -d
Step 6/6 : RUN …Run Code Online (Sandbox Code Playgroud)