Skip to content

Commit

Permalink
Added [email protected] and [email protected] formula files and upd…
Browse files Browse the repository at this point in the history
…ated aliases (#107)

Co-authored-by: Yugabyte CI <[email protected]>
  • Loading branch information
makalaaneesh and Yugabyte CI authored Oct 15, 2024
1 parent c1f7d02 commit e6350eb
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Aliases/debezium
2 changes: 1 addition & 1 deletion Aliases/yb-voyager
16 changes: 16 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class DebeziumAT252183 < Formula
desc "Debezium is an open source distributed platform for change data capture"
homepage "https://github.com/yugabyte/yb-voyager/"
url "https://github.com/yugabyte/yb-voyager/releases/download/yb-voyager%2Fv1.8.3/debezium-server.tar.gz"
version "2.5.2-1.8.3"
sha256 "ad49784c7065c9125f91565453127042b0f72e1fb3dff7bc94b5c05af328761f"
license "Apache-2.0"
depends_on "maven" => :build
depends_on "java11" => :build

def install
ENV.deparallelize
(prefix/"debezium-server").mkdir
cp_r ".", prefix/"debezium-server"
end
end
36 changes: 36 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class YbVoyagerAT183 < Formula
desc "YugabyteDB's migration tool"
homepage "https://github.com/yugabyte/yb-voyager/"
url "https://github.com/yugabyte/yb-voyager/archive/refs/tags/yb-voyager/v1.8.3.tar.gz"
sha256 "55aff7a43c8417e3c3063df4c81e50e4e9ec1819451d05438961ff5c8c3bb5d2"
version "1.8.3"
license "Apache-2.0"
depends_on "go" => :build
depends_on "postgresql@16"
depends_on "sqlite"
depends_on "yugabyte/tap/[email protected]"

def install
ENV.deparallelize
Dir.chdir("yb-voyager") do
system "go", "build"
bin.install "yb-voyager"
end
Dir.chdir("yb-voyager/src/srcdb/data") do
(prefix/"etc/").mkdir
(prefix/"etc/yb-voyager/").mkdir
cp_r "pg_dump-args.ini", prefix/"etc/yb-voyager/pg_dump-args.ini"
cp_r "gather-assessment-metadata", prefix/"etc/yb-voyager/"
end
Dir.chdir("guardrails-scripts") do
(prefix/"opt/").mkdir
(prefix/"opt/yb-voyager").mkdir
(prefix/"opt/yb-voyager/guardrails-scripts").mkdir
cp_r ".", prefix/"opt/yb-voyager/guardrails-scripts"
end
end

test do
system "#{bin}/yb-voyager", "version"
end
end

0 comments on commit e6350eb

Please sign in to comment.