Skip to content

Commit

Permalink
Added the latest daemon configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Habush committed Aug 30, 2019
1 parent 2a5fd0d commit 97b8aa8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 34 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN unzip grpc-proxy.zip && mv dist/grpcwebproxy-v$GRPC_PROXY_V-linux-x86_64 ./
RUN chmod 755 grpc-proxy

#setup snet daemon
ENV SNET_DAEMON_V 1.1.2
ENV SNET_DAEMON_V 2.0.2
RUN mkdir snet-daemon-v$SNET_DAEMON_V
RUN wget https://github.com/singnet/snet-daemon/releases/download/v$SNET_DAEMON_V/snet-daemon-v$SNET_DAEMON_V-linux-amd64.tar.gz
RUN tar -xzf snet-daemon-v$SNET_DAEMON_V-linux-amd64.tar.gz -C snet-daemon-v$SNET_DAEMON_V --strip-components 1
Expand All @@ -48,7 +48,8 @@ RUN pip install --upgrade pip && \

COPY requirements.txt $CODE/requirements.txt
RUN pip install -r requirements.txt

#RUN pip install dask distributed --upgrade && \
# pip install dask[dataframe]
COPY . $CODE

RUN chmod 755 build.sh && ./build.sh
22 changes: 11 additions & 11 deletions circus.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ copy_env = true
autostart = true
priority = 5

[watcher:snetd-ropsten]
cmd = ./snetd
args = --config snetd_configs/snetd.ropsten.json
warmup_delay = 0
numprocesses = 1
working_dir = $(circus.env.wdir)
stdout_stream.class = StdoutStream
stderr_stream.class = StdoutStream
copy_env = true
autostart = true
priority = 6
;[watcher:snetd-ropsten]
;cmd = ./snetd
;args = --config snetd_configs/snetd.ropsten.json
;warmup_delay = 0
;numprocesses = 1
;working_dir = $(circus.env.wdir)
;stdout_stream.class = StdoutStream
;stderr_stream.class = StdoutStream
;copy_env = true
;autostart = true
;priority = 6



Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "3"
services:
moses_service:
moses-service:
build: ./
container_name: moses-service
links:
Expand Down Expand Up @@ -31,6 +31,7 @@ services:

volumes:
- /etc:/etc
- /ssl:/ssl
- $HOME/.mozi/prod:/opt

frontend:
Expand Down
27 changes: 7 additions & 20 deletions snetd_configs/snetd.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
{
"daemon_end_point": "0.0.0.0:5002",
"ethereum_json_rpc_endpoint": "https://mainnet.infura.io",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"registry_address_key": "0xb3180a92e210b45e3447976a412ac0df859febaf",
"passthrough_enabled": true,
"passthrough_endpoint": "http://localhost:5003",
"organization_id": "snet",
"service_id": "moses-service",
"ssl_cert": "/etc/letsencrypt/live/mozi.ai/fullchain.pem",
"ssl_key": "/etc/letsencrypt/live/mozi.ai/privkey.pem",

"payment_channel_storage_server": {
"id": "storage-main",
"host": "127.0.0.1",
"client_port": 2379,
"peer_port": 2380,
"token": "unique-token",
"cluster": "storage-main=http://127.0.0.1:2380",
"data_dir": "etcd/storage-data-dir-main.etcd",
"enabled": true
},

"payment_channel_storage_client": {
"connection_timeout": "5s",
"request_timeout": "3s",
"endpoints": ["http://127.0.0.1:2379"]
},

"payent_channel_cert_path": "/ssl/client.pem",
"payent_channel_ca_path": "/ssl/ca.pem",
"payent_channel_key_path": "/ssl/client-key.pem",
"free_call_signer_address": "0x3Bb9b2499c283cec176e7C707Ecb495B7a961ebf",
"blockchain_network_selected": "main",
"metering_end_point": "https://mainnet-marketplace.singularitynet.io/metering",
"pvt_key_for_metering": "68f7e4d9d2d622ae4cfcb800de1f068744784219d7878d0a7b29b9dacd79e729",
"log": {
"level": "info",
"output": {
Expand Down

0 comments on commit 97b8aa8

Please sign in to comment.