This repository has been archived by the owner on May 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vgo for dependency management (#72)
* fix dockerfile path * dockerfile not building * use vgo in Dockerfile * consistent dockerfiles * use v0.0.1 for cursor, envy, and my-go-utils * Makefile
- Loading branch information
1 parent
ac8f08c
commit 1681a44
Showing
11 changed files
with
101 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
bin/* | ||
go.sum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
FROM golang:1.10 as builder | ||
ADD . /go/src/github.com/hanakoa/alpaca | ||
WORKDIR /go/src/github.com/hanakoa/alpaca/services/auth | ||
RUN go get ./... && \ | ||
CGO_ENABLED=0 GOOS=linux go build -a -o ./bin/alpaca-auth . | ||
# won't need to go get vgo in golang 1.11 | ||
RUN go get -u -v golang.org/x/vgo && \ | ||
CGO_ENABLED=0 GOOS=linux vgo build -a -o ./bin/alpaca-auth . | ||
|
||
FROM alpine:latest | ||
#ENV ALPACA_USER="alpaca" \ | ||
# ALPACA_UID="8080" \ | ||
# ALPACA_GROUP="alpaca" \ | ||
# ALPACA_GID="8080" | ||
RUN apk --no-cache add ca-certificates | ||
#&& \ | ||
# addgroup -S -g $ALPACA_GID $ALPACA_GROUP && \ | ||
# adduser -S -u $ALPACA_UID -G $ALPACA_GROUP $ALPACA_USER | ||
WORKDIR /root/ | ||
COPY --from=builder /go/src/github.com/hanakoa/alpaca/services/auth/bin/alpaca-auth . | ||
#USER $ALPACA_USER | ||
CMD ["./alpaca-auth"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module github.com/hanakoa/alpaca/services/auth | ||
|
||
require ( | ||
github.com/TeslaGov/cursor v0.0.1 | ||
github.com/TeslaGov/envy v0.0.1 | ||
github.com/badoux/checkmail v0.0.0-20180430153108-0755fe2dc241 | ||
github.com/bwmarrin/snowflake v0.0.0-20180412010544-68117e6bbede | ||
github.com/dgrijalva/jwt-go v0.0.0-20180308231308-06ea1031745c | ||
github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188 | ||
github.com/golang/protobuf v1.1.0 | ||
github.com/google/uuid v0.0.0-20171129191014-dec09d789f3d | ||
github.com/gorilla/handlers v1.3.0 | ||
github.com/gorilla/mux v1.6.2 | ||
github.com/gorilla/schema v1.0.2 | ||
github.com/hanakoa/alpaca v0.0.0-20180703023732-ac8f08ce0dab | ||
github.com/jtolds/gls v0.0.0-20170503224851-77f18212c9c7 | ||
github.com/kevinmichaelchen/my-go-utils v0.0.1 | ||
github.com/lib/pq v0.0.0-20180523175426-90697d60dd84 | ||
github.com/nbutton23/zxcvbn-go v0.0.0-20180510020640-780cc39d5c78 | ||
github.com/sfreiberg/gotwilio v0.0.0-20180612161623-8fb7259ba8bf | ||
github.com/smartystreets/assertions v0.0.0-20180607162144-eb5b59917fa2 | ||
github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a | ||
github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8 | ||
github.com/ttacon/builder v0.0.0-20170518171403-c099f663e1c2 | ||
github.com/ttacon/libphonenumber v1.0.0 | ||
golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8 | ||
golang.org/x/net v0.0.0-20180702212446-ed29d75add3d | ||
golang.org/x/text v0.3.0 | ||
google.golang.org/genproto v0.0.0-20180627194029-ff3583edef7d | ||
google.golang.org/grpc v1.13.0 | ||
gopkg.in/guregu/null.v3 v3.3.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
FROM golang:1.10 as builder | ||
ADD . /go/src/github.com/hanakoa/alpaca | ||
WORKDIR /go/src/github.com/hanakoa/alpaca/services/email | ||
RUN go get ./... && \ | ||
CGO_ENABLED=0 GOOS=linux go build -a -o ./bin/alpaca-email . | ||
# won't need to go get vgo in golang 1.11 | ||
RUN go get -u -v golang.org/x/vgo && \ | ||
CGO_ENABLED=0 GOOS=linux vgo build -a -o ./bin/alpaca-email . | ||
|
||
FROM alpine:latest | ||
#ENV ALPACA_USER="alpaca" \ | ||
# ALPACA_UID="8080" \ | ||
# ALPACA_GROUP="alpaca" \ | ||
# ALPACA_GID="8080" | ||
RUN apk --no-cache add ca-certificates | ||
#&& \ | ||
# addgroup -S -g $ALPACA_GID $ALPACA_GROUP && \ | ||
# adduser -S -u $ALPACA_UID -G $ALPACA_GROUP $ALPACA_USER | ||
WORKDIR /root/ | ||
COPY --from=builder /go/src/github.com/hanakoa/alpaca/services/email/bin/alpaca-email . | ||
#USER $ALPACA_USER | ||
CMD ["./alpaca-email"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
FROM golang:1.10 as builder | ||
ADD . /go/src/github.com/hanakoa/alpaca | ||
WORKDIR /go/src/github.com/hanakoa/alpaca/services/mfa | ||
RUN go get ./... && \ | ||
CGO_ENABLED=0 GOOS=linux go build -a -o ./bin/alpaca-mfa . | ||
# won't need to go get vgo in golang 1.11 | ||
RUN go get -u -v golang.org/x/vgo && \ | ||
CGO_ENABLED=0 GOOS=linux vgo build -a -o ./bin/alpaca-mfa . | ||
|
||
FROM alpine:latest | ||
#ENV ALPACA_USER="alpaca" \ | ||
# ALPACA_UID="8080" \ | ||
# ALPACA_GROUP="alpaca" \ | ||
# ALPACA_GID="8080" | ||
RUN apk --no-cache add ca-certificates | ||
#&& \ | ||
# addgroup -S -g $ALPACA_GID $ALPACA_GROUP && \ | ||
# adduser -S -u $ALPACA_UID -G $ALPACA_GROUP $ALPACA_USER | ||
WORKDIR /root/ | ||
COPY --from=builder /go/src/github.com/hanakoa/alpaca/services/mfa/bin/alpaca-mfa . | ||
#USER $ALPACA_USER | ||
CMD ["./alpaca-mfa"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module github.com/hanakoa/alpaca/services/mfa | ||
|
||
require ( | ||
github.com/TeslaGov/envy v0.0.1 | ||
github.com/bwmarrin/snowflake v0.0.0-20180412010544-68117e6bbede | ||
github.com/dgrijalva/jwt-go v0.0.0-20180308231308-06ea1031745c | ||
github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188 | ||
github.com/golang/protobuf v1.1.0 | ||
github.com/google/uuid v0.0.0-20171129191014-dec09d789f3d | ||
github.com/gorilla/handlers v1.3.0 | ||
github.com/gorilla/mux v1.6.2 | ||
github.com/gorilla/schema v1.0.2 | ||
github.com/kevinmichaelchen/my-go-utils v0.0.1 | ||
github.com/lib/pq v0.0.0-20180523175426-90697d60dd84 | ||
github.com/sfreiberg/gotwilio v0.0.0-20180612161623-8fb7259ba8bf | ||
github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8 | ||
golang.org/x/net v0.0.0-20180702212446-ed29d75add3d | ||
golang.org/x/text v0.3.0 | ||
google.golang.org/genproto v0.0.0-20180627194029-ff3583edef7d | ||
google.golang.org/grpc v1.13.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
FROM golang:1.10 as builder | ||
ADD . /go/src/github.com/hanakoa/alpaca | ||
WORKDIR /go/src/github.com/hanakoa/alpaca/services/password-reset | ||
RUN go get ./... && \ | ||
CGO_ENABLED=0 GOOS=linux go build -a -o ./bin/alpaca-password-reset . | ||
# won't need to go get vgo in golang 1.11 | ||
RUN go get -u -v golang.org/x/vgo && \ | ||
CGO_ENABLED=0 GOOS=linux vgo build -a -o ./bin/alpaca-password-reset . | ||
|
||
FROM alpine:latest | ||
#ENV ALPACA_USER="alpaca" \ | ||
# ALPACA_UID="8080" \ | ||
# ALPACA_GROUP="alpaca" \ | ||
# ALPACA_GID="8080" | ||
RUN apk --no-cache add ca-certificates | ||
#&& \ | ||
# addgroup -S -g $ALPACA_GID $ALPACA_GROUP && \ | ||
# adduser -S -u $ALPACA_UID -G $ALPACA_GROUP $ALPACA_USER | ||
WORKDIR /root/ | ||
COPY --from=builder /go/src/github.com/hanakoa/alpaca/services/password-reset/bin/alpaca-password-reset . | ||
#USER $ALPACA_USER | ||
CMD ["./alpaca-password-reset"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module github.com/hanakoa/alpaca/services/password-reset | ||
|
||
require ( | ||
github.com/TeslaGov/cursor v0.0.1 | ||
github.com/TeslaGov/envy v0.0.1 | ||
github.com/badoux/checkmail v0.0.0-20180430153108-0755fe2dc241 | ||
github.com/bwmarrin/snowflake v0.0.0-20180412010544-68117e6bbede | ||
github.com/dgrijalva/jwt-go v0.0.0-20180308231308-06ea1031745c | ||
github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188 | ||
github.com/golang/protobuf v1.1.0 | ||
github.com/google/uuid v0.0.0-20171129191014-dec09d789f3d | ||
github.com/gorilla/handlers v1.3.0 | ||
github.com/gorilla/mux v1.6.2 | ||
github.com/gorilla/schema v1.0.2 | ||
github.com/hanakoa/alpaca v0.0.0-20180703023732-ac8f08ce0dab | ||
github.com/kevinmichaelchen/my-go-utils v0.0.1 | ||
github.com/lib/pq v0.0.0-20180523175426-90697d60dd84 | ||
github.com/nbutton23/zxcvbn-go v0.0.0-20180510020640-780cc39d5c78 | ||
github.com/sfreiberg/gotwilio v0.0.0-20180612161623-8fb7259ba8bf | ||
github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8 | ||
github.com/ttacon/builder v0.0.0-20170518171403-c099f663e1c2 | ||
github.com/ttacon/libphonenumber v1.0.0 | ||
golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8 | ||
golang.org/x/net v0.0.0-20180702212446-ed29d75add3d | ||
golang.org/x/text v0.3.0 | ||
google.golang.org/genproto v0.0.0-20180627194029-ff3583edef7d | ||
google.golang.org/grpc v1.13.0 | ||
gopkg.in/guregu/null.v3 v3.3.0 | ||
) |