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
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
Content type
Image
Digest
Size
217.7 MB
Last updated
almost 8 years ago
docker pull emunhi/git_https