amsd-pipeline 2.0.79 → 2.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.sh +5 -18
- package/package.json +1 -1
package/install.sh
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
# in .env or the environment — recording without them is
|
|
10
10
|
# silent, and a run not recorded can never be replayed)
|
|
11
11
|
# ./install.sh --check verify an existing install, change nothing
|
|
12
|
-
# ./install.sh --workflows [file.tgz] also install the Claude workflows (amsd-pipeline-workflow) into claude-workflows/,
|
|
13
|
-
# the version orchestrations/config/claude-workflows.json pins, or a local package
|
|
14
12
|
# ./install.sh --dest ~/somewhere --ref v1.7 package that ref into a NEW tree, then install it
|
|
15
13
|
#
|
|
16
14
|
# --dest IS THE WHOLE POINT FOR ANYONE WHO IS NOT THIS CHECKOUT. Without it, install.sh only ever
|
|
@@ -57,7 +55,7 @@ CONTAINER_RUNTIME="${EPAM_CONTAINER_RUNTIME:-}"
|
|
|
57
55
|
# without it can never be replayed, because the turns were never captured. Off by default — 2.36GB
|
|
58
56
|
# of images is not a silent opt-in — but the consequence is one-way, so it is STATED either way.
|
|
59
57
|
REPLAY_MODE="${EPAM_REPLAY:-off}"
|
|
60
|
-
DEST=""; REF=""; REPO_URL=""; UNINSTALL=0
|
|
58
|
+
DEST=""; REF=""; REPO_URL=""; UNINSTALL=0
|
|
61
59
|
while [ $# -gt 0 ]; do
|
|
62
60
|
case "$1" in
|
|
63
61
|
--dest) DEST="${2:-}"; shift 2 ;;
|
|
@@ -81,10 +79,8 @@ while [ $# -gt 0 ]; do
|
|
|
81
79
|
esac
|
|
82
80
|
shift 2 ;;
|
|
83
81
|
--check) CHECK_ONLY=1; shift ;;
|
|
84
|
-
--workflows)
|
|
85
|
-
if [ -n "${2:-}" ] && [ "${2#--}" = "${2}" ]; then WORKFLOWS="$2"; shift 2; else WORKFLOWS=pinned; shift; fi ;;
|
|
86
82
|
--uninstall) UNINSTALL=1; shift ;;
|
|
87
|
-
--help|-h) sed -n '2,
|
|
83
|
+
--help|-h) sed -n '2,15p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
|
|
88
84
|
*) _bad "unknown option '$1'"; exit 1 ;;
|
|
89
85
|
esac
|
|
90
86
|
done
|
|
@@ -686,12 +682,6 @@ else
|
|
|
686
682
|
fi
|
|
687
683
|
|
|
688
684
|
# ── Container runtime ─────────────────────────────────────────────────────────
|
|
689
|
-
if [ -n "$WORKFLOWS" ]; then
|
|
690
|
-
_head "Claude workflows"
|
|
691
|
-
. "$INSTALLER_DIR/lib/claude-workflows.sh"
|
|
692
|
-
install_claude_workflows "$ROOT" "$WORKFLOWS" "$CHECK_ONLY" || FAILED=1
|
|
693
|
-
fi
|
|
694
|
-
|
|
695
685
|
_head "Container runtime"
|
|
696
686
|
# ONE RESOLVER, ASKED — not a third copy of the rule. The installer, dashboard-health-check.sh and
|
|
697
687
|
# pre-run-reset.sh each had their own idea of which runtime to use, and only this one had ever
|
|
@@ -833,7 +823,7 @@ compose_up() {
|
|
|
833
823
|
|
|
834
824
|
for _subnet in $(isolated_subnet_candidates "$ROOT"); do
|
|
835
825
|
# ATTEMPT 0 KEEPS THE WELL-KNOWN PORTS EXACTLY (offset 0) — a normal single-install machine
|
|
836
|
-
# sees no change at all, still :3100, :8092, :
|
|
826
|
+
# sees no change at all, still :3100, :8092, :3001. Only a genuine collision (this
|
|
837
827
|
# exact stack already running, or a second install) steps to the next attempt's offset, so
|
|
838
828
|
# no manual port flag is ever required for this to just work.
|
|
839
829
|
local _off=$((_i * 10))
|
|
@@ -843,13 +833,11 @@ compose_up() {
|
|
|
843
833
|
# it exited 0 over six containers stuck in `created` with "address already in use", so
|
|
844
834
|
# nothing discovered the clash at all. Each service takes the first genuinely free port
|
|
845
835
|
# at or after its candidate, so another install holding 3100 costs one step, not a run.
|
|
846
|
-
local
|
|
847
|
-
_p_ch="$(find_free_port $((8123 + _off)))" || { _bad "no free port for clickhouse"; return 1; }
|
|
836
|
+
local _p_lf _p_dash _p_graf
|
|
848
837
|
_p_lf="$(find_free_port $((3100 + _off)))" || { _bad "no free port for langfuse"; return 1; }
|
|
849
838
|
_p_dash="$(find_free_port $((8092 + _off)))" || { _bad "no free port for the dashboard"; return 1; }
|
|
850
839
|
_p_graf="$(find_free_port $((3001 + _off)))" || { _bad "no free port for grafana"; return 1; }
|
|
851
840
|
if (cd "$ROOT" && EPAM_OBS_SUBNET="$_subnet" \
|
|
852
|
-
EPAM_OBS_CLICKHOUSE_PORT="$_p_ch" \
|
|
853
841
|
EPAM_OBS_LANGFUSE_PORT="$_p_lf" \
|
|
854
842
|
EPAM_OBS_DASHBOARD_PORT="$_p_dash" \
|
|
855
843
|
EPAM_OBS_GRAFANA_PORT="$_p_graf" \
|
|
@@ -868,7 +856,7 @@ compose_up() {
|
|
|
868
856
|
# every candidate, burning through all of them and hiding the real error behind repeats.
|
|
869
857
|
grep -qiE 'overlap|pool|port is already allocated|address already in use' "$_log" || break
|
|
870
858
|
# TEAR DOWN BEFORE THE NEXT ATTEMPT. A failed `up -d` still CREATES whatever services it
|
|
871
|
-
# got to before the failing one — found live: postgres/redis
|
|
859
|
+
# got to before the failing one — found live: postgres/redis started fine on
|
|
872
860
|
# attempt 0, agent-monitor's port collision failed the overall command, and attempt 1's
|
|
873
861
|
# NEW port env was silently ignored for the already-Created containers, which stayed bound
|
|
874
862
|
# to attempt 0's (colliding) ports. Compose does not cleanly re-resolve an already-created
|
|
@@ -894,7 +882,6 @@ compose_up() {
|
|
|
894
882
|
# (find_free_port), so an offset that was occupied yields a different port — recording
|
|
895
883
|
# the formula instead of the result would make this file name ports no container listens
|
|
896
884
|
# on, and service_url()/langfuse-emit.js read it to find this install's own services.
|
|
897
|
-
printf 'OBS_CLICKHOUSE_PORT=%s\n' "$_p_ch"
|
|
898
885
|
printf 'OBS_LANGFUSE_PORT=%s\n' "$_p_lf"
|
|
899
886
|
printf 'OBS_DASHBOARD_PORT=%s\n' "$_p_dash"
|
|
900
887
|
printf 'OBS_GRAFANA_PORT=%s\n' "$_p_graf"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amsd-pipeline",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.81",
|
|
4
4
|
"description": "Installer for the amsd-pipeline orchestration stack. Clones, packages and provisions the full stack with one command — no separate git clone step.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"amsd-pipeline": "bin/amsd-pipeline.js"
|