forked from krakend/krakend-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,512 additions
and
1,958 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version = 1 | ||
|
||
[[analyzers]] | ||
name = "shell" | ||
enabled = true | ||
|
||
[[analyzers]] | ||
name = "go" | ||
enabled = true | ||
|
||
[analyzers.meta] | ||
import_root = "github.com/devopsfaith/krakend-ce" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Test | ||
run: make test |
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,31 @@ | ||
name: 'Lock Threads' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: lock | ||
|
||
jobs: | ||
action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v3 | ||
with: | ||
pr-inactive-days: '90' | ||
issue-inactive-days: '90' | ||
add-issue-labels: 'locked' | ||
issue-comment: > | ||
This issue was marked as resolved a long time ago and now has been | ||
automatically locked as there has not been any recent activity after it. | ||
You can still open a new issue and reference this link. | ||
pr-comment: > | ||
This pull request was marked as resolved a long time ago and now has been | ||
automatically locked as there has not been any recent activity after it. | ||
You can still open a new issue and reference this link. |
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,4 +1,6 @@ | ||
/vendor | ||
bench_res | ||
sec_scan | ||
krakend | ||
krakend-alpine | ||
cmd/krakend-integration/krakend-integration | ||
|
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
FROM debian:buster-slim | ||
ARG GOLANG_VERSION | ||
ARG ALPINE_VERSION | ||
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} as builder | ||
|
||
LABEL maintainer="[email protected]" | ||
RUN apk --no-cache add make gcc musl-dev binutils-gold | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y ca-certificates && \ | ||
update-ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
ADD krakend /usr/bin/krakend | ||
RUN make build | ||
|
||
RUN useradd -r -c "KrakenD user" -U krakend | ||
|
||
USER krakend | ||
FROM alpine:${ALPINE_VERSION} | ||
|
||
VOLUME [ "/etc/krakend" ] | ||
LABEL maintainer="[email protected]" | ||
|
||
RUN apk add --no-cache ca-certificates && \ | ||
adduser -u 1000 -S -D -H krakend && \ | ||
mkdir /etc/krakend && \ | ||
echo '{ "version": 3 }' > /etc/krakend/krakend.json | ||
|
||
COPY --from=builder /app/krakend /usr/bin/krakend | ||
|
||
USER 1000 | ||
|
||
WORKDIR /etc/krakend | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.