dckc / madmode-blog

my tinkering notebook (blog)
https://www.madmode.com
0 stars 2 forks source link

Zope: I want my data back #34

Open dckc opened 7 years ago

dckc commented 7 years ago

Do you, Programmer, take this Object to be part of the persistent state of your application, to have and to hold, through maintenance and iterations, for past and future versions, as long as the application shall live? -- Persistence and Upgrade

struggling to get my data out of Zope 2008-12-08

dckc commented 3 years ago

https://github.com/dckc/madmode-blog/blob/master/pages/2013/migrate-old-zope.md published: False Latest commit a2f54a9 on Jan 7, 2013

https://github.com/dckc/madmode-blog/tree/master/pages/2013/zout 011b8f2 on Mar 30, 2013

connolly@pav:~/projects/zwiki-migrate/0506wik-hg$ hg log10
5:cfcc9b7339a6 2005-07-15 handle inter-topic links
4:01b104516dd5 2005-07-15 xmltramp.py is no longer used
3:dd2dd8051bca 2005-07-14 comment out parsing diagnostics now that it works
2:58fc3b8e1fa8 2005-07-14 missing attributes produce nothing rather than empty small elt
1:060b568f0c70 2005-07-14 use tidy via ElementTree to deal with borken markup
0:0c04c5863ebb 2005-07-14 capturing project state in hg
dckc commented 3 years ago

Darn! all the copies of Data.fs that I can find are missing data from 2 months before a 27 Jan 2005 snapshot in the wayback machine.

The 2004-08 version of RecentChanges was good but the 2004-12 version of RecentChanges says "umm... this sorta went away with the upgrade; see AboutThisWiki " where we find...

2 Aug 2004 dm93 AboutThisWiki

logs and DB getting out of control --connolly, 2 Aug 2004

How big is my zope database?

314714855 Aug  2 16:20 Data.fs
89953210 Aug  2 16:22 Z2.log
478M

upgraded to ZWiki-0.34.0 --connolly, 29 Nov 2004 upgraded zwiki to ZWiki-0.34.0.tgz It was a bit bumpy. ...

retrocomputing wish granted by docker community

Thanks for eea/eionet.zope-2-7-3: Zope image for legacy applications!!! 41adfb8 on Jul 9, 2016 also zope-2-7-3 in dockerhub.

connolly@jambox:~/projects/eionet.zope-2-7-3$ docker images
REPOSITORY                       TAG                      IMAGE ID            CREATED             SIZE
eeacms/zope-2-7-3                latest                   60918c1b661e        4 years ago         642MB
eeacms/zope-2-7-2                latest                   1f6c5aaf7340        4 years ago         635MB
diff --git a/docker-compose.yml b/docker-compose.yml
index f3c7142..27b7ede 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,12 +1,12 @@

 # This file is not usable for production. Instead of build, use image: eeacms/zope-2-7-2:latest
 web:
-  build: .
+  image: eeacms/zope-2-7-2:latest
   environment:
-    USERID: 1001
+    USERID: 600
     INITIALADMIN: admin:changeme
   ports:
   - "80:8080"
   volumes:
-  - zope-website:/var/local/website
+  - /tmp/zope-instance:/var/local/website

I also had to change the paths in my zope-instance/bin/{runzope,zopectl} back to their canonical values. And re-install the ZWiki-0.8.1.tgz product.

And I had to deal with the predictable permissions issues.

dckc commented 9 months ago

This still bugs me.

While purging a System 7.x CD, I found a version of KidsMac from Sat, 23 Nov 2002 10:45:57 US/Eastern.