brucepc / mapguide Goto Github PK
View Code? Open in Web Editor NEWmapguide container
License: MIT License
mapguide container
License: MIT License
Hi Bruce,
I saw your keen interest on a lightweight MapGuide docker image. Unfortunately my developer priorities are such that I won't be able to look at building a production quality docker image (the one I put on docker hub is really a toy). If you're happy to take on this task, then I have some ideas you could possibly explore :)
One thing I'd really like to see is a separation of the MapGuide docker image into its respective server and web tiers.
/usr/local/mapguideopensource/server
and /usr/local/mapguideopensource/share
/usr/local/mapguideopensource/webserverextensions
and /usr/local/mapguideopensource/share
A killer setup with this approach would be if I can make a docker-compose.yml (or any other container orchestrator of your choice) consisting of
One docker-compose up
would bring this load-balanced PostGIS/Oracle/MapGuide stack to life.
MG ports are only for the Web Tier (that resides in the same container) to communicate with mgserver.
Tomcat port is only so that Apache (also in the same container) can talk to it.
Only the httpd one (8008) needs to be visible to the outside world.
The QuickPlot widget currently cannot generate PDF plots because of this
Something you might want to document about this container (in the readme or elsewhere)
If using docker port mapping to a different port (eg. docker run -p 80:8008 ...
), QuickPlot will break as while the initial POST to PlotAsPDF.php
will work, that script needs to internally make a request to GeneratePicture.php
, by constructing a URL relative to the $_SERVER["SCRIPT_URI"]
of PlotAsPDF.php
.
As PlotAsPDF.php
was accessed through its external port (80), the URL constructed to GeneratePicture.php
is invalid because the httpd server inside the container is still listening on 8008.
I don't know what tricks we can use in PHP to make QuickPlot work in this type of setup. The only workaround is to map to the same port number externally
How install and configuration unixODBC in mapguide
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.