Skip to content

Commit

Permalink
Merge pull request #496 from opentensor/hotfix/docker
Browse files Browse the repository at this point in the history
Hotfix/docker
  • Loading branch information
distributedstatemachine authored May 31, 2024
2 parents 686e6fb + f84b277 commit cbd42df
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 9 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Docker Image

on:
push:
branches:
- main
tags:
- '*'
workflow_dispatch:

jobs:
publish:
runs-on: SubtensorCI

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ volumes:

services:
common: &common
image: opentensor/subtensor:latest
image: ghcr.io/opentensor/subtensor:latest
build:
context: .
dockerfile: Dockerfile
Expand Down Expand Up @@ -40,8 +40,8 @@ services:
--base-path /tmp/blockchain \
--chain raw_spec.json \
--rpc-external --rpc-cors all \
--ws-external --no-mdns \
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
--no-mdns \
--in-peers 500 --out-peers 500 \
--bootnodes /dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC \
--sync warp
Expand All @@ -58,8 +58,8 @@ services:
--base-path /tmp/blockchain \
--chain raw_spec.json \
--rpc-external --rpc-cors all \
--ws-external --no-mdns \
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
--no-mdns \
--in-peers 500 --out-peers 500 \
--bootnodes /dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC \
--pruning=archive
Expand All @@ -76,8 +76,8 @@ services:
--base-path /tmp/blockchain \
--chain raw_testspec.json \
--rpc-external --rpc-cors all \
--ws-external --no-mdns \
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
--no-mdns \
--in-peers 500 --out-peers 500 \
--bootnodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
--sync warp
Expand All @@ -94,7 +94,7 @@ services:
--base-path /tmp/blockchain \
--chain raw_testspec.json \
--rpc-external --rpc-cors all \
--ws-external --no-mdns \
--ws-max-connections 10000 --in-peers 500 --out-peers 500 \
--no-mdns \
--in-peers 500 --out-peers 500 \
--bootnodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
--pruning=archive

0 comments on commit cbd42df

Please sign in to comment.