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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,712)