Skip to content

Fix Docker image for usage on Azure AppService #476

Open
DUNK025 wants to merge 1 commit intoUnstructured-IO:mainfrom
DUNK025:fix_image_for_azure_app_service
Open

Fix Docker image for usage on Azure AppService #476
DUNK025 wants to merge 1 commit intoUnstructured-IO:mainfrom
DUNK025:fix_image_for_azure_app_service

Conversation

@DUNK025
Copy link

@DUNK025 DUNK025 commented Nov 5, 2024

Since the official unstructured-api image doesn´t work on Azure AppServices, the pip and app files must be moved from the home/notebook-user folder to another folder on the system (in this case /opt).

It seems that Azure tries to mount or modify the home directory in our container with contents from their kudu OS, which leads to an empty /home/notebook-user folder.

The error message in azure looks as follows:

ERROR - Container start failed for {APP_SERVICE_INSTANCE} with System.AggregateException, One or more errors occurred. 
(Docker API responded with status code=BadRequest, response={"message":"failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: \"scripts/app-start.sh\": stat scripts/app-start.sh: no such file or directory: unknown"})
InnerException: Docker.DotNet.DockerApiException, Docker API responded with status code=BadRequest, response={"message":"failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: \"scripts/app-start.sh\": stat scripts/app-start.sh: no such file or directory: unknown"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant