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

Web Addin certificate issue while building docker container image #820

Open
amolkhanorkar opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@amolkhanorkar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant