Re: [Trac] Re: Moving complete Trac installation to pip

2019-12-04 Thread 'Dimitri Maziuk' via Trac Users

On 12/4/2019 2:48 AM, Mo wrote:


Could you please describe what problem you are trying to solve with a
docker container?


I am not the one having a month-long thread, in year 2020, on how to 
distribute an application with all its dependencies.


No problem here, moving right along,
Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/bb5c4bb9-f396-819e-6ff4-156c9d382dfb%40bmrb.wisc.edu.


Re: [Trac] Re: Moving complete Trac installation to pip

2019-12-03 Thread 'Dimitri Maziuk' via Trac Users

On 12/3/2019 6:25 AM, Mo wrote:
...

Another idea could be that there is some developer would maintain a "Trac
distribution" with a central package management, and not every single
plugin developer needs to publish to PyPI. I mean after a developer has
released a code on a repository...
Why not just roll a Dockerfile is what I don't get? You can `RUN git 
pull` from that repository and not bother with pypis, virtualenvs, 
maxicondas, distro packages, or any of that python mess. And there's 
like half a dozen of them out there already.


Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/f4ede50e-4212-81bb-3cb9-3f2e5377f5fa%40bmrb.wisc.edu.


Re: [Trac] Re: Moving complete Trac installation to pip

2019-12-06 Thread 'Dimitri Maziuk' via Trac Users

On 12/5/2019 7:11 PM, RjOllos wrote:


If you want my recommendation: write a requirements.txt, write some scripts
for maintaining/upgrading your site and setup an RSS feed so you can track
changes to plugins as they happen on trac-hacks and GitHub. Setup a staging
site, pull in changes, test them and then deploy them to your production
site.


Or as I implied earlier, write them down as 'RUN wget ' 
lines in your Dockerfile and deploy with `docker build` and test with 
`docker run`. And tag them and roll back to older version if there's a 
problem you didn't catch in testing.


Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/0f3207ae-b76c-9f63-4108-7044c13fc74d%40bmrb.wisc.edu.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-10 Thread 'Dimitri Maziuk' via Trac Users

On 10/9/2019 6:40 PM, Mike Dewhirst wrote:

Dimitri thank you. I had not thought of Docker because I have avoided 
thinking of Docker for years. That means I haven't allocated brain-space.


Maybe its time I did.


With core python being incompatible with itself and its DLL hell on top, 
there is no alternative.


Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/8f80bf41-604b-1dc1-e79d-87f5e219c4fb%40bmrb.wisc.edu.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-09 Thread 'Dimitri Maziuk' via Trac Users
On 10/9/19 2:06 PM, Jonathan Laufersweiler wrote:
> Another option would be to use PyInstaller to package up a minimal 2.7 
> interpreter with the bytecode for Trac and its dependencies into a into a 
> stand-alone executable package. This would make updating Trac more of a 
> chore, but would simplify the service & routing setup compared to the venv 
> approach. YMMV, of course.

Really...

https://hub.docker.com/r/mwaeckerlin/trac
https://hub.docker.com/r/stephenhsu/trac/
https://github.com/solsson/docker-trac
etc.

Bitnami claims to have a container too but I don't see a link on their
trac page.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/f24f8394-78b5-776e-2489-a6f1e8ad024c%40bmrb.wisc.edu.


signature.asc
Description: OpenPGP digital signature


Re: [Trac] Re: Getting Trac running in a venv

2019-10-11 Thread 'Dimitri Maziuk' via Trac Users

On 10/11/2019 2:57 AM, Mike Dewhirst wrote:

The Trac server will be Ubuntu 18.04 not Windows. Does that modify your 
"no alternative."?


Containers aren't portable, you need a windows container to run on 
windows and a linux one to run on linux.


As it happens, already running on the target machine is Apache serving 
four Django sites and svn. That's why I had to take Trac down.


Simply put, trac webserver is inside the container and is listening on a 
port. Host apache is proxying trac url to that port:

 ProxyPass /trac/ http://127.0.0.1:9876/


What does "core python being incompatible with itself" mean?


It means I can still run perl scripts from the 90s. Can't read them, but 
they'll run on ubuntu 18.04. Python: not so much.


Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/e41db28b-b5a6-bbbc-7beb-252e019e7cec%40bmrb.wisc.edu.


Re: [Trac] counter

2020-01-29 Thread 'Dimitri Maziuk' via Trac Users
On 1/29/20 12:21 PM, Leho Kraav wrote:
> On 29 January 2020 19:09:14 ONeal Freeman  wrote:
>> Is there a hit counter for trac to keep a count of how many users are
>> accessing the site?
...
> I'd probably go with Google Analytics or Matomo.
> 

Ugh. https://goaccess.io/

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/532cdf91-e138-3467-2f8d-8e540974e73b%40bmrb.wisc.edu.


signature.asc
Description: OpenPGP digital signature


Re: [Trac] counter

2020-01-29 Thread 'Dimitri Maziuk' via Trac Users
On 1/29/20 3:02 PM, Leho Kraav wrote:

> Wow, different thing but supernice.
> 

Well, aside from not needing cookies (which would require modifying trac
templates I expect), it's very lightweight. Using something like piwik
or elk on one small-ish trac site would be way overkill. Google too,
even though it's easier to set up.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/22b1b0c7-dee0-5dcf-4a53-a47f7f8ecdcd%40bmrb.wisc.edu.


signature.asc
Description: OpenPGP digital signature