forked from Deuxfleurs/bottin
7 changed files with 55 additions and 55 deletions
@ -1,3 +1,3 @@ |
|||
gobottin |
|||
gobottin.static |
|||
bottin |
|||
bottin.static |
|||
config.json |
|||
|
@ -1,5 +1,5 @@ |
|||
FROM scratch |
|||
|
|||
ADD gobottin.static /gobottin |
|||
ADD bottin.static /bottin |
|||
|
|||
ENTRYPOINT ["/gobottin"] |
|||
ENTRYPOINT ["/bottin"] |
|||
|
@ -1,15 +1,15 @@ |
|||
all: gobottin |
|||
all: bottin |
|||
|
|||
gobottin: main.go ssha.go util.go acl.go read.go write.go |
|||
bottin: main.go ssha.go util.go acl.go read.go write.go |
|||
go get -d -v |
|||
go build -v |
|||
go build -v -o bottin |
|||
|
|||
gobottin.static: main.go ssha.go util.go acl.go read.go write.go |
|||
bottin.static: main.go ssha.go util.go acl.go read.go write.go |
|||
go get -d -v |
|||
CGO_ENABLED=0 GOOS=linux go build -a -v -o gobottin.static |
|||
CGO_ENABLED=0 GOOS=linux go build -a -v -o bottin.static |
|||
|
|||
docker: gobottin.static |
|||
docker build -t lxpz/gobottin_amd64:$(TAG) . |
|||
docker push lxpz/gobottin_amd64:$(TAG) |
|||
docker tag lxpz/gobottin_amd64:$(TAG) lxpz/gobottin_amd64:latest |
|||
docker push lxpz/gobottin_amd64:latest |
|||
docker: bottin.static |
|||
docker build -t lxpz/bottin_amd64:$(TAG) . |
|||
docker push lxpz/bottin_amd64:$(TAG) |
|||
docker tag lxpz/bottin_amd64:$(TAG) lxpz/bottin_amd64:latest |
|||
docker push lxpz/bottin_amd64:latest |
|||
|
@ -1,13 +1,13 @@ |
|||
{ |
|||
"suffix": "dc=gobottin,dc=eu", |
|||
"suffix": "dc=bottin,dc=eu", |
|||
"bind": "127.0.0.1:1389", |
|||
"acl": [ |
|||
"ANONYMOUS::bind:*,ou=users,dc=gobottin,dc=eu:", |
|||
"ANONYMOUS::bind:cn=admin,dc=gobottin,dc=eu:", |
|||
"*,dc=gobottin,dc=eu::read:*:* !userpassword", |
|||
"ANONYMOUS::bind:*,ou=users,dc=bottin,dc=eu:", |
|||
"ANONYMOUS::bind:cn=admin,dc=bottin,dc=eu:", |
|||
"*,dc=bottin,dc=eu::read:*:* !userpassword", |
|||
"*::read modify:SELF:*", |
|||
"cn=admin,dc=gobottin,dc=eu::read add modify delete:*:*", |
|||
"*:cn=admin,ou=groups,dc=gobottin,dc=eu:read add modify delete:*:*" |
|||
"cn=admin,dc=bottin,dc=eu::read add modify delete:*:*", |
|||
"*:cn=admin,ou=groups,dc=bottin,dc=eu:read add modify delete:*:*" |
|||
] |
|||
} |
|||
|
|||
|
Loading…
Reference in new issue