]> source.dussan.org Git - gitea.git/commitdiff
add pam for docker
authorcodeskyblue <codeskyblue@gmail.com>
Mon, 17 Aug 2015 13:12:47 +0000 (09:12 -0400)
committercodeskyblue <codeskyblue@gmail.com>
Mon, 17 Aug 2015 13:12:47 +0000 (09:12 -0400)
Dockerfile
docker/README.md

index a6d23cfc87ac421cfe94084044d6aa4575cba823..baba8f19d32f417e12bb21847a236cfacd281912 100644 (file)
@@ -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
 
index 4f6f2a2c03ecb4eaf216476b1c11d5e5ea1b1888..de52acc992286f6aafd9e6de6227282985ddf747 100644 (file)
@@ -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.