This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prometheus support * New /metric handler with custom metrics Header Authorizer * New Authorizer to restrict access too requests with correct Header/Value Refactoring and Renaming
- Loading branch information
Showing
21 changed files
with
373 additions
and
145 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
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 |
---|---|---|
|
@@ -2,7 +2,9 @@ before: | |
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- | ||
main: ./cmd/furby | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
|
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,13 +1,17 @@ | ||
FROM golang:1.17.1-alpine3.14 | ||
FROM golang:1.17.1-alpine3.14 as build | ||
|
||
WORKDIR /go/src/github.com/dpattmann/furby | ||
|
||
EXPOSE 8443 | ||
|
||
COPY . . | ||
COPY . /go/src/github.com/dpattmann/furby | ||
|
||
RUN apk add -U --no-cache curl jq | ||
|
||
RUN cd /go/src/github.com/dpattmann/furby/cmd/furby ; go install | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -installsuffix 'static' /go/src/github.com/dpattmann/furby/cmd/furby/furby.go | ||
|
||
FROM scratch | ||
|
||
EXPOSE 8443 | ||
|
||
COPY --from=build /go/src/github.com/dpattmann/furby/furby /bin/furby | ||
|
||
ENTRYPOINT [ "/bin/sh", "-c", "/go/src/github.com/dpattmann/furby/start.sh" ] | ||
ENTRYPOINT [ "/bin/furby" ] |
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
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,50 +1,14 @@ | ||
version: '3.7' | ||
|
||
services: | ||
|
||
hydra: | ||
depends_on: | ||
- hydra-migrate | ||
- hydra-postgresd | ||
image: oryd/hydra:v1.10.6 | ||
image: oryd/hydra:v1.10.6-sqlite | ||
environment: | ||
DSN: postgres://hydra:secret@hydra-postgresd:5432/hydra?sslmode=disable | ||
DSN: memory | ||
SECRETS_SYSTEM: hydra-secret-system | ||
STRATEGIES_ACCESS_TOKEN: jwt | ||
ports: | ||
- 4444:4444 | ||
- 4445:4445 | ||
- "4444:4444" | ||
- "4445:4445" | ||
command: serve all --dangerous-force-http | ||
restart: on-failure | ||
logging: | ||
driver: none | ||
|
||
hydra-migrate: | ||
depends_on: | ||
- hydra-postgresd | ||
image: oryd/hydra:v1.10.6 | ||
environment: | ||
- DSN=postgres://hydra:secret@hydra-postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 | ||
command: | ||
migrate sql -e --yes | ||
restart: on-failure | ||
logging: | ||
driver: none | ||
|
||
hydra-postgresd: | ||
image: postgres:12.4 | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- POSTGRES_USER=hydra | ||
- POSTGRES_PASSWORD=secret | ||
- POSTGRES_DB=hydra | ||
logging: | ||
driver: none | ||
|
||
furby: | ||
depends_on: | ||
- hydra | ||
build: | ||
context: . | ||
ports: | ||
- "8443:8443" |
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
Oops, something went wrong.