PolaricServer / webapp

Web application (map browsing) for Polaric Server
10 stars 2 forks source link

Package as Docker containers? #18

Open bnordgren opened 7 years ago

bnordgren commented 7 years ago

Docker on ARM seems to be the coming thing. I believe that packaging this software into docker containers may have the following benefits:

Also tracking this issue at bnordgren/aprs-box#4, but wanted to know your thoughts on this.

Thanks for your excellent software! 73, AF7RQ

ohanssen commented 7 years ago

Thanks for an interesting idea. It should definitely be considered :) I have been somewhat busy lately with other issues, but hope to soon have some more time for Polaric work. I think the project will benefit from being further modularized and "containerized". 73, LA7ECA

ohanssen commented 7 years ago

Seems like the first thing I can do is to remove some dependencies in the Debian package to allow it to be installed without aprsd and mapcache (you want it in separate containers). Use "recommends" instead. The tricky thing may be plugins that add to both webapp and aprsd (polaric-webconfig-plugin). I'll try to fix this in the next version.

bnordgren commented 7 years ago

That would be very useful.

I have some initial packaging which I will probably try to document and commit over the weekend. I've got polaric as an all-in-one platform and direwolf packaged separately. The containerizing is pretty straightforward, but aprsd (more specifically, jsvc) requires some oddball command line options which took a while to get right.

I've started on gpsd as well, but need some time to get back to it.

bnordgren commented 7 years ago

...so a month and a half later, I show up with something far from done. I'm giving up on making the process as simple as docker pull polaric-server, because there's just too much configuration. I have, however, consolidated 32-bit arm, 64-bit arm and amd64 architectures into a single dockerfile. Just uncomment the FROM line pertaining to your platform, do your config, and run docker build. I still need to document this process, but I think most of the inner workings are there. You can see what I have at: https://github.com/bnordgren/aprs-box-dockerfiles/tree/master/polaric-server

I did notice that apt-get install polaric-webapp fails on debian jessie for amd64 whereas it succeeds on the 64 bit arm variant. Using the ubuntu:16.04 image for amd64 also succeeds. Looking at the attached log, it seems that Debian jessie amd64 has some brokenness between ca-certificates-java and openjdk-8-jre-headless. Are you seeing this on new installs as well?

install-problem.txt

ohanssen commented 7 years ago

I haven't seen this with jessie, and now stretch is the stable distro. I am sorry I havent had time to go into this. This project is a bit too much for just one person.. I have actually started working on a total rewrite of the client (see webapp2) based on OpenLayers 4. It is promising but takes time.

ohanssen commented 6 years ago

I intend to release v. 2.1. this weekend. I removed the dependency on aprsd (there is a 'recommends' now) and merged the webconfig stuff into aprsd. The aprsd now supports login and a standalone config webinterface. I also removed the config dialog (callsign) at installation.