@@ -82,45 +82,48 @@ jobs:
8282 echo "=== Disk usage after cleanup ==="
8383 df -h /
8484
85- - name : Build core image
85+ - name : Build base image
8686 run : |
87- ${{ env.CONTAINER_RUNTIME }} build -t langflowai/langflow:core -latest-dev \
87+ ${{ env.CONTAINER_RUNTIME }} build -t langflowai/langflow:base -latest-dev \
8888 -f docker/build_and_push.Dockerfile \
89- --target core \
89+ --target base \
9090 .
9191
92- - name : Test core image
92+ - name : Test base image
9393 run : |
94- expected_version=$(grep '^version = ' src/langflow-core /pyproject.toml | head -n 1 | cut -d '"' -f 2)
95- version=$(${{ env.CONTAINER_RUNTIME }} run --rm --entrypoint python langflowai/langflow:core -latest-dev -c 'from importlib.metadata import version; print(version("langflow-core "))')
94+ expected_version=$(grep '^version = ' src/backend/base /pyproject.toml | head -n 1 | cut -d '"' -f 2)
95+ version=$(${{ env.CONTAINER_RUNTIME }} run --rm --entrypoint python langflowai/langflow:base -latest-dev -c 'from importlib.metadata import version; print(version("langflow-base "))')
9696 if [ "$expected_version" != "$version" ]; then
97- echo "Expected core version: $expected_version"
98- echo "Actual core version: $version"
97+ echo "Expected base version: $expected_version"
98+ echo "Actual base version: $version"
9999 exit 1
100100 fi
101101
102- ${{ env.CONTAINER_RUNTIME }} run --rm --entrypoint python langflowai/langflow:core -latest-dev -c '
102+ ${{ env.CONTAINER_RUNTIME }} run --rm --entrypoint python langflowai/langflow:base -latest-dev -c '
103103 import importlib.metadata as metadata
104104 names = {dist.metadata["Name"].lower() for dist in metadata.distributions()}
105- required = {"langflow-core", "langflow- base", "lfx", "langflow-sdk"}
105+ required = {"langflow-base", "lfx", "langflow-sdk"}
106106 missing = sorted(required - names)
107- forbidden = sorted(name for name in names if name.startswith("lfx-"))
108- assert not missing, f"missing core distributions: {missing}"
107+ forbidden = sorted(
108+ name for name in names
109+ if name.startswith("lfx-") or name in {"langflow-core", "torch", "torchvision"}
110+ )
111+ assert not missing, f"missing base distributions: {missing}"
109112 assert not forbidden, f"extension distributions installed: {forbidden}"
110113 '
111114
112- ${{ env.CONTAINER_RUNTIME }} run --rm --entrypoint bash langflowai/langflow:core -latest-dev -c '
115+ ${{ env.CONTAINER_RUNTIME }} run --rm --entrypoint bash langflowai/langflow:base -latest-dev -c '
113116 command -v langflow >/dev/null
114- command -v langflow-core >/dev/null
117+ ! command -v langflow-base >/dev/null
115118 '
116119
117120 container_id=$(${{ env.CONTAINER_RUNTIME }} run -d \
118- -e LANGFLOW_SUPERUSER_PASSWORD=CoreImageTest -2026! \
119- langflowai/langflow:core -latest-dev)
120- cleanup_core_container () {
121+ -e LANGFLOW_SUPERUSER_PASSWORD=BaseImageTest -2026! \
122+ langflowai/langflow:base -latest-dev)
123+ cleanup_base_container () {
121124 ${{ env.CONTAINER_RUNTIME }} rm -f "$container_id" >/dev/null 2>&1 || true
122125 }
123- trap cleanup_core_container EXIT
126+ trap cleanup_base_container EXIT
124127
125128 healthy=false
126129 for _ in $(seq 1 60); do
@@ -135,15 +138,15 @@ jobs:
135138 done
136139
137140 if [ "$healthy" != "true" ]; then
138- echo "Core image did not become healthy"
141+ echo "Base image did not become healthy"
139142 ${{ env.CONTAINER_RUNTIME }} logs "$container_id" || true
140143 exit 1
141144 fi
142145
143- cleanup_core_container
146+ cleanup_base_container
144147 trap - EXIT
145148
146- - name : Cleanup after core image
149+ - name : Cleanup after base image
147150 if : always()
148151 run : |
149152 echo "=== Disk usage before cleanup ==="
@@ -152,8 +155,8 @@ jobs:
152155 if [ -n "$container_id" ]; then
153156 ${{ env.CONTAINER_RUNTIME }} rm -f "$container_id" 2>/dev/null || true
154157 fi
155- done < <(${{ env.CONTAINER_RUNTIME }} ps -aq --filter ancestor=langflowai/langflow:core -latest-dev)
156- ${{ env.CONTAINER_RUNTIME }} rmi langflowai/langflow:core -latest-dev || true
158+ done < <(${{ env.CONTAINER_RUNTIME }} ps -aq --filter ancestor=langflowai/langflow:base -latest-dev)
159+ ${{ env.CONTAINER_RUNTIME }} rmi langflowai/langflow:base -latest-dev || true
157160 ${{ env.CONTAINER_RUNTIME }} system prune -af || true
158161 if command -v docker &> /dev/null; then
159162 docker buildx prune -af || true
0 commit comments