Skip to content

Commit cbd42df

Browse files
Merge pull request #496 from opentensor/hotfix/docker
Hotfix/docker
2 parents 686e6fb + f84b277 commit cbd42df

File tree

2 files changed

+53
-9
lines changed

2 files changed

+53
-9
lines changed

Diff for: .github/workflows/docker.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
workflow_dispatch:
10+
11+
jobs:
12+
publish:
13+
runs-on: SubtensorCI
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v2
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v2
24+
25+
- name: Login to GHCR
26+
uses: docker/login-action@v2
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Extract metadata (tags, labels) for Docker
33+
id: meta
34+
uses: docker/metadata-action@v4
35+
with:
36+
images: ghcr.io/${{ github.repository }}
37+
38+
- name: Build and push Docker image
39+
uses: docker/build-push-action@v4
40+
with:
41+
context: .
42+
push: true
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}

Diff for: docker-compose.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ volumes:
88

99
services:
1010
common: &common
11-
image: opentensor/subtensor:latest
11+
image: ghcr.io/opentensor/subtensor:latest
1212
build:
1313
context: .
1414
dockerfile: Dockerfile
@@ -40,8 +40,8 @@ services:
4040
--base-path /tmp/blockchain \
4141
--chain raw_spec.json \
4242
--rpc-external --rpc-cors all \
43-
--ws-external --no-mdns \
44-
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
43+
--no-mdns \
44+
--in-peers 500 --out-peers 500 \
4545
--bootnodes /dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC \
4646
--sync warp
4747
@@ -58,8 +58,8 @@ services:
5858
--base-path /tmp/blockchain \
5959
--chain raw_spec.json \
6060
--rpc-external --rpc-cors all \
61-
--ws-external --no-mdns \
62-
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
61+
--no-mdns \
62+
--in-peers 500 --out-peers 500 \
6363
--bootnodes /dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC \
6464
--pruning=archive
6565
@@ -76,8 +76,8 @@ services:
7676
--base-path /tmp/blockchain \
7777
--chain raw_testspec.json \
7878
--rpc-external --rpc-cors all \
79-
--ws-external --no-mdns \
80-
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
79+
--no-mdns \
80+
--in-peers 500 --out-peers 500 \
8181
--bootnodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
8282
--sync warp
8383
@@ -94,7 +94,7 @@ services:
9494
--base-path /tmp/blockchain \
9595
--chain raw_testspec.json \
9696
--rpc-external --rpc-cors all \
97-
--ws-external --no-mdns \
98-
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
97+
--no-mdns \
98+
--in-peers 500 --out-peers 500 \
9999
--bootnodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
100100
--pruning=archive

0 commit comments

Comments
 (0)