Skip to content

Commit

Permalink
Merge pull request #2139 from input-output-hk/jpraynaud/2034-dev-blog…
Browse files Browse the repository at this point in the history
…-post-one-line-installer

Docs: dev blog post for one line installer
  • Loading branch information
jpraynaud authored Nov 25, 2024
2 parents 901f130 + 3aaf496 commit ad40680
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
64 changes: 64 additions & 0 deletions docs/website/blog/2024-11-25-one-line-binaries-installer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
title: One line installer for Mithril binaries
authors:
- name: Mithril Team
tags:
[
binaries,
pre-built,
install,
update,
nodes,
command-line,
binaries,
installer,
]
---

### One line installer for Mithril binaries

In order to facilitate the installation and update of Mithril binaries, we have created a one line installer that downloads and installs the Mithril binaries for you.
This installer is available for Linux and MacOS, and for the Mithril signer, Mithril aggregator, and Mithril CLI.

The one line command is also displayed in the several `Download the pre-built binary` sections across the documentation.

Here are few examples of the one line installer:

- Download the **latest Mithril signer** in the current directory:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c mithril-signer -d latest -p $(pwd)
```

- Download the **latest Mithril client CLI** in the current directory:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c mithril-client -d latest -p $(pwd)
```

- Download the **unstable Mithril aggregator** in the current directory:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c mithril-aggregator -d unstable -p $(pwd)
```

- Download the **Mithril client of distribution `2445.0`** in the current directory:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c mithril-client -d 2445.0 -p $(pwd)
```

- Installer usage:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -h

Install or upgrade a Mithril node
Usage: sh [-n node] [-v version] [-d distribution] [-p path]
-c node : Mithril node to install or upgrade (mithril-signer, mithril-aggregator, mithril-client)
-d distribution : Distribution to upgrade to (latest, unstable or distribution version e.g '2445.0')
-p path : Path to install the component

```

For any inquiries or assistance, don't hesitate to reach out to the team on the [Discord channel](https://discord.gg/5kaErDKDRq).
4 changes: 3 additions & 1 deletion docs/website/root/compiled-binaries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import CodeBlock from "@theme/CodeBlock";
You can install a the **latest** released binary of the **{props.node}** by running this one line command (_replace **YOUR_PATH** with your installation path_):

<CodeBlock language="bash">
{`curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c {props.node} -d latest -p **YOUR_PATH**`}
curl --proto '=https' --tlsv1.2 -sSf
https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh
| sh -s -- -c {props.node} -d latest -p **YOUR_PATH**
</CodeBlock>

:::tip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import CodeBlock from "@theme/CodeBlock";
You can install a the **latest** released binary of the **{props.node}** by running this one line command (_replace **YOUR_PATH** with your installation path_):

<CodeBlock language="bash">
{`curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c {props.node} -d latest -p **YOUR_PATH**`}
curl --proto '=https' --tlsv1.2 -sSf
https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh
| sh -s -- -c {props.node} -d latest -p **YOUR_PATH**
</CodeBlock>

:::tip
Expand Down

0 comments on commit ad40680

Please sign in to comment.