-
Notifications
You must be signed in to change notification settings - Fork 24
Postfacto on Azure #315
Comments
Hi Kyle! |
Sorry, we was going from your contributing guide which states "to avoid having to install and manage these dependencies you can use the postfacto docker image for development". from that we thought that by using this within azure we wouldnt need to consider the dependencies as they will be ran from within the docker container. yes we are using web apps for containers. but when trying to run we get the error code; After some research it seemed that we was required to change the EXPOSE variables within the docker image. We did try amend the WEBSITES_PORT config to 3000 but the same error occurred just with port 3000. any help would be grateful haha |
|
Thank you for your help Jonathan, however once again were banging our heads against the wall; 2020-08-25T14:10:06.316Z INFO - Initiating warmup request to container scousetestwa_0_cf618460 for site scousetestwa again tried website_ports 80, 8000 and 3000 and still same error codes |
Interesting. Do you not see any logs from the Postfacto container itself? How are you providing the services (database and Redis)? It might be worth looking at the Helm chart to see how it's configured for deployment on Kubernetes, e.g. you can see env vars getting set in https://github.com/pivotal/postfacto/blob/master/deployment/helm/templates/deployment.yaml. |
@textbook we're having an issue with the same. This is our Dockerfile:
but the app keeps starting on port 3000: |
@mimozell the port is hard-coded in the entrypoint script, you can't currently change that from the environment: https://github.com/pivotal/postfacto/blob/fc775053346b22e9fadbe9ab863baf94fc1cabad/docker/release/entrypoint#L55 |
Aha, I see. Thank you! Is the answer to the initial question that the port cannot be modified then? |
It is now possible to change the port that Azure Web Apps for Containers looks for: https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#configure-port-number |
Hello! I am attempting this deployment using an Azure Web App that I've configured for port 3000 using the instructions linked above by @joshuacc. However, I am still seeing the errors called out above:
I also see that @textbook mentioned the database/Redis setup being a potential issue here. I am unsure of how to configure these correctly with a Docker Azure Web App deployment and wanted to see whether there is any guidance available for this scenario. Edit: I was able to access the container logs and see the following, which may support the above assertion that there are steps that still need to be taken to set up the db:
|
Afternoon, Kyle here from Leeming.
Having issues running Postfacto on Azure due to the app using port 3000 when the Azure app service can only use 443 and 80. Have attempted using WEBSITES_PORT 3000 and even PORT 3000 on the web app config to no avail.
Wondering if you could possibly produce a Docker postfacto/dev version with dependencies auto build which also is Azure friendly and uses ports available to the azure webapp (possibly EXPOSE 80 and EXPOSE 8080 within the dockerfile)
As you all know were new to this so just having a stab in the dark but think this is the reason behind the failures.
The text was updated successfully, but these errors were encountered: