cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jamesyang
Helper I
Helper I

PowerApps CLI - running in docker?

Can anyone share how to run PowerApps CLI in docker? 

 

Can PowerApps PCF development and DevOps been done ins MacOS and Linux servers?

 

thanks

1 ACCEPTED SOLUTION

Accepted Solutions

@jamesyang- PCF CLI is not cross platform, so you won't be able to use that in a container anyway. I use Remote Containers extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers), along with dev containers. The Docker image is mcr.microsoft.com/vscode/devcontainers/typescript-node:0-12. But, none of this works at the moment due to the issue I mentioned earlier. @HemantG might be able to shed some more light on this.

image.png

View solution in original post

3 REPLIES 3
rajyraman
MVP

@jamesyang- There is an issue with pcf-scripts at the moment, which means that you cannot use Linux containers. Below is the error I get if I use devcontainers. Until this is fixed on the pcf-scripts package, you won't be able to use containers. If you use a Mac, you can use Office 365 CLI to work with PCF.

 

image.png

@rajyramanThank you!

i use mac. i am having issues to run .net Framework container. would you share your Docker

i have tried both latest and sdk4.8 in my Dockerfile, but still getting errors in mac when building the docker.

#FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
FROM mcr.microsoft.com/dotnet/framework/sdk:latest

 

what docker image do you use? would you share some details of your Dockerfile for installing .net and pcf?

 

thanks

@jamesyang- PCF CLI is not cross platform, so you won't be able to use that in a container anyway. I use Remote Containers extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers), along with dev containers. The Docker image is mcr.microsoft.com/vscode/devcontainers/typescript-node:0-12. But, none of this works at the moment due to the issue I mentioned earlier. @HemantG might be able to shed some more light on this.

image.png

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,170)