mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
fix: update image references from bootnode/ to ghcr.io/hanzoai/bootnode
Updated all container image references across compose, K8s manifests, cloud deploy scripts, and tests to use the ghcr.io/hanzoai/bootnode registry format.
This commit is contained in:
@@ -11,7 +11,7 @@ Usage:
|
||||
from bootnode.core.deploy import get_deployer, ServiceType
|
||||
|
||||
deployer = get_deployer()
|
||||
await deployer.deploy(ServiceType.API, "bootnode/api:latest", replicas=2)
|
||||
await deployer.deploy(ServiceType.API, "ghcr.io/hanzoai/bootnode:api-latest", replicas=2)
|
||||
status = await deployer.status(ServiceType.API)
|
||||
async for line in deployer.logs(ServiceType.API, tail=50):
|
||||
print(line)
|
||||
|
||||
@@ -60,12 +60,12 @@ class TestServiceStatus:
|
||||
ready_replicas=2,
|
||||
cpu_usage=25.5,
|
||||
memory_usage=512.0,
|
||||
image="bootnode/api:latest",
|
||||
image="ghcr.io/hanzoai/bootnode:api-latest",
|
||||
started_at="2024-01-15T10:00:00Z",
|
||||
)
|
||||
assert status.cpu_usage == 25.5
|
||||
assert status.memory_usage == 512.0
|
||||
assert status.image == "bootnode/api:latest"
|
||||
assert status.image == "ghcr.io/hanzoai/bootnode:api-latest"
|
||||
|
||||
|
||||
class TestDeployTarget:
|
||||
|
||||
+13
-13
@@ -55,14 +55,14 @@ build_images() {
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
# Build API
|
||||
docker build -t bootnode/api:latest -f api/Dockerfile api/
|
||||
docker build -t ghcr.io/hanzoai/bootnode:api-latest -f api/Dockerfile api/
|
||||
|
||||
# Build Web
|
||||
docker build -t bootnode/web:latest -f web/Dockerfile web/
|
||||
docker build -t ghcr.io/hanzoai/bootnode:web-latest -f web/Dockerfile web/
|
||||
|
||||
# Build Indexer (if exists)
|
||||
if [ -d "indexer" ]; then
|
||||
docker build -t bootnode/indexer:latest -f indexer/Dockerfile indexer/
|
||||
docker build -t ghcr.io/hanzoai/bootnode:indexer-latest -f indexer/Dockerfile indexer/
|
||||
fi
|
||||
|
||||
log_info "Images built successfully"
|
||||
@@ -113,10 +113,10 @@ deploy_aws() {
|
||||
aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $ECR_REGISTRY
|
||||
|
||||
for image in api web indexer; do
|
||||
aws ecr describe-repositories --repository-names bootnode/$image 2>/dev/null || \
|
||||
aws ecr create-repository --repository-name bootnode/$image
|
||||
docker tag bootnode/$image:latest $ECR_REGISTRY/bootnode/$image:latest
|
||||
docker push $ECR_REGISTRY/bootnode/$image:latest
|
||||
aws ecr describe-repositories --repository-names hanzoai/bootnode 2>/dev/null || \
|
||||
aws ecr create-repository --repository-name hanzoai/bootnode
|
||||
docker tag ghcr.io/hanzoai/bootnode:$image-latest $ECR_REGISTRY/hanzoai/bootnode:$image-latest
|
||||
docker push $ECR_REGISTRY/hanzoai/bootnode:$image-latest
|
||||
done
|
||||
|
||||
# Deploy to Kubernetes
|
||||
@@ -147,8 +147,8 @@ deploy_gcp() {
|
||||
# Push images to GCR
|
||||
log_info "Pushing images to GCR..."
|
||||
for image in api web indexer; do
|
||||
docker tag bootnode/$image:latest gcr.io/$PROJECT_ID/bootnode-$image:latest
|
||||
docker push gcr.io/$PROJECT_ID/bootnode-$image:latest
|
||||
docker tag ghcr.io/hanzoai/bootnode:$image-latest gcr.io/$PROJECT_ID/hanzoai-bootnode:$image-latest
|
||||
docker push gcr.io/$PROJECT_ID/hanzoai-bootnode:$image-latest
|
||||
done
|
||||
|
||||
# Deploy to Kubernetes
|
||||
@@ -180,8 +180,8 @@ deploy_azure() {
|
||||
az acr login --name $ACR_NAME
|
||||
|
||||
for image in api web indexer; do
|
||||
docker tag bootnode/$image:latest $ACR_NAME.azurecr.io/bootnode/$image:latest
|
||||
docker push $ACR_NAME.azurecr.io/bootnode/$image:latest
|
||||
docker tag ghcr.io/hanzoai/bootnode:$image-latest $ACR_NAME.azurecr.io/hanzoai/bootnode:$image-latest
|
||||
docker push $ACR_NAME.azurecr.io/hanzoai/bootnode:$image-latest
|
||||
done
|
||||
|
||||
# Deploy to Kubernetes
|
||||
@@ -210,8 +210,8 @@ deploy_digitalocean() {
|
||||
REGISTRY=$(doctl registry get --format RegistryName --no-header)
|
||||
|
||||
for image in api web indexer; do
|
||||
docker tag bootnode/$image:latest registry.digitalocean.com/$REGISTRY/bootnode-$image:latest
|
||||
docker push registry.digitalocean.com/$REGISTRY/bootnode-$image:latest
|
||||
docker tag ghcr.io/hanzoai/bootnode:$image-latest registry.digitalocean.com/$REGISTRY/hanzoai-bootnode:$image-latest
|
||||
docker push registry.digitalocean.com/$REGISTRY/hanzoai-bootnode:$image-latest
|
||||
done
|
||||
|
||||
# Deploy to Kubernetes
|
||||
|
||||
+5
-5
@@ -88,7 +88,7 @@ services:
|
||||
build:
|
||||
context: ../api
|
||||
dockerfile: Dockerfile
|
||||
image: bootnode/api:latest
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
container_name: bootnode-api
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -130,7 +130,7 @@ services:
|
||||
build:
|
||||
context: ../indexer
|
||||
dockerfile: Dockerfile
|
||||
image: bootnode/indexer:latest
|
||||
image: ghcr.io/hanzoai/bootnode:indexer-latest
|
||||
container_name: bootnode-indexer
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -169,7 +169,7 @@ services:
|
||||
build:
|
||||
context: ../api
|
||||
dockerfile: Dockerfile
|
||||
image: bootnode/api:latest
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
container_name: bootnode-webhook-worker
|
||||
restart: unless-stopped
|
||||
command: ["python", "-m", "bootnode.workers.webhook"]
|
||||
@@ -191,7 +191,7 @@ services:
|
||||
build:
|
||||
context: ../bundler
|
||||
dockerfile: Dockerfile
|
||||
image: bootnode/bundler:latest
|
||||
image: ghcr.io/hanzoai/bootnode:bundler-latest
|
||||
container_name: bootnode-bundler
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -216,7 +216,7 @@ services:
|
||||
build:
|
||||
context: ../web
|
||||
dockerfile: Dockerfile
|
||||
image: bootnode/web:latest
|
||||
image: ghcr.io/hanzoai/bootnode:web-latest
|
||||
container_name: bootnode-web
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
|
||||
@@ -217,7 +217,7 @@ spec:
|
||||
spec:
|
||||
initContainers:
|
||||
- name: db-migrate
|
||||
image: bootnode/api:latest
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
command: ["python", "-m", "alembic", "upgrade", "head"]
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
@@ -226,7 +226,7 @@ spec:
|
||||
name: bootnode-secrets
|
||||
containers:
|
||||
- name: api
|
||||
image: bootnode/api:latest
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
envFrom:
|
||||
@@ -286,7 +286,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: bootnode/web:latest
|
||||
image: ghcr.io/hanzoai/bootnode:web-latest
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
|
||||
@@ -28,7 +28,7 @@ spec:
|
||||
serviceAccountName: bootnode-operator
|
||||
containers:
|
||||
- name: operator
|
||||
image: bootnode/operator:2.0.0
|
||||
image: ghcr.io/hanzoai/bootnode:operator-2.0.0
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: OPERATOR_NAMESPACE
|
||||
|
||||
@@ -26,7 +26,7 @@ spec:
|
||||
serviceAccountName: bootnode-indexer
|
||||
containers:
|
||||
- name: indexer
|
||||
image: bootnode/indexer:latest
|
||||
image: ghcr.io/hanzoai/bootnode:indexer-latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
Reference in New Issue
Block a user