openfrontier / docker-gerrit

Build a Docker image with the Gerrit code review system
Apache License 2.0
196 stars 118 forks source link

"docker run -d -p 8080:8080 -p 29418:29418 -e AUTH_TYPE=HTTP openfrontier/gerrit" doesn't work #68

Closed jimmy-peng closed 7 years ago

jimmy-peng commented 7 years ago

When I exec this command and access the web interface 8080, it does't work.

thinkernel commented 7 years ago

https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#auth

HTTP

Gerrit relies upon data presented in the HTTP request. This includes HTTP basic authentication, or some types of commercial single-sign-on solutions. With this setting enabled the authentication must take place in the web server or servlet container, and not from within Gerrit.

You need a web server in front of the Gerrit to do the authentication.

jimmy-peng commented 7 years ago

Thank you a lot