Sign inSign up

emunhi/git_https

By emunhi

•Updated almost 8 years ago

Image
0

122

emunhi/git_https repository overview

docker run -it --name emc.git -p 443:443 emunhi/https /bin/bash

yum -y remove git
&& yum -y install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm⁠
&& yum -y install git
&& git --version

git config --global user.name "emunhi" git config --global user.email "[email protected]⁠" git config --global http.sslVerify "false"

htdigest -c /etc/httpd/conf/.htdigest "Digest Auth" emunhi htdigest /etc/httpd/conf/.htdigest "Digest Auth" user1

mkdir -p /emc/repos

mv welcome.conf welcome.conf.xxxx

⁠vi /etc/httpd/conf.d/git.conf

SetEnv GIT_PROJECT_ROOT /emc/repos SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias / /usr/libexec/git-core/git-http-backend/ DAV on SSLRequireSSL AuthType Digest AuthName "Digest Auth" AuthUserFile /etc/httpd/conf/.htdigest Require valid-user


cd /emc/repos git init --bare hodu chown -R apache:apache hodu

/usr/sbin/httpd -k start

######### 아래 불필요 ###### cd /emc/repos/hodu git update-server-info mv hooks/post-update.sample hooks/post-update

Tag summary

Content type

Image

Digest

Size

217.7 MB

Last updated

almost 8 years ago

docker pull emunhi/git_https