Public Repository

Last pushed: 2 years ago
Short Description
SymmetricDS image
Full Description

The image expects that engines are mounted from a separate data volume into /opt/symmetric/engines.

Running

If the target or source database are on the same server, one can link the containers and then address the database host name in engine connection string. In this case, engine connection strings can contain hostname postgres to connect to the container on the same host:

docker run --name symmetric \
           --volumes-from symmetric-engines \
           --link postgres:postgres \
           -w /opt/symmetric \
           -d communitycloud/symmetricds 

The default command will turn off copy-on-write for tmp folder. If logging to the file is desired, one should expose /opt/symmetric/log as a volume and also turn off copy-on-write.

By default, we log only to standard output.

Build

The image was built manually with the following commands:

docker run -it --rm \
           -v /var/run/docker.sock:/var/run/docker.sock \
            communitycloud/docker-builder

apt-get update && apt-get install -y unzip

wget http://sourceforge.net/projects/symmetricds/files/symmetricds/symmetricds-3.7/symmetric-server-3.7.6.zip/download \
     -O symmetric-server-3.7.6.zip

unzip symmetric-server-3.7.6.zip
mv symmetric-server-3.7.6 symmetric

mkdir -p /images/symmetric && mv /symmetric /images/symmetric \
&& cd /images/symmetric \
&& rm -r symmetric/{samples,doc,change-log.txt,databases} \
&& cat > Dockerfile <<EOF
FROM pointslope/openjdk7
ADD symmetric /opt/symmetric
VOLUME /opt/symmetric/tmp
CMD chattr -R +C /opt/symmetric/tmp; /opt/symmetric/bin/sym --no-log-file
EOF

docker build -t communitycloud/symmetricds . 
docker tag communitycloud/symmetricds communitycloud/symmetricds:3.7.6
Docker Pull Command
Owner
communitycloud

Comments (1)
kpatierno
a month ago

Use the updated URL's for the current release