From f8edb2b40726e6bf0c771858d8cf3331378e1724 Mon Sep 17 00:00:00 2001 From: jknapp Date: Mon, 21 Jul 2025 16:17:16 -0700 Subject: [PATCH] Change container name from cnc to cnoc to avoid nginx container conflict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update Gitea pipeline to build cnoc:node18, cnoc:node20, cnoc:node22 - Update local-dev.sh to use cnoc container from registry - Update documentation references from CNC to CNOC - Update default app package name to cnoc-default-app - Avoid conflict with existing nginx container (cnc) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitea/workflows/build-push.yaml | 4 ++-- CLAUDE.md | 8 ++++---- README.md | 2 +- configs/package.json | 2 +- local-dev.sh | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index 3aa9b3c..cc48f9b 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -36,5 +36,5 @@ jobs: build-args: | NODEVER=${{ matrix.nodever }} tags: | - repo.anhonesthost.net/cloud-hosting-platform/cnc:node${{ matrix.nodever }} - ${{ matrix.nodever == '20' && 'repo.anhonesthost.net/cloud-hosting-platform/cnc:latest' || '' }} \ No newline at end of file + repo.anhonesthost.net/cloud-hosting-platform/cnoc:node${{ matrix.nodever }} + ${{ matrix.nodever == '20' && 'repo.anhonesthost.net/cloud-hosting-platform/cnoc:latest' || '' }} \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md index 3dadc91..1632d67 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -Cloud Node Container (CNC) is a Docker-based Node.js hosting environment that supports multiple Node.js versions (18, 20, 22) with Nginx reverse proxy, designed for both local development and production deployment. +Cloud Node Container (CNOC) is a Docker-based Node.js hosting environment that supports multiple Node.js versions (18, 20, 22) with Nginx reverse proxy, designed for both local development and production deployment. ## Common Development Commands @@ -26,17 +26,17 @@ Cloud Node Container (CNC) is a Docker-based Node.js hosting environment that su ### Building and Testing ```bash # Build container locally -docker build -t cloud-node-container:latest . +docker build -t cnoc:latest . # Build with specific Node.js version -docker build --build-arg NODEVER=22 -t cnc:node22 . +docker build --build-arg NODEVER=22 -t cnoc:node22 . # Run container manually docker run -d -p 80:80 -p 443:443 \ -e NODEVER=20 -e environment=DEV \ -e uid=$(id -u) -e user=$(whoami) -e domain=localhost \ -v"$(pwd)/user":/home/$(whoami) \ - --name test-container cloud-node-container:latest + --name test-container cnoc:latest ``` ### Server Deployment diff --git a/README.md b/README.md index 21536e8..6edfc4e 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ mkdir -p local-development/domain.tld cd local-development/domain.tld mkdir user mkdir -p user/{app,logs/{nginx,nodejs}} -docker run -d -p 80:80 -p 443:443 -e NODEVER=20 -e environment=DEV --mount type=bind,source="$(pwd)"/user,target=/home/$(whoami) -e uid=$(id -u) -e user=$(whoami) -e domain=localhost --name local-dev cloud-node-container:latest +docker run -d -p 80:80 -p 443:443 -e NODEVER=20 -e environment=DEV --mount type=bind,source="$(pwd)"/user,target=/home/$(whoami) -e uid=$(id -u) -e user=$(whoami) -e domain=localhost --name local-dev repo.anhonesthost.net/cloud-hosting-platform/cnoc:latest ``` --- diff --git a/configs/package.json b/configs/package.json index 6c72df8..7714f62 100644 --- a/configs/package.json +++ b/configs/package.json @@ -1,5 +1,5 @@ { - "name": "cloud-node-container", + "name": "cnoc-default-app", "version": "1.0.0", "description": "Default Node.js application for Cloud Node Container", "main": "index.js", diff --git a/local-dev.sh b/local-dev.sh index ec17c9e..abd008a 100755 --- a/local-dev.sh +++ b/local-dev.sh @@ -61,7 +61,7 @@ if [ ! -f "$root_path/user/app/package.json" ]; then sed -i "s/\/home\/myuser/\/home\/$user/g" "$root_path/user/app/ecosystem.config.js" fi -$check_docker run --pull=always -d -p "$http_port":80 -p "$https_port":443 -e NODEVER=$nodever -e environment=DEV --mount type=bind,source="$root_path"/user,target=/home/"$user" --mount type=bind,source="$(pwd)"/user/logs/nginx,target=/var/log/nginx --mount type=bind,source="$(pwd)"/user/logs/nodejs,target=/var/log/nodejs -e uid="$uid" -e user="$user" -e domain="$name-local.dev" --name "$name" cloud-node-container:latest +$check_docker run --pull=always -d -p "$http_port":80 -p "$https_port":443 -e NODEVER=$nodever -e environment=DEV --mount type=bind,source="$root_path"/user,target=/home/"$user" --mount type=bind,source="$(pwd)"/user/logs/nginx,target=/var/log/nginx --mount type=bind,source="$(pwd)"/user/logs/nodejs,target=/var/log/nodejs -e uid="$uid" -e user="$user" -e domain="$name-local.dev" --name "$name" repo.anhonesthost.net/cloud-hosting-platform/cnoc:latest echo "Creating management scripts in root directory..." echo "#!/usr/bin/env bash" > "$root_path/instance_start"