Eyestreet "Content Deploy" Tool
This is a java-based tool that will "deploy" or copy content from an Alfresco WCM repository source to another (target) location.
The target location can be local or remote and can be a file system or other CMS.
Target Configuration:
I used ISDA-IST1 as the target machine for testing.
- unpacked the software into /usr/local, creating /usr/local/cd-1.00.13 (the content deploy home directory, aka $CDHOME).
- made the following changes in the files:
- set executable bits on three scripts in bin: cda, wrapper, and deploy
- set the location of the Java binary in bin/wrapper.conf:
wrapper.java.command=/usr/local/jdk1.5.0_11/bin/java
- configured the agent (aka listener) by modifying etc/cda.xml:
cda.xml
<?xml version="1.0" encoding="UTF-8" ?> <agent-config> <admin bind-address="localhost" bind-port="21008" /> <server bind-address="18.92.0.199" bind-port="21009"> <permit host="18.92.1.223" key=""> <path location="/root/sturner/contentdeploy" /> </permit> </server> </agent-config>
This allows connections from 18.92.1.223 (isda-cs2) and allows deployment to /root/sturner/contentdeploy
- The agent/listener is started by typing:
$CDHOME/bin/cda start
- The agent is stopped by:
$CDHOME/bin/cda stop
Source Configuration:
I used ISDA-CS2 as the source machine for testing.
- installed the software in /usr/local, as on the target machine
- tweaked the $CDHOME/bin/deploy script so that the location of the java binary was correct:
JAVA_EXE=/usr/local/jdk1.5.0_11/bin/java
- moved the avm-remote context config from $CDHOME/conf/tests to $CDHOME/conf. I didn't make any changes to this config file, as I wanted to deploy from the local machine.
- created a deployment config file based on the Eyestreet samples under $CDHOME/conf. My file is $CDHOME/ist1-test.xml
ist1-test.xml
<?xml version="1.0" standalone="yes"?> <deployment-config> <sources> <alfresco-avm-remote-source id="alfresco-cs2" context-file="source-avm-remote-context.xml" repository-path="steveweb:/www/avm_webapps" snapshot="-1" user="admin" password="PASSWORD-GOES-HERE" root-path="/ROOT" > </alfresco-avm-remote-source> </sources> <targets> <filesystem-target id="ist1-fs" root-path="/root/sturner/contentdeploy"> <cd-agent-config ip-address="18.92.0.199" port="21009" /> </filesystem-target> </targets> <deployments> <deployment id="alfresco-cs2-to-ist1-fs" active="t" source-refid="alfresco-cs2" target-refid="ist1-fs" source-path="/" recurse="/" target-path="/" overwrite="f" /> </deployments> </deployment-config>
Deploying content
Finally, to deploy content, I issued these command:
cd $CDHOME/bin
./deploy ../conf/ist1-test.xml
This copies files from the staging sandbox of the "steveweb" web project on isda-cs2 into the file system on isda-ist1 under the directory /root/sturner/contentdeploy.