diff options
author | codeskyblue <codeskyblue@gmail.com> | 2015-08-17 09:12:47 -0400 |
---|---|---|
committer | codeskyblue <codeskyblue@gmail.com> | 2015-08-17 09:12:47 -0400 |
commit | 4095ef2820c9f544229ad77fcb13a06bf3160063 (patch) | |
tree | 77943892c6d598885cf36dc295bf0c8c283d37b4 | |
parent | 398bb772d84bca725f97bf37e866f71fd38f5c79 (diff) | |
download | gitea-4095ef2820c9f544229ad77fcb13a06bf3160063.tar.gz gitea-4095ef2820c9f544229ad77fcb13a06bf3160063.zip |
add pam for docker
-rw-r--r-- | Dockerfile | 6 | ||||
-rw-r--r-- | docker/README.md | 13 |
2 files changed, 16 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile index a6d23cfc87..baba8f19d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,14 +3,14 @@ MAINTAINER codeskyblue@gmail.com RUN echo "deb http://ftp.debian.org/debian/ wheezy-backports main" >> /etc/apt/sources.list RUN apt-get update -RUN apt-get install -y openssh-server rsync +RUN apt-get install -y openssh-server rsync libpam-dev # set the working directory and add current stuff COPY . /gopath/src/github.com/gogits/gogs/ WORKDIR /gopath/src/github.com/gogits/gogs/ -RUN go get -v -tags "sqlite redis memcache cert" -RUN go build -tags "sqlite redis memcache cert" +RUN go get -v -tags "sqlite redis memcache cert pam" +RUN go build -tags "sqlite redis memcache cert pam" RUN useradd --shell /bin/bash --system --comment gogits git diff --git a/docker/README.md b/docker/README.md index 4f6f2a2c03..de52acc992 100644 --- a/docker/README.md +++ b/docker/README.md @@ -35,3 +35,16 @@ SSH_PORT = 10022 ``` Full documentation of settings can be found [here](http://gogs.io/docs/advanced/configuration_cheat_sheet.html). + +## Todo +Install page need support set `SSH_PORT` + +## Problems + +If meet error + +``` +checkVersion()] [E] Binary and template file version does not match +``` + +Run `rm -fr /var/gogs/gogs/templates/` will fix. Remember to backup templates file, If you have some modification. |