Skip to content

Commit

Permalink
[repo] New Daemon version.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturgontijo committed Jun 1, 2021
1 parent 26cb9d6 commit fd1fa3e
Show file tree
Hide file tree
Showing 34 changed files with 54 additions and 54 deletions.
22 changes: 11 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
ssh-host: ${SSH_HOST_CNTK_IMAGE_RECON}
ssh-user: ${SSH_USER_CNTK_IMAGE_RECON}
service-dir: "services/cntk-image-recon"
mainnet-port: "7004"
mainnet-port: "7015"
testnet-port: "7054"
run-command: "source '/cntk/activate-cntk';python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -35,7 +35,7 @@ jobs:
ssh-host: ${SSH_HOST_DEEPFAKES_FACESWAP}
ssh-user: ${SSH_USER_DEEPFAKES_FACESWAP}
service-dir: "services/deepfakes-faceswap"
mainnet-port: "7060"
mainnet-port: "7021"
testnet-port: "7061-7062"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -57,7 +57,7 @@ jobs:
ssh-host: ${SSH_HOST_DEOLDIFY_COLORIZER}
ssh-user: ${SSH_USER_DEOLDIFY_COLORIZER}
service-dir: "services/deoldify-colorizer"
mainnet-port: "7084"
mainnet-port: "7037"
testnet-port: "7085"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -79,7 +79,7 @@ jobs:
ssh-host: ${SSH_HOST_I3D_VIDEO_ACTION_RECON}
ssh-user: ${SSH_USER_I3D_VIDEO_ACTION_RECON}
service-dir: "services/i3d-video-action-recognition"
mainnet-port: "7005"
mainnet-port: "7023"
testnet-port: "7055"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -101,7 +101,7 @@ jobs:
ssh-host: ${SSH_HOST_PLACES365_SCENE_RECOGNITION}
ssh-user: ${SSH_USER_PLACES365_SCENE_RECOGNITION}
service-dir: "services/places365-scene-recognition"
mainnet-port: "7019"
mainnet-port: "7027"
testnet-port: "7079"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -123,7 +123,7 @@ jobs:
ssh-host: ${SSH_HOST_PNEUMONIA_DIAGNOSIS}
ssh-user: ${SSH_USER_PNEUMONIA_DIAGNOSIS}
service-dir: "services/pneumonia-diagnosis"
mainnet-port: "7072"
mainnet-port: "7028"
testnet-port: "7062"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -145,7 +145,7 @@ jobs:
ssh-host: ${SSH_HOST_VOICE_CLONING}
ssh-user: ${SSH_USER_VOICE_CLONING}
service-dir: "services/real-time-voice-cloning"
mainnet-port: "7064"
mainnet-port: "7036"
testnet-port: "7065"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -167,7 +167,7 @@ jobs:
ssh-host: ${SSH_HOST_S2VT_VIDEO_CAPTIONING}
ssh-user: ${SSH_USER_S2VT_VIDEO_CAPTIONING}
service-dir: "services/s2vt-video-captioning"
mainnet-port: "7006"
mainnet-port: "7029"
testnet-port: "7056"
run-command: "python run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -189,7 +189,7 @@ jobs:
ssh-host: ${SSH_HOST_SOUND_SPLEETER}
ssh-user: ${SSH_USER_SOUND_SPLEETER}
service-dir: "services/sound-spleeter"
mainnet-port: "7066"
mainnet-port: "7068"
testnet-port: "7067"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -211,7 +211,7 @@ jobs:
ssh-host: ${SSH_HOST_YOLOv3_OBJECT_DETECTION}
ssh-user: ${SSH_USER_YOLOv3_OBJECT_DETECTION}
service-dir: "services/yolov3-object-detection"
mainnet-port: "7007"
mainnet-port: "7034"
testnet-port: "7057"
run-command: "python3 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand All @@ -233,7 +233,7 @@ jobs:
ssh-host: ${SSH_HOST_CHESS_ALPHA_ZERO}
ssh-user: ${SSH_USER_CHESS_ALPHA_ZERO}
service-dir: "services/zeta36-chess-alpha-zero"
mainnet-port: "7008"
mainnet-port: "7035"
testnet-port: "7058"
run-command: "python3.6 run_service.py --ssl"
docker-test-files: "Dockerfile, requirements.txt"
Expand Down
2 changes: 1 addition & 1 deletion services/cntk-image-recon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN apt-get update && \
curl

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.6"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand Down
2 changes: 1 addition & 1 deletion services/cntk-image-recon/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
with open(conf, "w") as f:
json.dump(snetd_configs, f, sort_keys=True, indent=4)
Expand Down
2 changes: 1 addition & 1 deletion services/cntk-image-recon/snetd_configs/snetd.mainnet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7004",
"daemon_end_point": "0.0.0.0:7015",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/deepfakes-faceswap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev
RUN apt-get install -y python3 python3-pip ffmpeg

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.6"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -45,7 +45,7 @@ RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
pip3 install git+https://github.com/arturgontijo/content-server.git

RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
pip3 install -U pip && \
pip3 install -U pip==20.2.4 && \
pip3 install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/deepfakes-faceswap/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
with open(conf, "w") as f:
json.dump(snetd_configs, f, sort_keys=True, indent=4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7060",
"daemon_end_point": "0.0.0.0:7021",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/deoldify-colorizer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN apt-get update && \
RUN apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.3"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -41,11 +41,11 @@ RUN cd ${SINGNET_REPOS} && \
RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
git submodule update --init -- DeOldify && \
cd DeOldify && \
pip install -U pip==20.2.4 && \
pip install -r requirements.txt

# Building protobuf messages
RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
pip install -U pip && \
pip install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/deoldify-colorizer/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
with open(conf, "w") as f:
json.dump(snetd_configs, f, sort_keys=True, indent=4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7084",
"daemon_end_point": "0.0.0.0:7037",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/i3d-video-action-recognition/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev
RUN apt-get install -y python3 python3-pip

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.6"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -37,7 +37,7 @@ RUN cd ${SINGNET_REPOS} && \
git clone -b ${git_branch} https://github.com/${git_owner}/${DNN_REPO_NAME}.git

RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
python3 -m pip install -U pip && \
python3 -m pip install -U pip==20.2.4 && \
python3 -m pip install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/i3d-video-action-recognition/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
with open(conf, "w") as f:
json.dump(snetd_configs, f, sort_keys=True, indent=4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7005",
"daemon_end_point": "0.0.0.0:7023",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/places365-scene-recognition/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN apt-get update && \
pip install --upgrade pip

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.6"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -42,7 +42,7 @@ RUN cd ${SINGNET_REPOS} && \

# Building protobuf messages
RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
pip install -U pip && \
pip install -U pip==20.2.4 && \
pip install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/places365-scene-recognition/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
with open(conf, "w") as f:
json.dump(snetd_configs, f, sort_keys=True, indent=4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7019",
"daemon_end_point": "0.0.0.0:7027",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/pneumonia-diagnosis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apt-get install -y libsm6 libxext6 libxrender-dev
RUN apt-get install -y python3 python3-pip

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.6"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -39,7 +39,7 @@ RUN cd ${SINGNET_REPOS} && \
./get_pneumonia_model.sh

RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
python3 -m pip install -U pip && \
python3 -m pip install -U pip==20.2.4 && \
python3 -m pip install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/pneumonia-diagnosis/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
with open(conf, "w") as f:
json.dump(snetd_configs, f, sort_keys=True, indent=4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7072",
"daemon_end_point": "0.0.0.0:7028",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/real-time-voice-cloning/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN apt-get clean && \
apt-get -y autoremove

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.6"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -51,7 +51,7 @@ RUN cd ${SINGNET_REPOS}/${DNN_REPO_NAME} && \

# Installing all the dependencies of the service
RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
pip install -U pip && \
pip install -U pip==20.2.4 && \
pip install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/real-time-voice-cloning/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
snetd_configs["max_message_size_in_mb"] = os.environ.get("MAX_MESSAGE_SIZE", 10)
with open(conf, "w") as f:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7064",
"daemon_end_point": "0.0.0.0:7036",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/s2vt-video-captioning/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apt-get update && \
RUN apt-get install -y libsm6 libxext6 libxrender-dev

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.6"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -39,7 +39,7 @@ RUN cd ${SINGNET_REPOS} && \
./get_s2vt.sh

RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
pip install -U pip && \
pip install -U pip==20.2.4 && \
pip install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/s2vt-video-captioning/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
with open(conf, "w") as f:
json.dump(snetd_configs, f, sort_keys=True, indent=4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"daemon_end_point": "0.0.0.0:7006",
"daemon_end_point": "0.0.0.0:7029",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"passthrough_endpoint": "http://localhost:7003",
"blockchain_network_selected": "main",
Expand Down
4 changes: 2 additions & 2 deletions services/sound-spleeter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apt-get clean && \
apt-get -y autoremove

# Installing SNET Daemon
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.7"` && \
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v5.0.1"` && \
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \
cd /tmp && \
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -37,7 +37,7 @@ RUN cd ${SINGNET_REPOS} && \
git clone -b ${git_branch} https://github.com/${git_owner}/${DNN_REPO_NAME}.git

RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \
python3 -m pip install -U pip && \
python3 -m pip install -U pip==20.2.4 && \
python3 -m pip install -r requirements.txt && \
sh buildproto.sh

Expand Down
2 changes: 1 addition & 1 deletion services/sound-spleeter/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_extra_configs(conf):
pk_metering = os.environ.get("PVT_KEY_FOR_METERING", "")
if pk_metering:
snetd_configs["metering_enabled"] = True
snetd_configs["metering_end_point"] = "https://{}-marketplace.singularitynet.io".format(_network)
snetd_configs["metering_end_point"] = "https://marketplace-mt-v2.singularitynet.io"
snetd_configs["pvt_key_for_metering"] = pk_metering
snetd_configs["max_message_size_in_mb"] = os.environ.get("MAX_MESSAGE_SIZE", 128)
with open(conf, "w") as f:
Expand Down
Loading

0 comments on commit fd1fa3e

Please sign in to comment.