Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some ideas #1

Open
jumpinjackie opened this issue Oct 26, 2016 · 11 comments
Open

Some ideas #1

jumpinjackie opened this issue Oct 26, 2016 · 11 comments
Assignees

Comments

@jumpinjackie
Copy link
Contributor

jumpinjackie commented Oct 26, 2016

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.

  • Server-only image
    • Must be Ubuntu14 or CentOS6 based as that is what MapGuide is built against
    • A server-only docker image that only contains the contents of /usr/local/mapguideopensource/server and /usr/local/mapguideopensource/share
    • Configurable elements
      • Listening ports
      • Volume paths for
        • External spatial data files (that MapGuide can reference through external aliases and that can be shared among multiple MG server docker containers)
  • WebTier-only image
    • Must be Ubuntu14 or CentOS6 based as that is what MapGuide is built against
    • A web-only docker image that only contains the contents of /usr/local/mapguideopensource/webserverextensions and /usr/local/mapguideopensource/share
    • Configurable elements
      • Listening HTTP port
      • 1 or more sets of server IP/ports
      • Volume paths for
        • Referencing/storing your MapGuide application's files

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

  • 1 WebTier container with my application files mounted
  • 1-n load-balanced Server containers
  • A PostGIS or OracleXE container that all server containers connect to

One docker-compose up would bring this load-balanced PostGIS/Oracle/MapGuide stack to life.

@brucepc brucepc self-assigned this Oct 27, 2016
@brucepc
Copy link
Owner

brucepc commented Mar 29, 2017

Hi @jumpinjackie,
I would like to take this ahead, three days ago i started this task, I think the better way to do this is from source so, I've cloned the mapguide repository and I'm tracking the mapguide (and webextensions) dependencies to bring this beautyful system to life.
The point here is... has some place where I can got all the thing or most of this dependencies ??

@jumpinjackie
Copy link
Contributor Author

If you want to build from source for Linux, you probably should have a look at my Vagrantfiles as a starting point

http://trac.osgeo.org/mapguide/browser/trunk/Tools/Vagrant

In particular, the files of interest are:

This is a very heavyweight build system as it requires vagrant/virtualbox to spin up and tear down build VMs, which is why I've been trying to port this over to docker.

My (incomplete and still in progress) docker-based build system can be found here: https://github.com/jumpinjackie/mapguide-docker-build

@brucepc
Copy link
Owner

brucepc commented Mar 29, 2017

thanks a lot

@brucepc
Copy link
Owner

brucepc commented Sep 2, 2017

WIP

@Sennevds
Copy link

still working on this ideas? because I'm trying to get the mapguide server on azure

@jumpinjackie
Copy link
Contributor Author

@Sennevds Are you looking for MapGuide on Windows containers or Linux containers?

@Sennevds
Copy link

Sennevds commented Jul 13, 2018

doesn't matter. Now we are using mapguide on a VM and we are trying to move the mapguide server(not the web server) to containers on azure and we are also moving our databases to azure postgre

@brucepc
Copy link
Owner

brucepc commented Jul 13, 2018

Yes, slow as i can do it.
Do you need help?

@Sennevds
Copy link

So the only thing I need in the container is the mapguide server is it enough to edit the dockerfile and comment out the apache and tomcat parts or depends the server on it?

@brucepc
Copy link
Owner

brucepc commented Jul 13, 2018

The mapguide server run as CGI through apache service, you can turn off only the tomcat service.

@Sennevds
Copy link

Is this linux only because we have the mapguide server running as a service on a windows server without any webserver. The thing we are trying to accomplish is to have the mapguide server running on a different server then the webserver.

At this moment I can run the mapguide server(by commenting out the webserver parts in docker file) and I see in the logging that the connection is made(successfully login) but no response is received in maestro or the webserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants