-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #607 from serokell/auto/v16.0-rc2-release
[Chore] v16.0-rc2 release
- Loading branch information
Showing
33 changed files
with
153 additions
and
112 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
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
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,87 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# SPDX-FileCopyrightText: 2023 Oxhead Alpha | ||
# SPDX-License-Identifier: LicenseRef-MIT-OA | ||
|
||
class TezosNodeMumbainet < Formula | ||
url "file:///dev/null" | ||
version "v16.0-rc2-1" | ||
|
||
depends_on "tezos-node" | ||
|
||
desc "Meta formula that provides background tezos-node service that runs on mumbainet" | ||
|
||
def install | ||
startup_contents = | ||
<<~EOS | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
node="/usr/local/bin/octez-node" | ||
# default location of the config file | ||
config_file="$TEZOS_CLIENT_DIR/config.json" | ||
mkdir -p "$TEZOS_CLIENT_DIR" | ||
if [[ ! -f "$config_file" ]]; then | ||
echo "Configuring the node..." | ||
"$node" config init \ | ||
--rpc-addr "$NODE_RPC_ADDR" \ | ||
--network=mumbainet\ | ||
"$@" | ||
else | ||
echo "Updating the node configuration..." | ||
"$node" config update \ | ||
--rpc-addr "$NODE_RPC_ADDR" \ | ||
--network=mumbainet\ | ||
"$@" | ||
fi | ||
# Launching the node | ||
if [[ -z "$CERT_PATH" || -z "$KEY_PATH" ]]; then | ||
exec "$node" run --config-file="$config_file" | ||
else | ||
exec "$node" run --config-file="$config_file" \ | ||
--rpc-tls="$CERT_PATH","$KEY_PATH" | ||
fi | ||
EOS | ||
File.write("tezos-node-mumbainet-start", startup_contents) | ||
bin.install "tezos-node-mumbainet-start" | ||
print "Installing tezos-node-mumbainet service" | ||
end | ||
def plist | ||
<<~EOS | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | ||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Label</key> | ||
<string>#{plist_name}</string> | ||
<key>Program</key> | ||
<string>#{opt_bin}/tezos-node-mumbainet-start</string> | ||
<key>EnvironmentVariables</key> | ||
<dict> | ||
<key>TEZOS_CLIENT_DIR</key> | ||
<string>#{var}/lib/tezos/node-mumbainet</string> | ||
<key>NODE_RPC_ADDR</key> | ||
<string>127.0.0.1:8732</string> | ||
<key>CERT_PATH</key> | ||
<string></string> | ||
<key>KEY_PATH</key> | ||
<string></string> | ||
</dict> | ||
<key>RunAtLoad</key><true/> | ||
<key>StandardOutPath</key> | ||
<string>#{var}/log/#{name}.log</string> | ||
<key>StandardErrorPath</key> | ||
<string>#{var}/log/#{name}.log</string> | ||
</dict> | ||
</plist> | ||
EOS | ||
end | ||
def post_install | ||
mkdir_p "#{var}/lib/tezos/node-mumbainet" | ||
system "octez-node", "config", "init", "--data-dir" "#{var}/lib/tezos/node-mumbainet", "--network", "mumbainet" | ||
end | ||
end |
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
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.