Azure / Azure/static-web-apps-cli

Deployment hangs indefinitely on azure-cli Docker

Aperta
#943 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
668
Fork
156
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il deployment di deployment_script con azure-cli:2.63.0 e 2.67.0, usando il percorso dell'app ./dist/ e --verbose=silly come descritto. Traccia il punto in cui si arresta il comando deploy e confronta il comportamento del container locale con l'esecuzione in Azure Container Registry; è completato quando il deployment termina o segnala un errore chiaro invece di rimanere bloccato indefinitamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, docker, typescript
Ambito
cli, cloud, devops
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.