Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add git protocol v2 support via SSH on Docker image #5520

Merged
merged 3 commits into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove new layer on dockerfile
  • Loading branch information
lunny committed Dec 11, 2018
commit f6398468a135977c405a7fee8a46e2448204dfb9
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ RUN addgroup \
git && \
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd

RUN echo "AcceptEnv GIT_PROTOCOL" >> /etc/ssh/sshd_config

ENV USER git
ENV GITEA_CUSTOM /data/gitea

Expand Down
2 changes: 2 additions & 0 deletions docker/etc/ssh/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ AllowUsers git

Banner none
Subsystem sftp /usr/lib/ssh/sftp-server

AcceptEnv GIT_PROTOCOL