Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[fix] Run platform merge env issue for tool containers (#1367)

Chandrasekharan M9e08566d1abe
diff --git a/run-platform.sh b/run-platform.sh
index 8357af422..87250487d 100755
--- a/run-platform.sh
+++ b/run-platform.sh
@@ -190,6 +190,14 @@ setup_env() {
DEFAULT_AUTH_KEY="unstract"
for service in "${services[@]}"; do
+ # Skip services that are spawned at runtime
+ for ignore_service in "${spawned_services[@]}"; do
+ if [[ "$service" == "$ignore_service" ]]; then
+ echo -e "Skipped env for ${blue_text}$service${default_text} as it's generated at runtime"
+ continue 2
+ fi
+ done
+
sample_env_path="$script_dir/$service/sample.env"
env_path="$script_dir/$service/.env"
@@ -298,7 +306,7 @@ run_services() {
echo -e "to a secure location:\n"
echo -e "- ""$red_text""backend/.env""$default_text"
echo -e "- ""$red_text""platform-service/.env""$default_text"
- echo -e "\nAapter credentials are encrypted by the platform using this key."
+ echo -e "\nAdapter credentials are encrypted by the platform using this key."
echo -e "Its loss or change will make all existing adapters inaccessible!"
echo -e "###################################################################"
fi
@@ -306,6 +314,7 @@ run_services() {
popd 1>/dev/null
}
+
#
# Run Unstract platform - BEGIN
#
@@ -320,8 +329,9 @@ opt_version="latest"
script_dir=$(dirname "$(readlink -f "$BASH_SOURCE")")
first_setup=false
-# Extract service names from docker compose file.
+# Extract service names from docker compose file
services=($(VERSION=$opt_version $docker_compose_cmd -f "$script_dir/docker/docker-compose.build.yaml" config --services))
+spawned_services=("tool-structure" "tool-sidecar")
current_version=""
target_branch=""