build & package url changes just so i can release this myself right now
This commit is contained in:
parent
c738c86fd1
commit
23469ec56d
|
@ -1,10 +1,10 @@
|
||||||
FROM golang:alpine
|
FROM golang:alpine
|
||||||
|
|
||||||
COPY . /go/src/github.com/tiagoapimenta/nginx-ldap-auth
|
COPY . /go/src/github.com/gered/nginx-ldap-auth
|
||||||
|
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
RUN cd /go/src/github.com/tiagoapimenta/nginx-ldap-auth && \
|
RUN cd /go/src/github.com/gered/nginx-ldap-auth && \
|
||||||
apk add --no-cache git && \
|
apk add --no-cache git && \
|
||||||
go get -u gopkg.in/yaml.v2 && \
|
go get -u gopkg.in/yaml.v2 && \
|
||||||
go get -u gopkg.in/ldap.v2 && \
|
go get -u gopkg.in/ldap.v2 && \
|
||||||
|
|
4
build
4
build
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
base='docker.io/tpimenta/nginx-ldap-auth'
|
base='docker.io/gered/nginx-ldap-auth'
|
||||||
version='v1.0.5'
|
version='v1.0.6'
|
||||||
image="$base:$version"
|
image="$base:$version"
|
||||||
|
|
||||||
atexit() {
|
atexit() {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package group
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/ldap"
|
"github.com/gered/nginx-ldap-auth/ldap"
|
||||||
|
|
||||||
gldap "gopkg.in/ldap.v2"
|
gldap "gopkg.in/ldap.v2"
|
||||||
)
|
)
|
||||||
|
|
10
main/main.go
10
main/main.go
|
@ -4,11 +4,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/data"
|
"github.com/gered/nginx-ldap-auth/data"
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/group"
|
"github.com/gered/nginx-ldap-auth/group"
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/ldap"
|
"github.com/gered/nginx-ldap-auth/ldap"
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/rule"
|
"github.com/gered/nginx-ldap-auth/rule"
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/user"
|
"github.com/gered/nginx-ldap-auth/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/rule"
|
"github.com/gered/nginx-ldap-auth/rule"
|
||||||
)
|
)
|
||||||
|
|
||||||
func startServer(service *rule.Service, server, path, message string) error {
|
func startServer(service *rule.Service, server, path, message string) error {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/data"
|
"github.com/gered/nginx-ldap-auth/data"
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/group"
|
"github.com/gered/nginx-ldap-auth/group"
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/user"
|
"github.com/gered/nginx-ldap-auth/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Service struct {
|
type Service struct {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package user
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/tiagoapimenta/nginx-ldap-auth/ldap"
|
"github.com/gered/nginx-ldap-auth/ldap"
|
||||||
|
|
||||||
gldap "gopkg.in/ldap.v2"
|
gldap "gopkg.in/ldap.v2"
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue