Skip to content

Commit

Permalink
move more static websites to k8s
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Sep 8, 2024
1 parent d1f4cb4 commit 8f5901e
Show file tree
Hide file tree
Showing 22 changed files with 252 additions and 743 deletions.
4 changes: 3 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,6 @@ all:
BUILD --platform=linux/amd64 +sapientwindex
BUILD --platform=linux/amd64 +todayinmarch2020
BUILD --platform=linux/amd64 +within-website
BUILD --platform=linux/amd64 +xedn
BUILD --platform=linux/amd64 +xedn

BUILD ./kube/alrest/staticsites/caddy1+all
2 changes: 0 additions & 2 deletions cmd/azurda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ The heinous crime that we're doing here is implementing this using Tigris' shado

However this realistically supports anything that support that can implement the S3 GetObject API call. It doesn't even have to be a storage service. You can just make your own server implement this call and then you get everything cached in tigris for you.

[Live demo](https://azurda.fly.dev)

![A screenshot of the demo](./static/img/azurda-screenshot.png)

This works because we're treating Stable Diffusion as a key-value store, where the key is the fabricated prompt based on the MD5 checksum passed in the URL and the value is the generated image from Stable Diffusion.
Expand Down
6 changes: 3 additions & 3 deletions cmd/geminitest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"flag"
"fmt"
"log"
"os"

"github.com/google/generative-ai-go/genai"
"google.golang.org/api/iterator"
Expand All @@ -14,13 +13,14 @@ import (
)

var (
geminiModel = flag.String("gemini-model", "gemini-1.5-flash", "The model to use for generating text")
geminiApiKey = flag.String("gemini-api-key", "", "The Gemini API key")
geminiModel = flag.String("gemini-model", "gemini-1.5-flash", "The model to use for generating text")
)

func main() {
internal.HandleStartup()
ctx := context.Background()
client, err := genai.NewClient(ctx, option.WithAPIKey(os.Getenv("GEMINI_API_KEY")))
client, err := genai.NewClient(ctx, option.WithAPIKey(*geminiApiKey))
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 0 additions & 2 deletions cmd/la-baujmi/.gitignore

This file was deleted.

66 changes: 0 additions & 66 deletions cmd/la-baujmi/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/la-baujmi/const.go

This file was deleted.

23 changes: 0 additions & 23 deletions cmd/la-baujmi/corpus.txt

This file was deleted.

210 changes: 0 additions & 210 deletions cmd/la-baujmi/fact.go

This file was deleted.

Loading

0 comments on commit 8f5901e

Please sign in to comment.