This commit is contained in:
parent
e3df23a09e
commit
9f538e0477
|
@ -3,7 +3,7 @@ MAINTAINER Liang Ding <dl88250@gmail.com>
|
||||||
|
|
||||||
ADD . /wide/gogogo/src/github.com/b3log/wide
|
ADD . /wide/gogogo/src/github.com/b3log/wide
|
||||||
|
|
||||||
RUN useradd wide && chown -R wide:wide /wide && useradd wide_runner
|
RUN useradd runner
|
||||||
|
|
||||||
ENV GOROOT /usr/src/go
|
ENV GOROOT /usr/src/go
|
||||||
ENV GOPATH /wide/gogogo
|
ENV GOPATH /wide/gogogo
|
||||||
|
|
|
@ -114,8 +114,8 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
Gid: 0,
|
Gid: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1001, Size: 1}}
|
cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1000, Size: 1}}
|
||||||
cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1001, Size: 1}}
|
cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1000, Size: 1}}
|
||||||
|
|
||||||
stdout, err := cmd.StdoutPipe()
|
stdout, err := cmd.StdoutPipe()
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
|
Loading…
Reference in New Issue