Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a developer, I can use azd in Cloud Shell #472

Closed
puicchan opened this issue Aug 15, 2022 · 8 comments
Closed

As a developer, I can use azd in Cloud Shell #472

puicchan opened this issue Aug 15, 2022 · 8 comments

Comments

@puicchan
Copy link
Contributor

I should be able to run azd in cloud shell.

@rajeshkamal5050 rajeshkamal5050 added this to the On Deck milestone Aug 23, 2022
@jongio
Copy link
Member

jongio commented Sep 24, 2022

@danieljurek - Can you investigate what it would take for us to get azd in cloud shell?

Repo: https://github.com/Azure/CloudShell
Example: Azure/CloudShell#197

@danieljurek
Copy link
Member

Addressed in Azure/CloudShell#248

@danieljurek
Copy link
Member

danieljurek commented Nov 14, 2022

Running in the context of CloudShell we may not have all tools installed for all possible deployments. Tools will need to be installed before running azd up etc.

Missing tools:

  • SWA CLI
  • JDK

todo-java-mongo

Error: todo-java-mongo

$ azd up 

ERROR: required external tools are missing:
 - need at least version 17.0.0 or later of Java JDK installed. Visit the website for your installed JDK to upgrade Java JDK version

todo-nodejs-mongo-terraform

(possible limitation of running deployments in parallel and exhausting disk space...)

Error:


Deploying service web...

ERROR: deploying service: packaging service web: failed to install project /home/daniel/test-failures/todo-nodejs-mongo-terraform/src/web, exit code: 228, stdout: , stderr: npm WARN config production Use `--omit=dev` instead.
npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN tar TAR_ENTRY_ERROR ENOSPC: no space left on device, write
npm WARN tar TAR_ENTRY_ERROR ENOSPC: no space left on device, write
npm ERR! code ENOSPC
npm ERR! syscall write
npm ERR! errno -28
npm ERR! nospc ENOSPC: no space left on device, write
npm ERR! nospc There appears to be insufficient space on your system to finish.
npm ERR! nospc Clear up some disk space and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/daniel/.npm/_logs/2022-11-14T16_14_54_239Z-debug-0.log
: exit status 228
2022/11/14 16:15:09 failed to write file: write /home/daniel/.azd/telemetry/1231694720_itm.tmp: no space left on device

@danieljurek
Copy link
Member

Issues discovered from testing:

@danieljurek
Copy link
Member

@savannahostrowski -- Issues discovered when running on CloudShell

@savannahostrowski
Copy link
Contributor

Ah I see.

Okay, so I'd say re. JDK, we should try to see if the Cloudshell team can bump to 17. For the other issue, re. #1206, let me ping the Cosmos team and figure out what scenarios are most compelling to them.

@danieljurek
Copy link
Member

Dependencies for releasing:

  • We are waiting for release of an updated base image from CloudShell (DevOps issue)
  • Arranging CSS support for CloudShell so customer issues can be routed

Other improvements:

@danieljurek
Copy link
Member

Update. We tested a "workaround" for the JDK upgrade in a local CloudShell container image and the test succeeded.

@savannahostrowski savannahostrowski added this to the Gallium milestone Apr 14, 2023
@savannahostrowski savannahostrowski changed the title Add azd to Cloud Shell azd in Cloud Shell Jul 25, 2023
@savannahostrowski savannahostrowski changed the title azd in Cloud Shell As a developer, I can use azd in Cloud Shell Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants