Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flagr Current #1

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
6a66564
Build docker image for linux/arm64 (#515)
foxdalas Dec 22, 2022
7b36fd7
Upgrade docker base (#516)
zhouzhuojie Jan 2, 2023
595b698
Fix demo website and use railway to host (#517)
zhouzhuojie Jan 2, 2023
29bc19a
Prepare 1.1.15 (#519)
nothing0012 Jan 13, 2023
36fdc47
bump docker action version (#520)
kewei5zhang Jan 13, 2023
8777194
Add edited cd_docker event (#521)
nothing0012 Jan 13, 2023
034d019
Revert "Add edited cd_docker event (#521)" (#522)
nothing0012 Jan 13, 2023
7bc32be
Use github native release note generator (#523)
nothing0012 Jan 13, 2023
ad810f8
Big bump on all the go deps (#524)
nothing0012 Jan 18, 2023
347a36d
Bump golang.org/x/net from 0.5.0 to 0.7.0 (#528)
dependabot[bot] Apr 14, 2023
10f5e51
Bump golang version to 1.20 (#537)
nothing0012 Jun 25, 2023
2eee864
Set correct error env when put distributions (#538)
okomio Jun 28, 2023
9ac5043
Add cookie subject extractor (#536)
nothing0012 Jun 30, 2023
8bfa0cc
Add option FLAGR_RECORDER_KAFKA_PARTITION_KEY_ENABLED (#535)
paragor Jun 30, 2023
65a3601
Add CaFile for KafkaRecorder when simpleSSL enabled (#534)
paragor Jun 30, 2023
3f4020e
Prepare 1.1.16 (#539)
nothing0012 Jun 30, 2023
1df622b
Bump google.golang.org/grpc from 1.52.0 to 1.53.0 (#541)
dependabot[bot] Jul 7, 2023
37eba13
Bump word-wrap from 1.2.3 to 1.2.4 in /browser/flagr-ui (#543)
dependabot[bot] Jul 20, 2023
a4ba112
Bump to go 1.21 (#544)
nothing0012 Sep 2, 2023
ec08f1c
Install the CodeSee workflow. Learn more at https://docs.codesee.io (…
Sep 3, 2023
1153f03
Support snapshot pagination (#547)
jamessalvatore Oct 5, 2023
161cc05
Bump golang.org/x/net from 0.7.0 to 0.17.0 (#550)
dependabot[bot] Oct 12, 2023
b143c3a
Add sort parameter (#549)
jamessalvatore Oct 15, 2023
acddd31
Simple fmt of swagger gen (#551)
nothing0012 Oct 15, 2023
30ff52c
Update try-flagr url (#552)
zhouzhuojie Oct 16, 2023
decc484
Bump google.golang.org/grpc from 1.53.0 to 1.56.3 (#555)
dependabot[bot] Oct 26, 2023
fcc74ae
Keep the container image minimal (#557)
sks Nov 7, 2023
3f9f613
Improve JSON (de)serialization performance with go-json (#559)
foxdalas Dec 7, 2023
a2c5f9b
Change to use pure golang sqlite driver for better portability (#564)
nothing0012 Jan 1, 2024
3e4fb4a
Add cors max age (#563)
nothing0012 Jan 1, 2024
2e3a36b
UI search by key (#561)
serh11d Jan 1, 2024
5c5d80e
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#562)
dependabot[bot] Jan 1, 2024
574673a
Bump axios from 0.21.4 to 1.6.0 in /browser/flagr-ui (#558)
dependabot[bot] Jan 1, 2024
0970381
Bump browserify-sign from 4.2.1 to 4.2.2 in /browser/flagr-ui (#556)
dependabot[bot] Jan 1, 2024
fddfb54
Fix npm audit (#565)
nothing0012 Jan 1, 2024
f0c6d78
Prepare 1.1.17 (#566)
nothing0012 Jan 1, 2024
8b4efd5
Bump follow-redirects from 1.15.1 to 1.15.4 in /browser/flagr-ui (#568)
dependabot[bot] Jan 10, 2024
a833b3b
Downgrade gorm to fix unscoped preload (#570)
nothing0012 Jan 26, 2024
2fee6eb
Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 (#572)
dependabot[bot] Mar 14, 2024
c05545a
Bump github.com/jackc/pgx/v5 from 5.2.0 to 5.5.4 (#573)
dependabot[bot] Mar 15, 2024
532dfaf
Bump follow-redirects from 1.15.4 to 1.15.6 in /browser/flagr-ui (#574)
dependabot[bot] Mar 26, 2024
770461b
Bump ip from 1.1.8 to 1.1.9 in /browser/flagr-ui (#571)
dependabot[bot] Mar 26, 2024
aeba832
Bump golang.org/x/net from 0.17.0 to 0.23.0 (#578)
dependabot[bot] Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/workflows/cd_changelog.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/cd_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> "$GITHUB_ENV"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Publish Docker SemVer Tag
uses: elgohr/Publish-Docker-Github-Action@3.04
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: openflagr/flagr
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
platforms: linux/amd64,linux/arm64
tags: "latest,${{ env.RELEASE_VERSION }}"
23 changes: 0 additions & 23 deletions .github/workflows/cd_heroku.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.19
go-version: 1.21
- name: Check out source code
uses: actions/checkout@v1
- run: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/codesee-arch-diagram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow was added by CodeSee. Learn more at https://codesee.io/
# This is v2.0 of this workflow file
on:
push:
branches:
- main
pull_request_target:
types: [opened, synchronize, reopened]

name: CodeSee

permissions: read-all

jobs:
codesee:
runs-on: ubuntu-latest
continue-on-error: true
name: Analyze the repo with CodeSee
steps:
- uses: Codesee-io/codesee-action@v2
with:
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
codesee-url: https://app.codesee.io
727 changes: 1 addition & 726 deletions CHANGELOG.md

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ RUN make build_ui
######################################
# Prepare go_builder
######################################
FROM golang:1.19.0-alpine3.16 as go_builder
FROM golang:1.21-alpine as go_builder
WORKDIR /go/src/github.com/openflagr/flagr

RUN apk add --no-cache git make build-base
ADD . .
RUN make build

VOLUME ["/data"]
FROM alpine

COPY --from=go_builder /go/src/github.com/openflagr/flagr/flagr .

ENV HOST=0.0.0.0
ENV PORT=18000
ENV FLAGR_DB_DBDRIVER=sqlite3
Expand All @@ -33,4 +36,5 @@ USER appuser
ADD --chown=appuser:appgroup ./buildscripts/demo_sqlite3.db /data/demo_sqlite3.db

EXPOSE 18000
CMD ./flagr

CMD "./flagr"
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ vendor:

build:
@echo "Building Flagr Server to $(PWD)/flagr ..."
@CGO_ENABLED=1 go build -o $(PWD)/flagr github.com/openflagr/flagr/swagger_gen/cmd/flagr-server
@go build -o $(PWD)/flagr github.com/openflagr/flagr/swagger_gen/cmd/flagr-server

build_ui:
@echo "Building Flagr UI ..."
Expand All @@ -44,8 +44,8 @@ start:
gen: api_docs swagger

deps:
@go install github.com/go-swagger/go-swagger/cmd/swagger@v0.29.0
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
@go install github.com/go-swagger/go-swagger/cmd/swagger@v0.30.5
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3

serve_docs:
@npm install -g docsify-cli@4
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ docker run -it -p 18000:18000 ghcr.io/openflagr/flagr
open localhost:18000
```

<!-- TODO: change a new demo flagr website -->
Or try it on [https://try-openflagr.herokuapp.com](https://try-openflagr.herokuapp.com), it may take a while for a cold start.
Or try it on [https://try-flagr.onrender.com](https://try-flagr.onrender.com),
it may take a while for a cold start, and every commit to the `main` branch will trigger
a redeployment of the demo website.

```
curl --request POST \
--url https://try-openflagr.herokuapp.com/api/v1/evaluation \
--url https://try-flagr.onrender.com/api/v1/evaluation \
--header 'content-type: application/json' \
--data '{
"entityID": "127",
Expand Down
Loading