Azure / Azure/static-web-apps-cli

Deployment hangs indefinitely on azure-cli Docker

Offen
#943 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
668
Forks
156
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

At this time, I have tried using multiple image versions:
- 2.63.0 (the last Alpine build)
- 2.67.0 (the latest build available for `deployment_script` resources)

In both cases, I get inconsistent hanging behaviors.

For 2.63.0, where I can `apk add npm` to install the CLI, I can reach the point of deploying but am left in an indefinite hanging from the Azure Portal.

![Image](https://github.com/user-attachments/assets/50ae081c-9233-45ae-ad7d-b011164ab4dd)

Excerpt from logs with `--verbose=silly`:

![Image](https://github.com/user-attachments/assets/8f72d250-8f3f-4da5-b964-cca581b93976)

This seems consistent with the `--app-location .` issue, but I'm using an unzipped archive in the `./dist/` directory.

![Image](https://github.com/user-attachments/assets/9187a7f6-df45-4836-ade3-5b050f4d5f35)

The odd thing about this scenario is that I can run this locally, and it works. By that, I mean I can pull the same container, down to the SHA256 version, run the same script with the same environment variables, and it works. I have no idea why it's problematic in ACR via the Deploy Script.

![Image](https://github.com/user-attachments/assets/d9c491b7-5e16-45e2-9f29-61c564f121e0)

![Image](https://github.com/user-attachments/assets/34abbfa6-ba61-41ba-8e47-f5a68212d330)

For 2.67.0, I have to install npm via `tdnf` first. This seems to never hit the instance. When running with `--verbose=silly`, it exits without indicating what went wrong. This is repeatable locally.

![Image](https://github.com/user-attachments/assets/be2ceaf0-dab6-437d-9e36-b7ddfb2fb59a)

If I execute without `--verbose=silly`, I get stuck during the deployment indefinitely. The portal never updates from this state. It's just hanging.

![Image](https://github.com/user-attachments/assets/2cab8d34-0fca-4411-85ab-4459a16059a3)

Using 2.0.4 in both cases:

2.63.0:
![Image](https://github.com/user-attachments/assets/4373b3be-3e02-4d71-82e2-89c59917e9ca)

2.67.0:
![Image](https://github.com/user-attachments/assets/39695bfd-c037-4bb2-b4d5-19b037527183)

My deployment is a simple `index.html` at the moment, but will eventually be a react SPA.

![Image](https://github.com/user-attachments/assets/4dcecf5f-a4f0-4992-968f-d1b3ddd23ddb)

**Describe the bug**
Cannot deploy using `azure-cli:2.63.0` or `azure-cli:2.67.0` images in ACR via Azure Deployment Script

**To Reproduce**
See the screenshots above.

**Expected behavior**
On invoking the `deploy` command, I should be able to deploy.

**Desktop (please complete the following information):**

My host is Ubuntu 24.04, but all commands are being run via the listed containers.

**Additional context**
To my understanding, this is the only option I have for deployment. This deployment script is part of a Marketplace Managed Application that is being developed, and I need to be able to deploy code from private repositories without granting permanent access to end users. "Use GitHub Actions" or "Azure Devops Pipelines" are not valid responses.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die deployment_script-Bereitstellung mit azure-cli:2.63.0 und 2.67.0 unter Verwendung des App-Speicherorts ./dist/ und --verbose=silly wie beschrieben zu reproduzieren. Verfolge, wo der deploy-Befehl stoppt, und vergleiche das Verhalten des lokalen Containers mit der Ausführung in Azure Container Registry; abgeschlossen bedeutet, dass die Bereitstellung abgeschlossen wird oder einen eindeutigen Fehler meldet, anstatt auf unbestimmte Zeit zu hängen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, docker, typescript
Bereich
cli, cloud, devops
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.