-
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.
add uploader and streamer apps, add ristretto cache to session store
- Loading branch information
Showing
26 changed files
with
677 additions
and
138 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/adwski/vidi/internal/app/streamer" | ||
) | ||
|
||
func main() { | ||
os.Exit(streamer.NewApp().Run()) | ||
} |
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,11 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/adwski/vidi/internal/app/uploader" | ||
) | ||
|
||
func main() { | ||
os.Exit(uploader.NewApp().Run()) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM golang:1.21.4-bookworm as builder | ||
|
||
ENV CGO_ENABLED=0 \ | ||
GOOS=linux \ | ||
GO111MODULE=on \ | ||
GOARCH=amd64 \ | ||
GOPATH=/go | ||
|
||
ADD . /build | ||
|
||
WORKDIR /build | ||
|
||
RUN go mod download | ||
RUN <<EOF | ||
go build -o streamer -ldflags '-d -w -s' -tags netgo -installsuffix netgo ./cmd/streamer/*.go | ||
chmod +x /build/streamer | ||
EOF | ||
|
||
|
||
FROM builder as dev | ||
|
||
ENTRYPOINT ["/build/streamer"] | ||
|
||
|
||
FROM gcr.io/distroless/static as release | ||
|
||
WORKDIR / | ||
USER nonroot:nonroot | ||
COPY --from=builder /build/streamer /streamer | ||
|
||
ENTRYPOINT ["/streamer"] |
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 @@ | ||
FROM golang:1.21.4-bookworm as builder | ||
|
||
ENV CGO_ENABLED=0 \ | ||
GOOS=linux \ | ||
GO111MODULE=on \ | ||
GOARCH=amd64 \ | ||
GOPATH=/go | ||
|
||
ADD . /build | ||
|
||
WORKDIR /build | ||
|
||
RUN go mod download | ||
RUN <<EOF | ||
go build -o uploader -ldflags '-d -w -s' -tags netgo -installsuffix netgo ./cmd/uploader/*.go | ||
chmod +x /build/uploader | ||
EOF | ||
|
||
|
||
FROM builder as dev | ||
|
||
ENTRYPOINT ["/build/uploader"] | ||
|
||
|
||
FROM gcr.io/distroless/static as release | ||
|
||
WORKDIR / | ||
USER nonroot:nonroot | ||
COPY --from=builder /build/uploader /uploader | ||
|
||
ENTRYPOINT ["/uploader"] |
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
Oops, something went wrong.