Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing entry node -> organic node && entry node -> synthetic node, with render deployment compatibility #188

Open
wants to merge 101 commits into
base: production
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
36affec
changes for synthetic node
MahdiPresario001 Dec 11, 2024
aae8ee2
more changes
MahdiPresario001 Dec 11, 2024
1224991
change text endpoints
MahdiPresario001 Dec 11, 2024
c2029f5
more changes
MahdiPresario001 Dec 11, 2024
0366005
more changes
MahdiPresario001 Dec 11, 2024
049dbcb
adapt docker compose, taskfile, etc
MahdiPresario001 Dec 11, 2024
2f7bba0
debug
MahdiPresario001 Dec 11, 2024
07e3d30
dbeug
MahdiPresario001 Dec 11, 2024
37c2941
debug
MahdiPresario001 Dec 11, 2024
5c5bdf9
debug
MahdiPresario001 Dec 11, 2024
45bba53
debug
MahdiPresario001 Dec 11, 2024
4aa7501
sync with prod
MahdiPresario001 Dec 11, 2024
605da88
debug _decrement_requests_remaining
MahdiPresario001 Dec 12, 2024
8fe828e
logs for debugging
MahdiPresario001 Dec 12, 2024
290785b
logs for debugging
MahdiPresario001 Dec 12, 2024
cb88a68
add key for testing
MahdiPresario001 Dec 12, 2024
d2c5f2d
debug
MahdiPresario001 Dec 12, 2024
06f0ed9
we need keypair in organic node too
MahdiPresario001 Dec 12, 2024
588dd92
we need keypair in organic node too
MahdiPresario001 Dec 12, 2024
5be8564
debug
MahdiPresario001 Dec 12, 2024
a8c4d71
changes for nginx
MahdiPresario001 Dec 12, 2024
8cfedaf
score organics too - text
MahdiPresario001 Dec 12, 2024
3af783e
adding nginx stuff
MahdiPresario001 Dec 12, 2024
74871a7
change var name
MahdiPresario001 Dec 12, 2024
e069192
debug
MahdiPresario001 Dec 12, 2024
d6ff4dc
debug
MahdiPresario001 Dec 12, 2024
d59e53f
chmod +x
MahdiPresario001 Dec 12, 2024
e7a2cd2
debug nginx
MahdiPresario001 Dec 12, 2024
e476436
debug
MahdiPresario001 Dec 12, 2024
52167ed
debugging scoring for organic
MahdiPresario001 Dec 12, 2024
a5d82e7
debug
MahdiPresario001 Dec 12, 2024
9925cdf
debug
MahdiPresario001 Dec 12, 2024
0ceaee7
debug
MahdiPresario001 Dec 12, 2024
a43e6c4
debug
MahdiPresario001 Dec 12, 2024
a64a0ad
debug
MahdiPresario001 Dec 12, 2024
cdb1304
debug
MahdiPresario001 Dec 12, 2024
67ba9c8
debug
MahdiPresario001 Dec 12, 2024
a9d3216
debug: nginx only seeing two organic nodes
MahdiPresario001 Dec 12, 2024
fdb467f
debug: nginx only seeing two organic nodes
MahdiPresario001 Dec 12, 2024
a33ce87
debug: nginx only seeing two organic nodes
MahdiPresario001 Dec 12, 2024
6d5973f
debug: nginx only seeing two organic nodes
MahdiPresario001 Dec 12, 2024
43e5e99
remove nginx
MahdiPresario001 Dec 17, 2024
a0ef47f
lil tweak
MahdiPresario001 Dec 17, 2024
2975713
remove loadbalancing network
MahdiPresario001 Dec 17, 2024
96470f6
fix
MahdiPresario001 Dec 17, 2024
f1e1f45
remove healthckecks for organic node
MahdiPresario001 Dec 17, 2024
47874a5
test 2 organic nodes
MahdiPresario001 Dec 17, 2024
2bd6d6a
debug
MahdiPresario001 Dec 17, 2024
0e75434
roll back to 1 organic node
MahdiPresario001 Dec 17, 2024
48a000d
expose psql db for render
MahdiPresario001 Dec 17, 2024
d15a5a0
debug
MahdiPresario001 Dec 17, 2024
5e4566f
sync with prod
MahdiPresario001 Dec 18, 2024
7725a81
add WALLET_SECRET_SEED env var
MahdiPresario001 Dec 18, 2024
29e4cf7
add WALLET_SECRET_SEED env var
MahdiPresario001 Dec 18, 2024
20e5f48
expose redis ports
MahdiPresario001 Dec 18, 2024
e88dee2
debug
MahdiPresario001 Dec 18, 2024
d9decd4
changes for psql / redis cnx issues
MahdiPresario001 Dec 18, 2024
02d52dd
change psql pool cnx config
MahdiPresario001 Dec 18, 2024
c908244
do not expose redis/psql
MahdiPresario001 Dec 18, 2024
81c8020
changes for rayon vali
MahdiPresario001 Dec 18, 2024
9d1d609
roll back, handle observability later
MahdiPresario001 Dec 18, 2024
6a576c7
lil tweak
MahdiPresario001 Dec 18, 2024
575f9ff
lil tweak
MahdiPresario001 Dec 18, 2024
496e21b
debug
MahdiPresario001 Dec 18, 2024
8768bb1
debug
MahdiPresario001 Dec 18, 2024
b5852eb
debug
MahdiPresario001 Dec 18, 2024
4edcaea
debug
MahdiPresario001 Dec 18, 2024
8160de9
Merge pull request #8 from MahdiPresario001/feature/rayon-vali-change…
MahdiPresario001 Dec 18, 2024
de35c3e
tweaks
MahdiPresario001 Dec 18, 2024
ee54d55
fix organic node logs
MahdiPresario001 Dec 18, 2024
5416e70
expose otel collector
MahdiPresario001 Dec 18, 2024
5f2a0ca
debug
MahdiPresario001 Dec 18, 2024
f6d0b29
debug
MahdiPresario001 Dec 18, 2024
8047572
debug
MahdiPresario001 Dec 18, 2024
d0a218a
debug
MahdiPresario001 Dec 18, 2024
6b90786
debug
MahdiPresario001 Dec 18, 2024
5b87ccd
debug
MahdiPresario001 Dec 18, 2024
8028595
debug
MahdiPresario001 Dec 18, 2024
0262e92
testing fifo for text contenders
MahdiPresario001 Dec 18, 2024
f5a85db
try without a func
MahdiPresario001 Dec 18, 2024
910b7aa
debug
MahdiPresario001 Dec 18, 2024
e2d641d
add update_total_requests_made
MahdiPresario001 Dec 19, 2024
8aa3f7a
update psql pool params
MahdiPresario001 Dec 19, 2024
23b7c18
increase psql cnx pool min/max
MahdiPresario001 Dec 19, 2024
d9818fc
debug
MahdiPresario001 Dec 19, 2024
7786fbf
modifying args for redis pool
MahdiPresario001 Dec 19, 2024
b231ee8
modifying args for redis pool
MahdiPresario001 Dec 19, 2024
c3a0eaa
new contender selection for organic
MahdiPresario001 Dec 19, 2024
af50719
roll back contenders selection
MahdiPresario001 Dec 19, 2024
c39cf4d
ssl disable for local dbmate
MahdiPresario001 Dec 19, 2024
f3d4226
test smtg out
MahdiPresario001 Dec 24, 2024
a19c193
roll back for the night
MahdiPresario001 Dec 24, 2024
590901d
few changes for redis on control node / synth node to better handle c…
MahdiPresario001 Dec 29, 2024
8407393
sync with prod
MahdiPresario001 Jan 3, 2025
59df4aa
clean
MahdiPresario001 Jan 3, 2025
6c02d73
update response format for text comp non stream
MahdiPresario001 Jan 7, 2025
b253de6
debug
MahdiPresario001 Jan 7, 2025
dad8181
add index in non streamin chat too
MahdiPresario001 Jan 7, 2025
bb5918a
first chunk then stream
MahdiPresario001 Jan 15, 2025
0f1d414
updates to synth node
MahdiPresario001 Jan 15, 2025
4dc3177
lil tweak for synth node
MahdiPresario001 Jan 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ tasks:
control_node_dev:
cmds:
- LOCALHOST=true ENV_FILE=.vali.env python -m validator.control_node.src.main

query_node_dev:
cmds:
- LOCALHOST=true ENV_FILE=.vali.env python -m validator.query_node.src.main

entry_node_dev:
synthetic_node_dev:
cmds:
- LOCALHOST=true uvicorn validator.entry_node.src.server:app --reload --host 0.0.0.0 --port 8090 --env-file .vali.env

- LOCALHOST=true ENV_FILE=.vali.env python -m validator.synthetic_node.src.main

organic_node_dev:
cmds:
- LOCALHOST=true uvicorn validator.organic_node.src.server:app --reload --host 0.0.0.0 --port 8090 --env-file .vali.env

weight_setter_dev:
cmds:
- LOCALHOST=true ENV_FILE=.vali.env python -m validator.control_node.src.set_weights.calculate_and_schedule_weights
Expand All @@ -33,16 +33,16 @@ tasks:
# turns off the nodes so you can run them on the host
# turns _on_ the proxies and dev tooling so you can access the infrastructure directly from the host
- "
docker compose
--env-file .vali.env
--profile entry_node_profile
up -d --build
--scale entry_node=0
--scale query_node=0
--scale control_node=0
--scale weight_setter=0
docker compose
--env-file .vali.env
--profile organic_node_profile
up -d --build
--scale organic_node=0
--scale synthetic_node=0
--scale control_node=0
--scale weight_setter=0
--scale redis-proxy=1
--scale adminer=1
--scale adminer=1
--scale postgres-proxy=1
--scale redis-commander=1
"
Expand All @@ -59,33 +59,33 @@ tasks:
update_docker_fiber_version:
cmds:
- docker run --rm nineteen-control_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade"
- docker run --rm nineteen-entry_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade"
- docker run --rm nineteen-query_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade"
- docker run --rm nineteen-organic_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade"
- docker run --rm nineteen-synthetic_node sh -c "pip install git+https://github.com/rayonlabs/[email protected] --upgrade"

createm:
cmds:
- bash start_miners.sh

startup:
cmds:
- docker compose --env-file .vali.env --profile entry_node_profile up -d --build
- docker compose --env-file .vali.env --profile organic_node_profile up -d --build

shutdown:
cmds:
- docker compose --env-file .vali.env --profile entry_node_profile down --remove-orphans
- docker compose --env-file .vali.env --profile organic_node_profile down --remove-orphans

shutdown_and_delete:
cmds:
- docker compose --env-file .vali.env --profile entry_node_profile down --remove-orphans -v
- docker compose --env-file .vali.env --profile organic_node_profile down --remove-orphans -v

postgres:
cmds:
- docker compose --env-file .vali.env --profile entry_node_profile exec -it postgresql psql -U$POSTGRES_USER $POSTGRES_DB
- docker compose --env-file .vali.env --profile organic_node_profile exec -it postgresql psql -U$POSTGRES_USER $POSTGRES_DB

redis:
cmds:
- docker compose --env-file .vali.env --profile entry_node_profile exec -it redis redis-cli
- docker compose --env-file .vali.env --profile organic_node_profile exec -it redis redis-cli

expose-postgres:
cmds:
- docker compose -f docker-compose.yml --env-file .vali.env up -d --scale postgres-proxy=1 --scale adminer=1
- docker compose -f docker-compose.yml --env-file .vali.env up -d --scale postgres-proxy=1 --scale adminer=1
4 changes: 2 additions & 2 deletions config/grafana-validator-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "builder",
"expr": "{service_name=~\"control_node|entry_node|query_node\"} | label_format level=detected_level | level =~ `(warn|error)` | line_format `{{.service_name }} - {{.code_filepath}}:{{.code_function }}(L{{.code_lineno}}) - {{__line__}}`",
"expr": "{service_name=~\"control_node|organic_node|synthetic_node\"} | label_format level=detected_level | level =~ `(warn|error)` | line_format `{{.service_name }} - {{.code_filepath}}:{{.code_function }}(L{{.code_lineno}}) - {{__line__}}`",
"legendFormat": "",
"queryType": "range",
"refId": "A"
Expand Down Expand Up @@ -145,7 +145,7 @@
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "builder",
"expr": "sum by(service_name) (rate({service_name=~\"control_node|entry_node|query_node\"} | label_format level=detected_level | level =~ `(warn|error)` [1m])) * 60.0",
"expr": "sum by(service_name) (rate({service_name=~\"control_node|organic_node|synthetic_node\"} | label_format level=detected_level | level =~ `(warn|error)` [1m])) * 60.0",
"legendFormat": "{{.service_name}}",
"queryType": "range",
"refId": "A"
Expand Down
34 changes: 17 additions & 17 deletions config/grafana-validator-general.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "validator_query_node_query_streaming_synthetic_tokens",
"expr": "validator_synthetic_node_query_streaming_synthetic_tokens",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -209,7 +209,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "validator_query_node_query_streaming_synthetic_tokens_per_sec",
"expr": "validator_synthetic_node_query_streaming_synthetic_tokens_per_sec",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -310,7 +310,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "validator_entry_node_text_tokens",
"expr": "validator_organic_node_text_tokens",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -411,7 +411,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "validator_entry_node_text_tokens_per_sec",
"expr": "validator_organic_node_text_tokens_per_sec",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -511,7 +511,7 @@
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "rate(http_server_response_size_bytes_count{exported_job=\"entry_node\", http_target=\"/v1/chat/completions\"}[1m]) * 60",
"expr": "rate(http_server_response_size_bytes_count{exported_job=\"organic_node\", http_target=\"/v1/chat/completions\"}[1m]) * 60",
"format": "time_series",
"fullMetaSearch": false,
"includeNullMetadata": false,
Expand Down Expand Up @@ -612,7 +612,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "rate(http_server_response_size_bytes_count{exported_job=\"entry_node\", http_target=\"/v1/text-to-image\"}[1m]) * 60",
"expr": "rate(http_server_response_size_bytes_count{exported_job=\"organic_node\", http_target=\"/v1/text-to-image\"}[1m]) * 60",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -711,7 +711,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "rate(http_server_response_size_bytes_count{exported_job=\"entry_node\", http_target=\"/v1/image-to-image\"}[1m]) * 60",
"expr": "rate(http_server_response_size_bytes_count{exported_job=\"organic_node\", http_target=\"/v1/image-to-image\"}[1m]) * 60",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -811,7 +811,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "rate(validator_query_node_process_queries_total{exported_job=\"query_node\"}[$__rate_interval]) * 60",
"expr": "rate(validator_synthetic_node_process_queries_total{exported_job=\"synthetic_node\"}[$__rate_interval]) * 60",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -907,7 +907,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "validator_query_node_process_failed_queries_total",
"expr": "validator_synthetic_node_process_failed_queries_total",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -981,7 +981,7 @@
"options": {
"mode": "exclude",
"names": [
"validator_query_node_src_concurrent_queries_processing_ratio {__name__=\"validator_query_node_src_concurrent_queries_processing_ratio\", exported_job=\"query_node\", instance=\"otel-collector:9090\", job=\"otel-collector-services\"}"
"validator_synthetic_node_src_concurrent_queries_processing_ratio {__name__=\"validator_synthetic_node_src_concurrent_queries_processing_ratio\", exported_job=\"synthetic_node\", instance=\"otel-collector:9090\", job=\"otel-collector-services\"}"
],
"prefix": "All except:",
"readOnly": true
Expand Down Expand Up @@ -1028,7 +1028,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "validator_query_node_src_concurrent_queries_processing_ratio",
"expr": "validator_synthetic_node_src_concurrent_queries_processing_ratio",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -1318,7 +1318,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(validator_entry_node_image_success_total{exported_job=\"entry_node\"}[1m]) * 60",
"expr": "rate(validator_organic_node_image_success_total{exported_job=\"organic_node\"}[1m]) * 60",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -1416,7 +1416,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(validator_entry_node_image_error_total{exported_job=\"entry_node\"}[1m]) * 60",
"expr": "rate(validator_organic_node_image_error_total{exported_job=\"organic_node\"}[1m]) * 60",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -1514,7 +1514,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(validator_entry_node_text_success_total{exported_job=\"entry_node\"}[1m]) * 60",
"expr": "rate(validator_organic_node_text_success_total{exported_job=\"organic_node\"}[1m]) * 60",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -1612,7 +1612,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(validator_entry_node_text_error_total{exported_job=\"entry_node\"}[1m]) * 60",
"expr": "rate(validator_organic_node_text_error_total{exported_job=\"organic_node\"}[1m]) * 60",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -1654,7 +1654,7 @@
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "builder",
"expr": "{service_name=~\"control_node|entry_node|query_node\"} | label_format level=detected_level | line_format `{{.service_name }} - {{__line__}}`",
"expr": "{service_name=~\"control_node|organic_node|synthetic_node\"} | label_format level=detected_level | line_format `{{.service_name }} - {{__line__}}`",
"legendFormat": "",
"queryType": "range",
"refId": "A"
Expand All @@ -1680,4 +1680,4 @@
"uid": "ae1q8n928qc5ce",
"version": 13,
"weekStart": ""
}
}
2 changes: 0 additions & 2 deletions core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@
# BASE_NINETEEN_API_URL = "http://localhost:8033/"
BASE_NINETEEN_API_URL = "https://taovision.ai/"



MIN_STEPS = "min_steps"
MAX_STEPS = "max_steps"
20 changes: 11 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ services:
restart_policy:
condition: on-failure

query_node:
container_name: query_node
synthetic_node:
container_name: synthetic_node
build:
context: .
dockerfile: dockerfiles/query_node.dockerfile
dockerfile: dockerfiles/synthetic_node.dockerfile
deploy:
replicas: 1
resources:
Expand All @@ -63,7 +63,7 @@ services:
- postgresql
volumes:
- ${HOME}/.bittensor/wallets:/root/.bittensor/wallets
entrypoint: ["opentelemetry-instrument", "--logs_exporter", "otlp", "--traces_exporter", "none", "--metrics_exporter", "otlp", "--service_name", "query_node", "python", "-u", "/app/validator/query_node/src/main.py"]
entrypoint: ["opentelemetry-instrument", "--logs_exporter", "otlp", "--traces_exporter", "none", "--metrics_exporter", "otlp", "--service_name", "synthetic_node", "python", "-u", "/app/validator/synthetic_node/src/main.py"]
environment:
OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4317"
Expand All @@ -79,11 +79,10 @@ services:
env_file:
- .vali.env

entry_node:
container_name: entry_node
organic_node:
build:
context: .
dockerfile: dockerfiles/entry_node.dockerfile
dockerfile: dockerfiles/organic_node.dockerfile
deploy:
replicas: 1
resources:
Expand All @@ -95,9 +94,12 @@ services:
depends_on:
- redis
- postgresql
- control_node
ports:
- "${ORGANIC_SERVER_PORT:-8091}:${ORGANIC_SERVER_PORT:-8091}"
entrypoint: ["opentelemetry-instrument", "--logs_exporter", "otlp", "--traces_exporter", "none", "--metrics_exporter", "otlp", "--service_name", "entry_node", "python", "-u", "/app/validator/entry_node/src/server.py"]
volumes:
- ${HOME}/.bittensor/wallets:/root/.bittensor/wallets
entrypoint: ["opentelemetry-instrument", "--logs_exporter", "otlp", "--traces_exporter", "none", "--metrics_exporter", "otlp", "--service_name", "organic_node", "python", "-u", "/app/validator/organic_node/src/server.py"]
environment:
OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4317"
Expand All @@ -112,7 +114,7 @@ services:
env_file:
- .vali.env
profiles:
- entry_node_profile
- organic_node_profile

postgresql:
container_name: 0_postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,23 @@ ARG BREAK_CACHE_ARG=0
RUN pip install --no-cache-dir "git+https://github.com/rayonlabs/[email protected]#egg=fiber[full]"
################################################################################

FROM core AS entry_node
FROM core AS organic_node

WORKDIR /app/validator/entry_node
WORKDIR /app/validator/organic_node

COPY validator/entry_node/requirements.txt .
COPY validator/organic_node/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY core /app/core
COPY validator/utils /app/validator/utils
COPY validator/models.py /app/validator/models.py
COPY validator/db /app/validator/db

COPY validator/entry_node/src ./src
COPY validator/entry_node/pyproject.toml .
COPY validator/organic_node/src ./src
COPY validator/common /app/validator/common
COPY validator/organic_node/pyproject.toml .


ENV PYTHONPATH="${PYTHONPATH}:/app/validator/entry_node/src"
ENV PYTHONPATH="${PYTHONPATH}:/app/validator/organic_node/src"

# CMD ["tail", "-f", "/dev/null"]
# CMD ["tail", "-f", "/dev/null"]
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,23 @@ ARG BREAK_CACHE_ARG=0
RUN pip install --no-cache-dir "git+https://github.com/rayonlabs/[email protected]#egg=fiber[full]"
################################################################################

FROM core AS query_node
FROM core AS synthetic_node

WORKDIR /app/validator/query_node
WORKDIR /app/validator/synthetic_node

COPY validator/query_node/requirements.txt .
COPY validator/synthetic_node/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY core /app/core
COPY validator/utils /app/validator/utils
COPY validator/models.py /app/validator/models.py
COPY validator/db /app/validator/db

COPY validator/query_node/src ./src
COPY validator/query_node/pyproject.toml .
COPY validator/synthetic_node/src ./src
COPY validator/common /app/validator/common
COPY validator/synthetic_node/pyproject.toml .


ENV PYTHONPATH="${PYTHONPATH}:/app/validator/query_node/src"
ENV PYTHONPATH="${PYTHONPATH}:/app/validator/synthetic_node/src"

# CMD ["tail", "-f", "/dev/null"]
# CMD ["tail", "-f", "/dev/null"]
Loading