rusynergy / juneogo-docker

Implementation of docker with the junego application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Juneogo-docker

Implementation of docker with the junego application.

1. Docker and docker-compose

Please make sure that you have Docker and docker-compose installed on your system. For more information, please refer to their documentation: https://docs.docker.com/get-docker/

2. Configure the node:

Copy the files to the server in your home directory with the following command:

git clone https://github.com/rusynergy/juneogo-docker

3. Run JuneoGo

You may run JuneoGo using http or https.

3.1) Run JuneoGo with HTTP

To run your node with http, please open the juneogo-docker directory in your command line and execute:

docker-compose build

docker-compose up -d juneogo

This will start bootstrapping your node.

3.2) Run JuneoGo with HTTPS

To run your node with https, please set up your custom domain to point to your machine's public ip address.

Next, please update the file Caddyfile located in juneogo-docker/caddy to contain your domain instead of the sample url.

Example:

juneo.node.com {
    reverse_proxy juneogo:9650
}

After this, please execute:

docker-compose build

docker-compose up -d

This will start bootstrapping your node.

4. Boostrapping status

You can check your node's bootstrapping status with the following RPC call:

curl -X POST --data '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"info.isBootstrapped",
    "params": {
        "chain":"JUNE"
    }
}' -H 'content-type:application/json;' 192.168.10.2:9650/ext/info
curl -X POST --data '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"info.isBootstrapped",
    "params": {
        "chain":"27zabyVSGPx546Z38JAi4gsYvmX6zQYW11NXJXMokfvCwxhdUH"
    }
}' -H 'content-type:application/json;' 192.168.10.2:9650/ext/info

Example response:

{
  "jsonrpc": "2.0",
  "result": {
    "isBootstrapped": true
  },
  "id": 1
}

Once your node has fully boostrapped, navigate to juneogo-docker/juneogo/ and execute the command in the following format:

sudo chown -R [your_user_name] .juneogo/

Example (if the user is juneogo):

sudo chown -R juneogo .juneogo/

To enter the juneogo Docker container, please execute:

docker exec -ti juneogo-synergy /bin/bash

About

Implementation of docker with the junego application.


Languages

Language:Shell 78.5%Language:Dockerfile 21.5%