[jira] [Commented] (IGNITE-17489) Packaging: Brew package

2022-10-17 Thread Aleksandr (Jira)


[ 
https://issues.apache.org/jira/browse/IGNITE-17489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17618930#comment-17618930
 ] 

Aleksandr commented on IGNITE-17489:


created follow-up ticket https://issues.apache.org/jira/browse/IGNITE-17914

> Packaging: Brew package
> ---
>
> Key: IGNITE-17489
> URL: https://issues.apache.org/jira/browse/IGNITE-17489
> Project: Ignite
>  Issue Type: New Feature
>  Components: build
>Reporter: Mikhail Pochatkin
>Assignee: Aleksandr
>Priority: Major
>  Labels: ignite-3
>  Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IGNITE-17489) Packaging: Brew package

2022-10-12 Thread Aleksandr (Jira)


[ 
https://issues.apache.org/jira/browse/IGNITE-17489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17616501#comment-17616501
 ] 

Aleksandr commented on IGNITE-17489:


class Ignite3db < Formula
  desc ""
  homepage ""
  url "file:///../build/distributions/ignite3-db-3.0.0-SNAPSHOT.zip"
  sha256 "a1b299cb2d81a168b89f7d9af133923c2463b547bf9e37eea634ab96defca2d9"
  license "Apache 2.0"


  def install
lib.install Dir["lib/*.jar"]
bin.install "bin/ignite3-db.sh"
(prefix/"etc/").install Dir["etc/*"]
(var/"log/#{name}").mkpath
(var/"#{name}/work").mkpath

inreplace "#{bin}/ignite3-db.sh" do |s|
  s.gsub! "  exec ${CMD} >>${LOG_OUT_FILE:-/dev/null} 2>&1 < /dev/null & 
jobs -p > ${IGNITE_HOME}/pid", "  exec ${CMD}"
end

inreplace "#{prefix/"etc"}/bootstrap-config" do |s|
  s.gsub! "WORK_PATH=$IGNITE_HOME/work", "WORK_PATH=#{var}/#{name}/work"
end

inreplace "#{prefix/"etc"}/ignite.java.util.logging.properties" do |s|
  s.gsub! "java.util.logging.FileHandler.pattern = 
@LOG_DIR@/ignite3db-%g.log", "java.util.logging.FileHandler.pattern = 
#{var}/log/#{name}/ignite3db-%g.log"
end
  end

  test do
system "true"
  end

  def ignite3_db_log_path
var/"log/ignite3-db/#{name}.log"
  end

  service do
#environment_variables IGNITE_HOME: opt_prefix
run [opt_bin/"ignite3-db.sh", "start"]
keep_alive true
log_path f.ignite3_db_log_path
error_log_path f.ignite3_db_log_path
working_dir opt_prefix
  end
end

> Packaging: Brew package
> ---
>
> Key: IGNITE-17489
> URL: https://issues.apache.org/jira/browse/IGNITE-17489
> Project: Ignite
>  Issue Type: New Feature
>  Components: build
>Reporter: Mikhail Pochatkin
>Assignee: Aleksandr
>Priority: Major
>  Labels: ignite-3
>  Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IGNITE-17489) Packaging: Brew package

2022-10-12 Thread Aleksandr (Jira)


[ 
https://issues.apache.org/jira/browse/IGNITE-17489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17616500#comment-17616500
 ] 

Aleksandr commented on IGNITE-17489:


class Ignite3cli < Formula
  desc ""
  homepage ""
  url "file:///packaging/build/distributions/ignite3-cli-3.0.0-SNAPSHOT.zip"
  sha256 "a53bf7c02f958ca9cb1b54b216139196b2044152b7a49b551ea5d16a090a6408"

  license "Apache 2.0"

  def install
rm_f Dir["bin/*.bat"]

lib.install Dir["lib/*.jar"]
bin.install "bin/ignite3cli"
bash_completion.install "bin/ignite_completion.sh" => "ignite3cli"
  end

  def caveats
<<~EOS
  Add the following line to your ~/.bash_profile or ~/.zshrc:
   source /usr/local/etc/bash_completion.d/ignite3cli
EOS
  end

  test do
system "#{bin}/ignite3cli", "--help"
  end
end

> Packaging: Brew package
> ---
>
> Key: IGNITE-17489
> URL: https://issues.apache.org/jira/browse/IGNITE-17489
> Project: Ignite
>  Issue Type: New Feature
>  Components: build
>Reporter: Mikhail Pochatkin
>Assignee: Aleksandr
>Priority: Major
>  Labels: ignite-3
>  Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IGNITE-17489) Packaging: Brew package

2022-10-12 Thread Aleksandr (Jira)


[ 
https://issues.apache.org/jira/browse/IGNITE-17489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17616498#comment-17616498
 ] 

Aleksandr commented on IGNITE-17489:


We have to wait until the ignte3 beta1 is released before submitting the PR to 
the homebrew-core repo. Here is working formulas

> Packaging: Brew package
> ---
>
> Key: IGNITE-17489
> URL: https://issues.apache.org/jira/browse/IGNITE-17489
> Project: Ignite
>  Issue Type: New Feature
>  Components: build
>Reporter: Mikhail Pochatkin
>Assignee: Aleksandr
>Priority: Major
>  Labels: ignite-3
>  Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)