From f7d0f6f9f5eda6293436cdd491f7bacb1a30b108 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Wed, 8 Jul 2026 03:37:18 +0530 Subject: [PATCH] fix: Update Dockerfiles to use ci.nxtgauge.com registry --- .env.test111 | 79 +++++++++++++++++++ Dockerfile.base | 2 +- Dockerfile.fast | 2 +- Dockerfile.migrate | 4 +- Dockerfile.optimized | 2 +- Dockerfile.superfast | 2 +- Dockerfile.template | 4 +- Dockerfile.ultrafast | 2 +- Dockerfile.working | 2 +- apps/catering_services/Dockerfile | 4 +- apps/companies/Dockerfile | 4 +- apps/cron/Dockerfile | 4 +- apps/customers/Dockerfile | 4 +- apps/developers/Dockerfile | 4 +- apps/employees/Dockerfile | 4 +- apps/fitness_trainers/Dockerfile | 4 +- apps/gateway/Dockerfile | 4 +- apps/graphic_designers/Dockerfile | 4 +- apps/job_seekers/Dockerfile | 4 +- apps/jobs/Dockerfile | 4 +- apps/leads/Dockerfile | 4 +- apps/makeup_artists/Dockerfile | 4 +- apps/payments/Dockerfile | 4 +- apps/photographers/Dockerfile | 4 +- apps/social_media_managers/Dockerfile | 4 +- apps/tutors/Dockerfile | 4 +- apps/ugc_content_creators/Dockerfile | 4 +- apps/users/Dockerfile | 4 +- apps/video_editors/Dockerfile | 4 +- scripts/deploy-smtp-test111.sh | 107 ++++++++++++++++++++++++++ 30 files changed, 236 insertions(+), 50 deletions(-) create mode 100644 .env.test111 create mode 100755 scripts/deploy-smtp-test111.sh diff --git a/.env.test111 b/.env.test111 new file mode 100644 index 0000000..c82cc49 --- /dev/null +++ b/.env.test111 @@ -0,0 +1,79 @@ +# Nxtgauge Backend — Environment Variables for test111.nxtgauge.com +# Copy this file to .env and fill in the actual values. + +# ── Database ───────────────────────────────────────────────────────────────── +POSTGRES_PASSWORD=nxtgauge_dev +DATABASE_URL=postgresql://nxtgauge:nxtgauge_dev@localhost:5432/nxtgauge_db + +# ── Auth ────────────────────────────────────────────────────────────────────── +# Generate with: openssl rand -base64 64 +JWT_SECRET=change-me-to-a-secure-random-string-of-at-least-64-chars +JWT_EXPIRY_MINUTES=15 +REFRESH_TOKEN_EXPIRY_DAYS=30 + +# ── SMTP (ZeptoMail/Zoho) ────────────────────────────────────────────────── +# These are the ZeptoMail configuration values for sending emails +# Username is always "emailapikey" for ZeptoMail SMTP +# Password is your ZeptoMail API key +EMAIL_PROVIDER=SMTP +SMTP_HOST=smtp.zeptomail.in +SMTP_PORT=587 +SMTP_USER=emailapikey +SMTP_PASS=PHtE6r1ZR+zi3jV88RNW4/O4F8CkPdksqO9iJAhA4YcTD6dQFk1S+dl/wDC3/h97AKYWFfSczo1rt72etOuDLTnrMjlEDWqyqK3sx/VYSPOZsbq6x00esVgYdEfYVYDpcNFj3SPQut7dNA== +SMTP_FROM_EMAIL=support@nxtgauge.com +SMTP_FROM_NAME=NXTGAUGE +SMTP_SECURE=true +SMTP_REPLY_TO=support@nxtgauge.com + +# ── Demo Account Emails (comma-separated) ─────────────────────────────────── +# These emails bypass email verification (for testing) +DEMO_ACCOUNT_EMAILS=test@example.com,demo@nxtgauge.com + +# ── Object Storage (Backblaze B2 S3-Compatible) ───────────────────────────── +B2_BUCKET_NAME=Nxtgauge-object +B2_REGION=eu-central-003 +B2_ENDPOINT=https://s3.eu-central-003.backblazeb2.com +B2_ACCESS_KEY_ID=replace-with-b2-key-id +B2_SECRET_ACCESS_KEY=replace-with-b2-secret +B2_USE_PATH_STYLE=true + +# ── Payments ────────────────────────────────────────────────────────────────── +RAZORPAY_KEY_ID=rzp_test_... +RAZORPAY_KEY_SECRET=... + +# ── Frontend ────────────────────────────────────────────────────────────────── +FRONTEND_URL=https://test111.nxtgauge.com +ADMIN_URL=https://admin.test111.nxtgauge.com + +# ── Service Ports (local development, for running services individually) ────── +GATEWAY_PORT=9100 +USERS_PORT=9101 +COMPANIES_PORT=9102 +JOB_SEEKERS_PORT=9104 +CUSTOMERS_PORT=9105 +PHOTOGRAPHERS_PORT=9107 +MAKEUP_ARTISTS_PORT=9109 +TUTORS_PORT=9108 +DEVELOPERS_PORT=9110 +VIDEO_EDITORS_PORT=9111 +GRAPHIC_DESIGNERS_PORT=9112 +SOCIAL_MEDIA_MANAGERS_PORT=9113 +FITNESS_TRAINERS_PORT=9114 +CATERING_SERVICES_PORT=9115 +PAYMENTS_PORT=9116 + +# ── Service URLs (used by gateway — override only for non-Docker dev) ───────── +USERS_SERVICE_URL=http://localhost:9101 +COMPANIES_SERVICE_URL=http://localhost:9102 +JOB_SEEKERS_SERVICE_URL=http://localhost:9104 +CUSTOMERS_SERVICE_URL=http://localhost:9105 +PHOTOGRAPHERS_SERVICE_URL=http://localhost:9107 +MAKEUP_ARTISTS_SERVICE_URL=http://localhost:9109 +TUTORS_SERVICE_URL=http://localhost:9108 +DEVELOPERS_SERVICE_URL=http://localhost:9110 +VIDEO_EDITORS_SERVICE_URL=http://localhost:9111 +GRAPHIC_DESIGNERS_SERVICE_URL=http://localhost:9112 +SOCIAL_MEDIA_MANAGERS_SERVICE_URL=http://localhost:9113 +FITNESS_TRAINERS_SERVICE_URL=http://localhost:9114 +CATERING_SERVICES_SERVICE_URL=http://localhost:9115 +PAYMENTS_SERVICE_URL=http://localhost:9116 diff --git a/Dockerfile.base b/Dockerfile.base index 93a4ef1..88da7ce 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -1,7 +1,7 @@ # Base image with all dependencies pre-compiled # Build once, use for all services -FROM registry.nxtgauge.com/rust:alpine AS chef +FROM ci.nxtgauge.com/admin/rust:alpine AS chef RUN apk add --no-cache musl-dev pkgconfig openssl-dev && \ rustup target add x86_64-unknown-linux-musl && \ cargo install cargo-chef diff --git a/Dockerfile.fast b/Dockerfile.fast index bda5753..523f6fc 100644 --- a/Dockerfile.fast +++ b/Dockerfile.fast @@ -2,7 +2,7 @@ # Build: docker build --build-arg SERVICE_NAME=users -f Dockerfile.fast . # Stage 1: Chef - Prepare dependency recipe -FROM registry.nxtgauge.com/rust:alpine AS chef +FROM ci.nxtgauge.com/admin/rust:alpine AS chef RUN apk add --no-cache musl-dev pkgconfig openssl-dev && \ rustup target add x86_64-unknown-linux-musl && \ cargo install cargo-chef diff --git a/Dockerfile.migrate b/Dockerfile.migrate index f228fe6..b9a72e1 100644 --- a/Dockerfile.migrate +++ b/Dockerfile.migrate @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /app @@ -19,7 +19,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin db-migrate --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:3.20 +FROM ci.nxtgauge.com/admin/alpine:3.20 RUN apk add --no-cache ca-certificates libpq COPY --from=builder /app/crates/db-migrate/target/x86_64-unknown-linux-musl/release/db-migrate /usr/local/bin/ diff --git a/Dockerfile.optimized b/Dockerfile.optimized index 6d4da46..b905121 100644 --- a/Dockerfile.optimized +++ b/Dockerfile.optimized @@ -2,7 +2,7 @@ # Usage: docker build --build-arg SERVICE_NAME=gateway -t nxtgauge-gateway . # Stage 1: Base builder with dependencies cached -FROM registry.nxtgauge.com/rust:alpine AS chef +FROM ci.nxtgauge.com/admin/rust:alpine AS chef RUN apk add --no-cache musl-dev pkgconfig openssl-dev ca-certificates && \ rustup target add x86_64-unknown-linux-musl && \ cargo install cargo-chef diff --git a/Dockerfile.superfast b/Dockerfile.superfast index 6107cda..403be7f 100644 --- a/Dockerfile.superfast +++ b/Dockerfile.superfast @@ -5,7 +5,7 @@ ARG SERVICE_NAME # Stage 1: Use pre-built base with all dependencies cached # Build base with: docker build -f Dockerfile.base -t registry.nxtgauge.com/nxtgauge-rust-base:latest . -FROM registry.nxtgauge.com/nxtgauge-rust-base:latest AS builder +FROM ci.nxtgauge.com/admin/nxtgauge-rust-base:latest AS builder ARG SERVICE_NAME WORKDIR /app diff --git a/Dockerfile.template b/Dockerfile.template index 1c9b816..727de55 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -1,5 +1,5 @@ # Build stage -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -17,7 +17,7 @@ ENV RUSTFLAGS='-C target-feature=+crt-static' RUN cargo build --release --bin ${BIN_NAME} --target x86_64-unknown-linux-musl # Runtime stage - minimal Alpine -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime # Install CA certificates only RUN apk add --no-cache ca-certificates diff --git a/Dockerfile.ultrafast b/Dockerfile.ultrafast index bd7aaa8..d61b667 100644 --- a/Dockerfile.ultrafast +++ b/Dockerfile.ultrafast @@ -5,7 +5,7 @@ ARG SERVICE_NAME # Use the pre-built base image with all dependencies cached -FROM registry.nxtgauge.com/nxtgauge-rust-base:latest AS builder +FROM ci.nxtgauge.com/admin/nxtgauge-rust-base:latest AS builder ARG SERVICE_NAME WORKDIR /app diff --git a/Dockerfile.working b/Dockerfile.working index 93723af..6e8fb63 100644 --- a/Dockerfile.working +++ b/Dockerfile.working @@ -1,5 +1,5 @@ # Simple fast Dockerfile - preserves full workspace -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder # Install build deps RUN apk add --no-cache curl ca-certificates bash build-base musl-dev pkgconfig openssl-dev openssl-libs-static diff --git a/apps/catering_services/Dockerfile b/apps/catering_services/Dockerfile index a22ff5a..6f09ada 100644 --- a/apps/catering_services/Dockerfile +++ b/apps/catering_services/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin catering_services --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/companies/Dockerfile b/apps/companies/Dockerfile index 57ea0c6..64e2631 100644 --- a/apps/companies/Dockerfile +++ b/apps/companies/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin companies --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/cron/Dockerfile b/apps/cron/Dockerfile index 72c23c5..d7de890 100644 --- a/apps/cron/Dockerfile +++ b/apps/cron/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin cron --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/customers/Dockerfile b/apps/customers/Dockerfile index 0c1c9af..ad7dcdb 100644 --- a/apps/customers/Dockerfile +++ b/apps/customers/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin customers --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/developers/Dockerfile b/apps/developers/Dockerfile index 31a5932..de079b8 100644 --- a/apps/developers/Dockerfile +++ b/apps/developers/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin developers --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/employees/Dockerfile b/apps/employees/Dockerfile index 04e1915..2ff0bda 100644 --- a/apps/employees/Dockerfile +++ b/apps/employees/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin employees --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/fitness_trainers/Dockerfile b/apps/fitness_trainers/Dockerfile index 5cdb753..41d235c 100644 --- a/apps/fitness_trainers/Dockerfile +++ b/apps/fitness_trainers/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin fitness_trainers --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/gateway/Dockerfile b/apps/gateway/Dockerfile index f5c5e69..c2b7596 100644 --- a/apps/gateway/Dockerfile +++ b/apps/gateway/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -16,7 +16,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin gateway --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/graphic_designers/Dockerfile b/apps/graphic_designers/Dockerfile index dc191dc..bc38204 100644 --- a/apps/graphic_designers/Dockerfile +++ b/apps/graphic_designers/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin graphic_designers --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/job_seekers/Dockerfile b/apps/job_seekers/Dockerfile index 0a9ef5c..a7c31d4 100644 --- a/apps/job_seekers/Dockerfile +++ b/apps/job_seekers/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin job_seekers --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/jobs/Dockerfile b/apps/jobs/Dockerfile index 70c4d42..20ac648 100644 --- a/apps/jobs/Dockerfile +++ b/apps/jobs/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin jobs --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/leads/Dockerfile b/apps/leads/Dockerfile index 5f7a218..a6137fa 100644 --- a/apps/leads/Dockerfile +++ b/apps/leads/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin leads --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/makeup_artists/Dockerfile b/apps/makeup_artists/Dockerfile index 95c0332..653a28f 100644 --- a/apps/makeup_artists/Dockerfile +++ b/apps/makeup_artists/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin makeup_artists --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/payments/Dockerfile b/apps/payments/Dockerfile index 25efad7..26a49be 100644 --- a/apps/payments/Dockerfile +++ b/apps/payments/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin payments --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/photographers/Dockerfile b/apps/photographers/Dockerfile index a55e5f2..a151aa4 100644 --- a/apps/photographers/Dockerfile +++ b/apps/photographers/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin photographers --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/social_media_managers/Dockerfile b/apps/social_media_managers/Dockerfile index bdcd6c1..cc7f387 100644 --- a/apps/social_media_managers/Dockerfile +++ b/apps/social_media_managers/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin social_media_managers --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/tutors/Dockerfile b/apps/tutors/Dockerfile index 3dc99a1..72008b2 100644 --- a/apps/tutors/Dockerfile +++ b/apps/tutors/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin tutors --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/ugc_content_creators/Dockerfile b/apps/ugc_content_creators/Dockerfile index 1f32a31..6b9d94b 100644 --- a/apps/ugc_content_creators/Dockerfile +++ b/apps/ugc_content_creators/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin ugc_content_creators --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/users/Dockerfile b/apps/users/Dockerfile index 7f380bd..e219b0f 100644 --- a/apps/users/Dockerfile +++ b/apps/users/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin users --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/apps/video_editors/Dockerfile b/apps/video_editors/Dockerfile index 0a94075..f304d51 100644 --- a/apps/video_editors/Dockerfile +++ b/apps/video_editors/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.nxtgauge.com/rust:alpine AS builder +FROM ci.nxtgauge.com/admin/rust:alpine AS builder WORKDIR /usr/src/app @@ -14,7 +14,7 @@ ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr RUN cargo build --release --bin video_editors --target x86_64-unknown-linux-musl -FROM registry.nxtgauge.com/alpine:latest AS runtime +FROM ci.nxtgauge.com/admin/alpine:latest AS runtime RUN apk add --no-cache ca-certificates diff --git a/scripts/deploy-smtp-test111.sh b/scripts/deploy-smtp-test111.sh new file mode 100755 index 0000000..359c20b --- /dev/null +++ b/scripts/deploy-smtp-test111.sh @@ -0,0 +1,107 @@ +#!/bin/bash +# Deploy environment variables to test111.nxtgauge.com +# This script updates the Kubernetes ConfigMap or Docker environment + +set -e + +echo "=== Nxtgauge Test111 Environment Setup ===" +echo "" + +# Configuration +NAMESPACE="nxtgauge" +CONFIGMAP_NAME="nxtgauge-config" +SECRET_NAME="nxtgauge-secrets" +DEPLOYMENT_NAME="nxtgauge-rust-gateway" + +# Colors for output +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +NC='\033[0m' # No Color + +echo -e "${YELLOW}Step 1: Checking kubectl access...${NC}" +if ! kubectl cluster-info > /dev/null 2>&1; then + echo -e "${RED}Error: Cannot connect to Kubernetes cluster${NC}" + echo "Please ensure:" + echo " 1. kubectl is installed" + echo " 2. You have access to the test111 cluster" + echo " 3. Your kubeconfig is properly set up" + exit 1 +fi +echo -e "${GREEN}✓ Kubernetes cluster accessible${NC}" + +echo "" +echo -e "${YELLOW}Step 2: Checking namespace...${NC}" +if ! kubectl get namespace "$NAMESPACE" > /dev/null 2>&1; then + echo -e "${RED}Error: Namespace '$NAMESPACE' not found${NC}" + exit 1 +fi +echo -e "${GREEN}✓ Namespace '$NAMESPACE' exists${NC}" + +echo "" +echo -e "${YELLOW}Step 3: Creating/updating ConfigMap with SMTP settings...${NC}" + +# Create ConfigMap with SMTP configuration +cat <