-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2178 from flipt-io/libsql
feat: libsql experiment
- Loading branch information
Showing
43 changed files
with
973 additions
and
1,020 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
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 |
---|---|---|
|
@@ -15,15 +15,15 @@ jobs: | |
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
go-version: "${{ vars.GO_VERSION }}" | ||
check-latest: true | ||
cache: true | ||
|
||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
version: v1.52.1 | ||
version: v1.54.2 | ||
skip-pkg-cache: true | ||
skip-build-cache: true | ||
args: --timeout=10m | ||
|
@@ -66,7 +66,7 @@ jobs: | |
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
go-version: "${{ vars.GO_VERSION }}" | ||
check-latest: true | ||
cache: true | ||
|
||
|
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
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,11 +1,8 @@ | ||
FROM golang:1.20-alpine3.16 | ||
FROM golang:1.21-alpine3.18 AS build | ||
|
||
WORKDIR /server | ||
WORKDIR /home/flipt | ||
|
||
RUN apk add --update --no-cache git bash gcc build-base binutils-gold \ | ||
openssl \ | ||
ca-certificates \ | ||
postgresql-client | ||
RUN apk add --update --no-cache npm git bash gcc build-base binutils-gold | ||
|
||
RUN git clone https://github.com/magefile/mage && \ | ||
cd mage && \ | ||
|
@@ -17,10 +14,39 @@ COPY ./errors ./errors | |
COPY ./rpc/flipt ./rpc/flipt | ||
COPY ./sdk ./sdk | ||
|
||
RUN go mod download -x | ||
RUN go mod download | ||
|
||
COPY . /home/flipt | ||
|
||
ENV CGO_ENABLED=1 | ||
|
||
RUN mage bootstrap && \ | ||
mage build | ||
|
||
FROM alpine:3.16.2 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.name="flipt" | ||
LABEL org.opencontainers.image.source="https://github.com/flipt-io/flipt" | ||
|
||
RUN apk add --update --no-cache postgresql-client \ | ||
openssl \ | ||
ca-certificates | ||
|
||
RUN mkdir -p /etc/flipt && \ | ||
mkdir -p /var/opt/flipt | ||
mkdir -p /var/opt/flipt && \ | ||
mkdir -p /var/log/flipt | ||
|
||
COPY --from=build /home/flipt/bin/flipt / | ||
COPY config/*.yml /etc/flipt/config/ | ||
|
||
RUN addgroup flipt && \ | ||
adduser -S -D -g '' -G flipt -s /bin/sh flipt && \ | ||
chown -R flipt:flipt /etc/flipt /var/opt/flipt /var/log/flipt | ||
|
||
EXPOSE 8080 | ||
EXPOSE 9000 | ||
EXPOSE 9000 | ||
|
||
USER flipt | ||
|
||
CMD ["./flipt"] |
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,26 @@ | ||
FROM golang:1.21-alpine3.18 | ||
|
||
WORKDIR /server | ||
|
||
RUN apk add --update --no-cache git bash gcc build-base binutils-gold \ | ||
openssl \ | ||
ca-certificates \ | ||
postgresql-client | ||
|
||
RUN git clone https://github.com/magefile/mage && \ | ||
cd mage && \ | ||
go run bootstrap.go | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
COPY ./errors ./errors | ||
COPY ./rpc/flipt ./rpc/flipt | ||
COPY ./sdk ./sdk | ||
|
||
RUN go mod download -x | ||
|
||
RUN mkdir -p /etc/flipt && \ | ||
mkdir -p /var/opt/flipt | ||
|
||
EXPOSE 8080 | ||
EXPOSE 9000 |
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,6 +1,6 @@ | ||
module tools | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/bufbuild/buf v1.9.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,4 +1,4 @@ | ||
FROM golang:1.20-alpine3.16 | ||
FROM golang:1.21-alpine3.18 | ||
|
||
WORKDIR /flipt | ||
|
||
|
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,6 +1,6 @@ | ||
module go.flipt.io/flipt/build | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
code.gitea.io/sdk/gitea v0.15.1 | ||
|
Oops, something went wrong.