Skip to content

Commit

Permalink
Jp/simplify immutable setup (#671)
Browse files Browse the repository at this point in the history
* Removed steps to setup and use an account for the node

* Removed openssl install
  • Loading branch information
jp-imx authored Dec 15, 2023
1 parent f4a5cb6 commit 828fee7
Showing 1 changed file with 4 additions and 31 deletions.
35 changes: 4 additions & 31 deletions src/pages/validator/external-chains/immutable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ Instructions to set up your Immutable zkEVM node.

## Prerequisites
1. Install [Docker](https://docs.docker.com/engine/install/ubuntu/)
2. Install `openssl`.
```bash
sudo apt-get install openssl
```
3. **(Optional)** If you plan to use WireGuard (see [Get access to the Immutable zkEVM partner nodes](#get-access-to-the-immutable-zkevm-partner-nodes)), install it.
2. **(Optional)** If you plan to use WireGuard (see [Get access to the Immutable zkEVM partner nodes](#get-access-to-the-immutable-zkevm-partner-nodes)), install it.
```bash
sudo apt-get install wireguard
```
Expand Down Expand Up @@ -113,31 +109,18 @@ The output should look something like this:
mkdir /opt/immutable-zkevm
```
2. Generate a random password.
```bash
openssl rand -base64 32 > /opt/immutable-zkevm/password
```
3. Pull the Docker image.
2. Pull the Docker image.
```bash
docker pull ghcr.io/immutable/go-ethereum/go-ethereum:v0.0.8
# Create a short-form tag we can reference in the next few commands
docker tag ghcr.io/immutable/go-ethereum/go-ethereum:v0.0.8 geth
```
4. Initialise the node.
3. Initialise the node.
<tabs>
<tab-item title="Testnet">
```bash
docker run \
--rm \
-v /opt/immutable-zkevm:/mnt/geth \
--name geth \
geth account new --datadir /mnt/geth --password /mnt/geth/password
```
```bash
docker run \
--rm \
Expand All @@ -148,14 +131,6 @@ docker run \
```
</tab-item>
<tab-item title="Mainnet">
```bash
docker run \
--rm \
-v /opt/immutable-zkevm:/mnt/geth \
--name geth \
geth account new --datadir /mnt/geth --password /mnt/geth/password
```
```bash
docker run \
--rm \
Expand All @@ -167,7 +142,7 @@ docker run \
</tab-item>
</tabs>
5. Start the Immutable zkEVM node as a service
4. Start the Immutable zkEVM node as a service
<tabs>
<tab-item title="Testnet">
Expand All @@ -181,7 +156,6 @@ docker run \
geth \
--config /etc/geth/testnet.toml \
--datadir /mnt/geth \
--keystore /mnt/geth/keystore \
--networkid 13473 \
--http \
--http.port "8545" \
Expand All @@ -199,7 +173,6 @@ docker run \
geth \
--config /etc/geth/mainnet.toml \
--datadir /mnt/geth \
--keystore /mnt/geth/keystore \
--networkid 13371 \
--http \
--http.port "8545" \
Expand Down

1 comment on commit 828fee7

@vercel
Copy link

@vercel vercel bot commented on 828fee7 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.