OfficeDev / Office-Addin-Scripts

A set of scripts and packages that are consumed in Office add-ins projects.
MIT License
156 stars 99 forks source link

Web Addin certificate issue while building docker container image #820

Open amolkhanorkar opened 10 months ago

amolkhanorkar commented 10 months ago

We have used “npx office-addin-dev-certs install --machine” in MS-hosted agent and able to build artifacts on Windows-latest and Ubuntu-latest agents.

Our goal is to build a docker image for the WebAddIn React application. (Containerization)

We have configured a pipeline that has a Build Docker Image task, where we are performing the NPM tasks to build the artifact. There, we have tried command “npx office-addin-dev-certs install --machine” to install the certificates but it is failing as it is not supporting while building the image.

image

Also, we have tried skipping the step to install the certificates but as a final step to start the application and Docker container, we need to trigger “npm start” command that again looks for the certificate to install. We need to keep this command to start the docker container as soon as it gets deployed onto the Kubernetes cluster.

image

Please help us with the solution to resolve this issue and how we should deploy it on any K8s cluster.