You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nakamoto-upgrade/running-a-signer.md
+44-24Lines changed: 44 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
# Running a Signer
1
+
# How to Run a Signer
2
2
3
3
{% hint style="danger" %}
4
-
This document intends to lay out all the steps required to run a signer on testnet after the Nakamoto Testnet milestone is reached and deployed to testnet on March 25. Pre-Launch Testnet (current testnet version) will be undergoing frequent updates, so these instructions may change.
4
+
This document intends to lay out all the steps required to run a signer on testnet after the Nakamoto Testnet milestone is reached and deployed to testnet on March 25. Pre-Launch Testnet (current testnet version) will be undergoing frequent updates, so these instructions may change and certain functionality may not work.
5
5
{% endhint %}
6
6
7
7
### System Requirements to Run a Signer
@@ -14,7 +14,9 @@ This document intends to lay out all the steps required to run a signer on testn
14
14
15
15
In order to run a signer, you'll need to run a signer and a Stacks node side-by-side. Specifically, you'll want to run a testnet follower node. Instructions for doing this are listed below in the "Running Your Stacks Node" section. The signer will monitor for events coming from the stacks node and is in charge of using the generated account (next section) to sign incoming Stacks blocks sent from the Stcks node.
16
16
17
-
This doc will provide instructions on how to set up both using either Docker or as a binary building from source. It will also walk through how to set up the config files to get the signer and Stacks node communicating correctly.
17
+
This doc will provide instructions on how to set up both using either Docker or building from source. Binaries will not be available in the initial release but will be released at a later date. 
18
+
19
+
It will also walk through how to set up the config files to get the signer and Stacks node communicating correctly.
18
20
19
21
### Knowledge Prerequisites
20
22
@@ -127,11 +129,11 @@ The definition of these fields are:
127
129
128
130
### Running the Signer
129
131
130
-
There are two options for running the signer: Docker and binary. The recommended option is to use Docker. If you want to run as a binary, you will need to build `stacks-core` from source. Instructions for how to do this are contained below in the relevant section.
132
+
There are two options for running the signer: Docker and building from source. The recommended option is to use Docker. If you want to run as a binary, you will need to build `stacks-core` from source. Instructions for how to do this are contained below in the relevant section.
131
133
132
134
#### Running the Signer with Docker
133
135
134
-
You can run the signer as a Docker container using the `blockstack/stacks-core` image. 
136
+
You can run the signer as a Docker container using the `blockstack/stacks-core:next` image. When pulling the Docker image, be sure you are using the `next` tag, as the main branch will not have the signer binary.
135
137
136
138
When running the Docker container, you’ll need to ensure a few things:
137
139
@@ -140,22 +142,32 @@ When running the Docker container, you’ll need to ensure a few things:
140
142
* You’ll need a volume with at least a few GB of available storage that contains the folder your `db_path` is in. In the above example, that would be /var
141
143
* You’ll need to include your `signer-config.toml` file as noted below with the first `-v` flag
142
144
143
-
An example command for running the Docker image with ”`docker run`” (be sure to remove the comments before running):
145
+
An example command for running the Docker image with ”`docker run`”.
146
+
147
+
Be sure to replace the `STX_SIGNER_PATH` with the correct path to your config file and where you want to install and run the signer. In this example it will be doing so in the current directory.
-v ./signer-config.toml:/config.toml \# your config file, make sure you are in the same directory
148
-
-v data_folder:/var \# your data volume
149
-
-p 30000:30000
150
-
-e RUST_BACKTRACE=full \
151
-
-e BLOCKSTACK_DEBUG=0 \
152
-
blockstack/stacks-core:next \ # the docker image, currently tagged as `next`
153
-
stacks-signer run \
154
-
--config /config.toml \
159
+
-v $STX_SIGNER_CONFIG:/config.toml \
160
+
-v $STX_SIGNER_DATA:/var \
161
+
-p 30000:30000 \
162
+
-e RUST_BACKTRACE=full \
163
+
-e BLOCKSTACK_DEBUG=0 \
164
+
$IMG:$VER \
165
+
stacks-signer run \
166
+
--config /config.toml
155
167
```
156
168
157
169
{% hint style="info" %}
158
-
If you get an error saying that the manifest cannot be found, you are probably running on system architecture other than x64 arch. Since you are using a PR release (`next`) you'll need to specify your platform with the `--platform` flag.
170
+
If you get an error saying that the manifest cannot be found or about the requested image platform not matching the host platform, you are probably running on system architecture other than x64 arch. Since you are using a PR release (`next`) you'll need to specify your platform with the `--platform` flag.
159
171
160
172
For example, if you are running on M1 Mac, you would add `--platform=linux/amd64` to the above command.
0 commit comments