Nuxeo DAM on Ubuntu 10.04

From Crashcourse Wiki

Jump to: navigation, search

UPDATE: A much newer version of this page can be found [here]. And any new tidbits on Nuxeo DM or DAM will be posted at the main page of [my website].

Contents

Building Nuxeo DAM (development branch) on Ubuntu 10.04

Partly for my own benefit (and more for the benefit of a couple of interested colleagues with lots of images to catalogue and who don't mind living out on the edge in terms of pre-release software), my recipe for building Nuxeo DAM (Digital Asset Management software) for Ubuntu 10.04 from the development branch, based somewhat on what you can read [here] with a few tweaks.

The rationale

There's been quite a bit of pleasant refactoring of Nuxeo DAM since release 1.0, so it's worth seeing how the new code base works. In particular, there are new control scripts and what appears to be a simplified build infrastructure.

The packages

Long story short, for Ubuntu 10.04:

$ sudo apt-get install mercurial gimp maven2 tomcat6
$ sudo apt-get install imagemagick ffmpeg ufraw poppler-utils

Plus the standard OpenOffice packages if you'll need them.

Which Java?

Despite the fact that it's not officially supported, using Ubuntu's OpenJDK 6 packages rather than Sun's Java seems to work fine, but I'm willing to be convinced otherwise.

Checking out the Mercurial development branch

Rather than checking out branch "1.0" as the Nuxeo page suggests, don't specify a branch:

$ hg clone http://hg.nuxeo.org/nuxeo-dam

then verify that you're on the "develop" branch:

$ cd nuxeo-dam
$ hg branch
develop
$

So far, so good. Movin' on ...

The build

According to Nuxeo's Thomas Roger, the top-level build.xml file is superfluous since the refactoring. The new (clearly improved) recipe is:

$ mvn clean install
$ cd nuxeo-dam-distribution
$ mvn clean install -Ptomcat  [or -Pjboss if that's your choice]

Unfortunately, there's one small obstacle in that, while that first build command works, the second fails still waiting for the download of the file nuxeo-distribution-tomcat-5.3.2-20100623.042910-74-nuxeo-dm.zip, which is taking an astonishingly long time to be placed into the proper download directory. (Literally, it's been over an hour and the 139M file is still only half there. Weird.)

In any event, the first build command terminates with:

[INFO] 
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Nuxeo DAM Parent ...................................... SUCCESS [6.753s]
[INFO] Nuxeo DAM Core ........................................ SUCCESS [38.263s]
[INFO] Nuxeo DAM WebApp Core ................................. SUCCESS [30.219s]
[INFO] Nuxeo DAM WebApp Contributions ........................ SUCCESS [1.264s]
[INFO] Nuxeo DAM WebApp ...................................... SUCCESS [1.906s]
[INFO] Nuxeo DAM WebApp Override ............................. SUCCESS [1.149s]
[INFO] Nuxeo DAM Language pack ............................... SUCCESS [1.245s]
[INFO] Nuxeo DAM Importer .................................... SUCCESS [15.757s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 41 seconds
[INFO] Finished at: Wed Jun 23 05:39:25 EDT 2010
[INFO] Final Memory: 171M/476M
[INFO] ------------------------------------------------------------------------

and I have no reason to think the second one won't also work once the full download file is available. And once that's finished, the final zip file should appear in nuxeo-dam-distribution/target/, whereupon testing will begin.


UPDATE: OK, final zip file is available, second part of build appears to succeed, I get my generated nuxeo-dam-distribution-1.1-SNAPSHOT-tomcat.zip file, so unzip it, fire it up with the new manager script:

$ sh bin/nuxeoctl start

and, voila, I have DAM. Nicely done. Hmmmmm ... OK, it's development code so I can see a few glitches. Time to start making a list.

Acknowledgements

Thanks to Nuxeo's Thomas Roger, whose assistance went above and beyond the call of duty. I probably owe him a beer.

Random, stream of consciousness observations

Since my image-laden colleagues are curious, I'll just list my observations here rather than constantly email them. I spend enough time grappling with email as it is.

  • Since this is pre-release code, it would be useful to have a watermark or warning of some kind to that effect at the login screen. Just to play it safe.
  • Hmmmm ... import dialog disappears off bottom of browser and if I grab it and drag it up, it's title bar will disappear, at which point it's impossible to move it around again. I'm guessing a simple fix.
  • A lot of the HTML documentation bundled with the generated zip file is just wrong -- much of it refers to DM, not DAM.
  • Bundled readme.html file suggests to start DAM on Linux with ./bin/nuxeoctl start. That won't work since the nuxeoctl script is not executable -- either make it executable or run sh bin/nuxeoctl start. (The Mac OS X script bin/Start Nuxeo.command actually gets it right by running the appropriate chmod command. In the end, a fairly insignificant oversight.)

That's it for now. Must go fight with Qemu+KVM for a while. Will be back with more observations when time permits.

Personal tools