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

indexify-server 0.2.6 (new-formula) #195789

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions Formula/i/indexify-server.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class IndexifyServer < Formula
desc "CLI for Indexify, a realtime serving engine for Data-Intensive Generative AI"
homepage "https://www.tensorlake.ai"
url "https://github.com/tensorlakeai/indexify.git",
tag: "v0.2.6",
revision: "6ef0c395b5ba253575a2ee924e6cf726d9db239e"
license "Apache-2.0"

def install
os = OS.mac? ? "darwin" : "linux"
arch = Hardware::CPU.arm? ? "arm64" : "amd64"
binary_url = "https://github.com/tensorlakeai/indexify/releases/download/v#{version}/indexify-server-#{version}-#{os}-#{arch}"

system "curl", "-L", "-o", "indexify-server", binary_url
chmod "a+x", "indexify-server"

bin.install "indexify-server"

system "curl", "-X", "POST",
"https://tensorlake.ai/api/analytics",
"-H", "Content-Type: application/json",
"-d", "{\"event\": \"indexify_download\", \"platform\": \"#{os}\", \"machine\": \"#{arch}\"}",
"--max-time", "1", "-s"
end

test do

Check failure on line 26 in Formula/i/indexify-server.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew test --verbose indexify-server` failed on macOS Sonoma (14)!

/usr/local/Homebrew/Library/Homebrew/test.rb:54:in `<main>'

Check failure on line 26 in Formula/i/indexify-server.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew test --verbose indexify-server` failed on macOS Ventura (13)!

/usr/local/Homebrew/Library/Homebrew/test.rb:54:in `<main>'
system bin/"indexify-server", "--version"
end
end
Loading