For testing purposes I am trying to deploy a web app to a Linux based container. With my old Web 1.0 apps this still succeeds, however, with my new Web 2.0 app the container runs, but no pages are loaded/shown in the browser. The fav-icon is loaded and the page source show some Xojo statements and a bunch of scripts:
#BASE IMAGE
FROM ubuntu:20.04
#INSTALL REQUIRED LIBRARIES
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y libunwind8 libglib2.0 libsoup2.4
#ADD APPLICATION TO DOCKER IMAGE
ADD / /app/
#EXPOSE PORT AND RUN APPLICATION
EXPOSE 80
WORKDIR /app
CMD /app/my_application
There are no errors in the logs as far as I can see. I think that I might be missing some libraries? Anybody has an idea or a working example for a dockerfile with the correct libraries?
Hi Derk, no, Iām putting my app on Docker Hub so that the customer can pull new images as they are pushed from my system and test this in his own Docker container. Thx for sharing your dockerfile and advice. I will test this also.
Hi JĆ¼rg, this Docker file works, and Derkās version also. Now I seem to run into another issue where I use a subclassed URLConnection. That seems to do nothing and I cannot āTry/Catchā the exception. Maybe better to put this one in another threadā¦ I have libsoup included in the docker so in theory it should work.
I am testing with Windows and Linux and got confused somehow. URLConnection is doing its job fine but I messed up an OAuth2 routine prior to the request I needed the token for. So I ended up using an invalid token for the request. Therefore there was no exception to catch besides an unauthorized error:-) Now it is working fine and dandy:-)
I have used your debian dockerfile, however I got some strange results with URLConnection when I use libsoup2.4-1 When I change that to libsoup2.4 it works fine.
Iām not sure, you could try to test a URLConnection in a small project with this libsoup version. Xojoās requirements are stated libsoup version 2.4