Re: [QGIS-Developer] Vagrant file for QGIS-Django

2019-03-08 Thread Tim Sutton
Hi Richard



> On 08 Mar 2019, at 18:32, Richard Duivenvoorde  wrote:
> 
> Hi Gents,
> 
> Nathan, other then the Github repo and trying to run the available
> docker I do not have so much superpowers (other then I could get into
> the container for you and get the stuff out).

@Richard we have a private repo *docker hub* repo that I think you are the 
owner of in the qgis organisation in docker hub. In that repo we have pushed 
occasional full image snapshots of everything in the plugins website except the 
actual plugin packages. Its this that I was asking you to give Nathan access to.

> 
> What we were discussing during this hackfest (after some issues with
> availability of plugins.qgis.org) is to actually get a dedicated server
> for plugins.qgis.org.

:-( I prefer to properly set it up as a set of docker containers. Then spinning 
up an instance is a few clicks, we can load balance and other nice things in 
the future. We have all the tooling to do it with a repeatable workflow.  
Anyway I guess it comes down to the person who will actually maintain things. 
Currently I guess it is me and you doing the sysadmin Richard and Ale 
maintaining the code. If we get more volunteers who want to maintain things and 
that want to use a particular implementation approach, using their preferred 
approach is fine for me.

> And because (we think) more people could maybe develop/look into the
> Django app we think about just deploy it as a wgsi-app working with a
> local Postgresql db (so no more docker).

I think you are conflating two things here: deployment and development. We can 
already easily run a local non docker version e.g. for development (see notes 
in https://github.com/qgis/QGIS-Django/blob/master/readme.rst - maybe they need 
a refresh?) so the current deployment approach should not be a blocker for 
developers to get on board. Maybe we just need to review the manual setup and 
run process notes to make sure the process is still described properly.



> Maybe on a cloud server, so
> creating snapshots will then give us easy backups.

But why not start by just deploying on a cloud server the existing image. I 
already get backups of the plugin zips and we can just add one small container 
to make PG backups on a cron. That would be the minimal amount of work to shift 
it to a new dedicated host.

> 
> This would hopefully open the door for other people to dive into the
> QGIS-Django app, for example to upgrade it to work with python3 and a
> newer version of Django (we now get a 'moderate' security warning on
> github [0])

Yes upgrading would be nice

Regards

Tim


> 
> We have to discuss this further.
> 
> Regards,
> 
> Richard
> 
> 
> [0] https://github.com/qgis/qgis-django/network/alerts
> 
> 
> On 08/03/2019 13.05, Nathan Woodrow wrote:
>> haha yes I know but for some reason I can't get docker to run well on
>> Windows at the moment for me, so I will just run it inside a vagrant box
>> because it's turtles all the way down.
>> 
>> Richard,  could I get some details on how to set this up?
>> 
>> On Fri, Mar 8, 2019 at 9:59 PM Tim Sutton > > wrote:
>> 
>>Hi 
>> 
>> 
>>Vagrant is so 2000s :-p Everything runs in docker. We have it in a a
>>private docker hub repo as image contains a working db snapshot too..
>> 
>>Richard is the gate keeper for getting access to the hub repo after
>>which you should be able to do:
>> 
>> 
>>docker login
>>docker run -ti -p 8099:80 \
>>-d --restart=unless-stopped \
>>--name="plugins" \
>>-v ${PWD}/static:/home/plugins/QGIS-Django/qgis-app/static \
>>-v ${PWD}/backups:/backups \
>>-v ${PWD}/tmp:/tmp \
>>-v ${PWD}/logs:/var/log/nginx \
>>qgis/plugins:latest \
>>supervisord -n
>> 
>>The volume mounts are not strictly necessary - we store teh actual
>>plugin packages in a host directory instead of the container.
>> 
>>Regards
>> 
>>Tim
>> 
>>>On 08 Mar 2019, at 13:41, Nathan Woodrow >>> wrote:
>>> 
>>>Hey,
>>> 
>>>Is there any premade vagrant file I can use for the QGIS-Django
>>>project that already has everything set up?  
>>> 
>>>If not I can make one as I run Windows most of the time and I
>>>would like to have something set up I can just run up and shutdown
>>>nicely to match what we have running
>>>on https://plugins.qgis.org without having to install anything
>>>local on my windows machine.
>>> 
>>>Keen to see if others with more experience have done work in this
>>>area before so I don't have to reinvent it, but happy to do it if
>>>other haven't.
>>> 
>>>Regards,
>>>Nathan 
>>>___
>>>QGIS-Developer mailing list
>>>QGIS-Developer@lists.osgeo.org 
>>>List info: 

Re: [QGIS-Developer] Vagrant file for QGIS-Django

2019-03-08 Thread Richard Duivenvoorde
Hi Gents,

Nathan, other then the Github repo and trying to run the available
docker I do not have so much superpowers (other then I could get into
the container for you and get the stuff out).

What we were discussing during this hackfest (after some issues with
availability of plugins.qgis.org) is to actually get a dedicated server
for plugins.qgis.org.
And because (we think) more people could maybe develop/look into the
Django app we think about just deploy it as a wgsi-app working with a
local Postgresql db (so no more docker). Maybe on a cloud server, so
creating snapshots will then give us easy backups.

This would hopefully open the door for other people to dive into the
QGIS-Django app, for example to upgrade it to work with python3 and a
newer version of Django (we now get a 'moderate' security warning on
github [0])

We have to discuss this further.

Regards,

Richard


[0] https://github.com/qgis/qgis-django/network/alerts


On 08/03/2019 13.05, Nathan Woodrow wrote:
> haha yes I know but for some reason I can't get docker to run well on
> Windows at the moment for me, so I will just run it inside a vagrant box
> because it's turtles all the way down.
> 
> Richard,  could I get some details on how to set this up?
> 
> On Fri, Mar 8, 2019 at 9:59 PM Tim Sutton  > wrote:
> 
> Hi 
> 
> 
> Vagrant is so 2000s :-p Everything runs in docker. We have it in a a
> private docker hub repo as image contains a working db snapshot too..
> 
> Richard is the gate keeper for getting access to the hub repo after
> which you should be able to do:
> 
> 
> docker login
> docker run -ti -p 8099:80 \
>         -d --restart=unless-stopped \
>         --name="plugins" \
>         -v ${PWD}/static:/home/plugins/QGIS-Django/qgis-app/static \
>         -v ${PWD}/backups:/backups \
>         -v ${PWD}/tmp:/tmp \
>         -v ${PWD}/logs:/var/log/nginx \
>         qgis/plugins:latest \
>         supervisord -n
> 
> The volume mounts are not strictly necessary - we store teh actual
> plugin packages in a host directory instead of the container.
> 
> Regards
> 
> Tim
> 
>> On 08 Mar 2019, at 13:41, Nathan Woodrow > > wrote:
>>
>> Hey,
>>
>> Is there any premade vagrant file I can use for the QGIS-Django
>> project that already has everything set up?  
>>
>> If not I can make one as I run Windows most of the time and I
>> would like to have something set up I can just run up and shutdown
>> nicely to match what we have running
>> on https://plugins.qgis.org without having to install anything
>> local on my windows machine.
>>
>> Keen to see if others with more experience have done work in this
>> area before so I don't have to reinvent it, but happy to do it if
>> other haven't.
>>
>> Regards,
>> Nathan 
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org 
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> —
> 
> 
> 
> 
> 
> 
> 
> *Tim Sutton*
> 
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org 
> 
> Visit http://kartoza.com  to find out about
> open source:
> 
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
> 
> *Skype*: timlinux 
> *IRC:* timlinux on #qgis at freenode.net 
> 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Vagrant file for QGIS-Django

2019-03-08 Thread Nathan Woodrow
haha yes I know but for some reason I can't get docker to run well on
Windows at the moment for me, so I will just run it inside a vagrant box
because it's turtles all the way down.

Richard,  could I get some details on how to set this up?

On Fri, Mar 8, 2019 at 9:59 PM Tim Sutton  wrote:

> Hi
>
>
> Vagrant is so 2000s :-p Everything runs in docker. We have it in a a
> private docker hub repo as image contains a working db snapshot too..
>
> Richard is the gate keeper for getting access to the hub repo after which
> you should be able to do:
>
>
> docker login
> docker run -ti -p 8099:80 \
> -d --restart=unless-stopped \
> --name="plugins" \
> -v ${PWD}/static:/home/plugins/QGIS-Django/qgis-app/static \
> -v ${PWD}/backups:/backups \
> -v ${PWD}/tmp:/tmp \
> -v ${PWD}/logs:/var/log/nginx \
> qgis/plugins:latest \
> supervisord -n
>
> The volume mounts are not strictly necessary - we store teh actual plugin
> packages in a host directory instead of the container.
>
> Regards
>
> Tim
>
> On 08 Mar 2019, at 13:41, Nathan Woodrow  wrote:
>
> Hey,
>
> Is there any premade vagrant file I can use for the QGIS-Django project
> that already has everything set up?
>
> If not I can make one as I run Windows most of the time and I would like
> to have something set up I can just run up and shutdown nicely to match
> what we have running on https://plugins.qgis.org without having to
> install anything local on my windows machine.
>
> Keen to see if others with more experience have done work in this area
> before so I don't have to reinvent it, but happy to do it if other haven't.
>
> Regards,
> Nathan
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> —
>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Vagrant file for QGIS-Django

2019-03-08 Thread Tim Sutton
Hi 


Vagrant is so 2000s :-p Everything runs in docker. We have it in a a private 
docker hub repo as image contains a working db snapshot too..

Richard is the gate keeper for getting access to the hub repo after which you 
should be able to do:


docker login
docker run -ti -p 8099:80 \
-d --restart=unless-stopped \
--name="plugins" \
-v ${PWD}/static:/home/plugins/QGIS-Django/qgis-app/static \
-v ${PWD}/backups:/backups \
-v ${PWD}/tmp:/tmp \
-v ${PWD}/logs:/var/log/nginx \
qgis/plugins:latest \
supervisord -n

The volume mounts are not strictly necessary - we store teh actual plugin 
packages in a host directory instead of the container.

Regards

Tim

> On 08 Mar 2019, at 13:41, Nathan Woodrow  wrote:
> 
> Hey,
> 
> Is there any premade vagrant file I can use for the QGIS-Django project that 
> already has everything set up?  
> 
> If not I can make one as I run Windows most of the time and I would like to 
> have something set up I can just run up and shutdown nicely to match what we 
> have running on https://plugins.qgis.org without having to install anything 
> local on my windows machine.
> 
> Keen to see if others with more experience have done work in this area before 
> so I don't have to reinvent it, but happy to do it if other haven't.
> 
> Regards,
> Nathan 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Vagrant file for QGIS-Django

2019-03-08 Thread Nathan Woodrow
Hey,

Is there any premade vagrant file I can use for the QGIS-Django project
that already has everything set up?

If not I can make one as I run Windows most of the time and I would like to
have something set up I can just run up and shutdown nicely to match what
we have running on https://plugins.qgis.org without having to install
anything local on my windows machine.

Keen to see if others with more experience have done work in this area
before so I don't have to reinvent it, but happy to do it if other haven't.

Regards,
Nathan
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer