diff --git a/.deploy/prod-deploy/deploy-likei-services.sh b/.deploy/prod-deploy/deploy-likei-services.sh index e797cd4a..bb7c0abf 100755 --- a/.deploy/prod-deploy/deploy-likei-services.sh +++ b/.deploy/prod-deploy/deploy-likei-services.sh @@ -23,11 +23,13 @@ FALLBACK_BASE_IMAGE="${FALLBACK_BASE_IMAGE:-eclipse-temurin:17-jdk-jammy}" usage() { cat <<'EOF' Usage: - deploy-likei-services.sh [--mode preload|push|build-only|status] [--skip-build] [other|external|console ...] + deploy-likei-services.sh [--mode preload|push|build-only|status] [--skip-build] [--fast] [wallet|other|external|console ...] Examples: /opt/aslan-deploy/deploy-likei-services.sh status + /opt/aslan-deploy/deploy-likei-services.sh --mode preload wallet /opt/aslan-deploy/deploy-likei-services.sh --mode preload other external console + /opt/aslan-deploy/deploy-likei-services.sh --fast wallet USE_GIT_SOURCE=1 GIT_REF=aslan_prod /opt/aslan-deploy/deploy-likei-services.sh --mode preload other MODE=push ALIYUN_USER=xxx ALIYUN_PASS=xxx /opt/aslan-deploy/deploy-likei-services.sh other @@ -102,6 +104,7 @@ update_source_from_git() { service_module() { case "$1" in + wallet) echo "rc-service/rc-service-wallet/wallet-start" ;; other) echo "rc-service/rc-service-other/other-start" ;; external) echo "rc-service/rc-service-external/external-start" ;; console) echo "rc-service/rc-service-console/console-start" ;; @@ -111,6 +114,7 @@ service_module() { service_dir() { case "$1" in + wallet) echo "rc-service/rc-service-wallet" ;; other) echo "rc-service/rc-service-other" ;; external) echo "rc-service/rc-service-external" ;; console) echo "rc-service/rc-service-console" ;; @@ -120,6 +124,7 @@ service_dir() { image_repo() { case "$1" in + wallet) echo "$IMAGE_REGISTRY/$IMAGE_PROJECT/wallet" ;; other) echo "$IMAGE_REGISTRY/$IMAGE_PROJECT/other" ;; external) echo "$IMAGE_REGISTRY/$IMAGE_PROJECT/external" ;; console) echo "$IMAGE_REGISTRY/$IMAGE_PROJECT/console" ;; @@ -290,7 +295,7 @@ rollout() { } status() { - kubectl --kubeconfig "$KUBECONFIG" -n "$NAMESPACE" get deploy other external console -o wide + kubectl --kubeconfig "$KUBECONFIG" -n "$NAMESPACE" get deploy wallet other external console -o wide kubectl --kubeconfig "$KUBECONFIG" get nodes -o wide } @@ -306,6 +311,11 @@ main() { SKIP_BUILD=1 shift ;; + --fast) + # Code-only wallet changes can keep Maven's target cache instead of forcing clean package. + MAVEN_GOALS=package + shift + ;; -h|--help) usage exit 0 diff --git a/.deploy/prod-deploy/ops/aslan_ops.py b/.deploy/prod-deploy/ops/aslan_ops.py index 2899482f..67d89293 100644 --- a/.deploy/prod-deploy/ops/aslan_ops.py +++ b/.deploy/prod-deploy/ops/aslan_ops.py @@ -37,6 +37,11 @@ ALLOWED_BRANCHES = { } SERVICES = { + "wallet": { + "label": "Wallet", + "port": "9000", + "health": "/actuator/health", + }, "other": { "label": "Other", "port": "5800", @@ -749,7 +754,7 @@ INDEX_HTML = """