Skip to content

Commit

Permalink
Merge pull request #59 from skalenetwork/remove-network-ui
Browse files Browse the repository at this point in the history
Remove network-ui submodule, update readme
  • Loading branch information
dmytrotkk authored Feb 5, 2024
2 parents 69160be + f103985 commit 1a5b1c9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 38 deletions.
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@
path = helper-scripts
url = https://github.com/skalenetwork/helper-scripts.git
branch = develop
[submodule "network-ui"]
path = network-ui
url = https://github.com/skalenetwork/network-ui.git
branch = develop
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,13 @@ JSON-RPC endpoints for SKALE chains. It is based on NGINX.

1. Clone repo & all submodules
2. Put `abi.json`, `server.crt` and `server.key`files in `data` folder
3. Export all required environement variables (see below)
3. Export all required environment variables (see below)
4. Run `scripts/run_proxy.sh`

#### Required environement variables
#### Required environment variables

- `NETWORKS`
- `DOCS_WEBSITE_URL`
- `MAIN_WEBSITE_URL`
- `NETWORK_NAME`
- `CHAIN_ID`
- `EXPLORER_URL`
- `BASE_PROXY_URL`
- `ETH_ENDPOINT`
- `ENDPOINT` - endpoint of the Ethereum network where `skale-manager` contracts are deployed
- `SERVER_NAME` - domain name of the server

## License

Expand Down
12 changes: 0 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
version: '3'
services:
network-ui:
image: network-ui:latest
container_name: network_ui
network_mode: host
build:
context: ./network-ui
dockerfile: Dockerfile
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "200m"
skale-proxy:
environment:
SERVER_NAME: ${SERVER_NAME}
Expand Down
2 changes: 1 addition & 1 deletion helper-scripts
1 change: 0 additions & 1 deletion network-ui
Submodule network-ui deleted from 793746
14 changes: 4 additions & 10 deletions scripts/run_proxy.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
#!/bin/bash

export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
set -e

export NETWORKS=$NETWORKS
export DOCS_WEBSITE_URL=$DOCS_WEBSITE_URL
export MAIN_WEBSITE_URL=$MAIN_WEBSITE_URL
export NETWORK_NAME=$NETWORK_NAME
export CHAIN_ID=$CHAIN_ID
export EXPLORER_URL=$EXPLORER_URL
export BASE_PROXY_URL=$BASE_PROXY_URL
export ABIS_URL=$ABIS_URL
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

bash $DIR/../network-ui/prepare_env_file.sh
: "${ENDPOINT?Need to set ENDPOINT}"
: "${SERVER_NAME?Need to set SERVER_NAME}"

cd $DIR/..
docker-compose up --build -d

0 comments on commit 1a5b1c9

Please sign in to comment.