1. billy hugon
  2. PowerServer
  3. Friday, 8 March 2024 16:26 PM UTC

Before we get too deep in this post, this is all new to me so I apologize in advance.  I am currently running in IIS but the direction is to move to containers.  I know these are probably elementary questions, but I need a general understanding on how these correlate and how they may need to be configured between the Web Application, Web APIs and ClientApplication.  My system administrator created a Kubernetes site for me to deploy my application to.  

My initial intention is to try and configure my application to test on my workstation if possible using LocalHost.  If that is not possible, let me know.

1)  Do I need to follow the Docker and Kubernetes install instructions?  I see that there are Docker references in the Kubernetes configuration.  I have not done anything in the Kubernetes 

2)  On the Docker installation, I have performed to the end but have these questions.

I'm running 2022 R3.  The install instructions I'm using are

Docker - - PowerServer 2022 R3 Help (appeon.com)

I have created my image and container for my application Web APIs.  I have also modified my Apprun.json in my application to point to the container.  But I am trying to figure out how to invoke my application.  I guess I'm not grasping how to get this in a container to run.  My current IIS environment has the application in one site and the webAPIs in another.  I can invoke the application using the URL for the web site.

The instructions are as follows, which I have done, but how does the application get deployed?  This is the last section of the install instructions.

 

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Friday, 8 March 2024 16:38 PM UTC
  2. PowerServer
  3. # 1

Hi Billy,

Did your admin also provide you with a Docker registry? Or how is it expected of you to upload your docker images?

 

Regards,
Francisco

Comment
There are no comments made yet.
billy hugon Accepted Answer Pending Moderation
  1. Friday, 8 March 2024 17:17 PM UTC
  2. PowerServer
  3. # 2

No.  Just a namespace for Rancher (see below).  I have installed Docker on my workstation and used some example applications to generate images and containers.  Should I have a registry for just initial testing on localhost?  I'm just wanting to get this working if possible on LocalHost if that is a possibility.  

Comment
  1. Francisco Martinez @Appeon
  2. Friday, 8 March 2024 18:28 PM UTC
if you want to start up the Web API on your local docker instance you need to spin up the container. Please refer to these documentation pages for more info: https://docs.appeon.com/ps2022r3/Publishing_Web_APIs_to_Docker.html

After the containers are started make sure you see the ASP.NET Welcome Page if you open the container's IP on the browser
  1. Helpful
There are no comments made yet.
billy hugon Accepted Answer Pending Moderation
  1. Friday, 8 March 2024 18:36 PM UTC
  2. PowerServer
  3. # 3

Yep.  Got that far

 

 

Comment
  1. Francisco Martinez @Appeon
  2. Friday, 8 March 2024 19:23 PM UTC
Now you need to configure your Cloud App to use localhost:5099 as the Web API and that would finalize the local deployment; assuming, of course, that the Cloud App is also hosted locally
  1. Helpful
  1. billy hugon
  2. Friday, 8 March 2024 20:12 PM UTC
Hi Francisco. I guess thats where I'm stuck. I deployed the Web API's to docker (above), but where/how do I deploy the cloud app? Again, I've deployed in the past to an IIS web site but dont see the correlation in Docker.
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 8 March 2024 19:18 PM UTC
  2. PowerServer
  3. # 4

I'm wondering if a non-visual PowerBuilder executable would run on Windows Nano.

Comment
There are no comments made yet.
billy hugon Accepted Answer Pending Moderation
  1. Sunday, 10 March 2024 16:09 PM UTC
  2. PowerServer
  3. # 5

So, I'm still to the point where I'm not sure what to do next.  I have the WebAPI's running in my docker container (see screen shots above).  I have modified my modified my apprun.json file

 

But I'm still unclear on where/how to install my web application.  The document ends here.  Is this done in the Kubernetes section?  

 

 

Comment
  1. billy hugon
  2. Monday, 11 March 2024 14:54 PM UTC
Hi Francisco

Just an update. I deployed the Web App to my IIS on LocalHost using the WebAPI's running in my Docker container, and its working. GREAT!

So now I understand and have this working locally.

Now I need to figure out how to get the Web App to run Containerized. Is there any documentation on how to do this?



Thank you
  1. Helpful
  1. Francisco Martinez @Appeon
  2. Monday, 11 March 2024 14:57 PM UTC
If you're on Azure you might as well rely on storage, or a Static Web App: https://docs.appeon.com/ps2022/cloud_app.html

If they insist on using a container, then you just need to create an image for a static website, which is fairly straightforward: https://www.back4app.com/docs-containers/run-a-static-website-on-containers#DE4-t
  1. Helpful
  1. billy hugon
  2. Monday, 11 March 2024 15:18 PM UTC
I just created an image/container for the WebApp on port 8080 and started. But it looks like its having trouble with the CloudAppInstaller location (looking at 8080). Should I include this with the WebApp image?



Failed to download the config file http://localhost:8080/CloudAppPublisher/CloudAppInstall 22.0/LauncherSetup.json; ErrorCode: 404; Error: Not Found.



I have it defined in the apprun.json as (which is obviously wrong):



"deployment_urls": {

"launcher": "CloudAppPublisher/CloudAppInstall 22.0",

"runtime": "CloudAppPublisher/runtime/22.2.0.3289"



  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.