github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/localnet/README.md (about)

     1  ### Local development in docker environment
     2  
     3  
     4  1. **Start localnet docker stack**
     5  
     6  ```
     7  go run mage.go -v LocalnetUp
     8  ```
     9  
    10  2. **Build myst binary for Linux**
    11  
    12  ```
    13  GOOS=linux ./bin/build
    14  ```
    15  
    16  3. **Run provider**
    17  
    18  Connect to container
    19  ```
    20  docker exec -it localnet_myst-provider_1 /bin/bash
    21  ```
    22  Run provider
    23  ```
    24  ./localnet/provider.sh
    25  ```
    26  
    27  4. **Run consumer**
    28  
    29  Connect to container
    30  ```
    31  docker exec -it localnet_myst-consumer_1 /bin/bash
    32  ```
    33  
    34  Run consumer daemon
    35  
    36  ```
    37  ./localnet/consumer.sh
    38  ```
    39  
    40  Run consumer CLI
    41  
    42  ```
    43  ./localnet/cli.sh
    44  ```
    45  
    46  5. **Stop localnet docker stack**
    47  ```
    48  go run mage.go -v LocalnetDown
    49  ```