forked from gitea/gitea
1
0
Fork 0

Merge pull request #1497 from codeskyblue/develop

add pam for docker
This commit is contained in:
无闻 2015-08-17 21:18:06 +08:00
commit 862477e3a1
2 changed files with 16 additions and 3 deletions

View 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 echo "deb http://ftp.debian.org/debian/ wheezy-backports main" >> /etc/apt/sources.list
RUN apt-get update 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 # set the working directory and add current stuff
COPY . /gopath/src/github.com/gogits/gogs/ COPY . /gopath/src/github.com/gogits/gogs/
WORKDIR /gopath/src/github.com/gogits/gogs/ WORKDIR /gopath/src/github.com/gogits/gogs/
RUN go get -v -tags "sqlite redis memcache cert" RUN go get -v -tags "sqlite redis memcache cert pam"
RUN go build -tags "sqlite redis memcache cert" RUN go build -tags "sqlite redis memcache cert pam"
RUN useradd --shell /bin/bash --system --comment gogits git RUN useradd --shell /bin/bash --system --comment gogits git

View 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). 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.