The image expects that engines are mounted from a separate data volume into /opt/symmetric/engines.
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.
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
Content type
Image
Digest
sha256:36461f90d…
Size
202.7 MB
Last updated
almost 11 years ago
docker pull communitycloud/symmetricds