John Peeke · Mar 20, 2019 go to post

Thank you Rich. Between you and Dmitry, I have Cache running in a container now. I have added a response to this thread with my final result for others to see. Thank you again.

John Peeke · Mar 20, 2019 go to post

This answer is for others who are looking for a complete answer that worked for me. This is all thanks to Dmitry and Rich. I hope this helps someone else when they are searching the forums. My host machine is Windows 10 1809. My docker version is 2.0.0.3.

I had to use both ccontainermain and the ccontrol-wrapper.sh. My final dockerfile that is working successfully is:

FROM centos:latest

 

ENV TMP_INSTALL_DIR=/tmp/distrib

ENV ISC_PACKAGE_INSTANCENAME="CACHE"

ENV ISC_PACKAGE_INSTALLDIR="/usr/cachesys"

ENV ISC_PACKAGE_UNICODE="Y"

ENV ISC_PACKAGE_INITIAL_SECURITY="Minimal"

ENV ISC_PACKAGE_CLIENT_COMPONENTS=""

 

RUN mkdir ${TMP_INSTALL_DIR}

WORKDIR ${TMP_INSTALL_DIR}

 

RUN yum -y update && \

yum -y install tar gzip which java-1.8.0-openjdk

 

ADD cache-2017.1.3.317.0.18571-lnxrhx64.tar.gz .

RUN ./cache-2017.1.3.317.0.18571-lnxrhx64/cinstall_silent && rm -rf /tmp/distrib && ccontrol stop cache quietly

 

COPY ccontrol-wrapper.sh /usr/bin/

RUN cd /usr/bin && \

rm ccontrol && \

mv ccontrol-wrapper.sh ccontrol && \

chmod 555 ccontrol

 

WORKDIR /

ADD ccontainermain .

 

EXPOSE 57772 22 1972

 

ENTRYPOINT ["/ccontainermain", "-i", "CACHE"]

John Peeke · Mar 19, 2019 go to post

Unless I misunderstood something, you said there is no storage driver for windows that can work with cache in a docker image. What are the issues with it, and how to get around it? Still trying to figure out the gzip issue I am having (first time ever getting something like this when gzip is already in the image).

I would love to use Docker. Thanks for your time.

John Peeke · Mar 19, 2019 go to post

I saw your previous article and used it as a template to make my own. So, at this point it looks like Docker is a no-go for a development environment for Cache. Thanks for the tip on the ADD. I knew there was a difference between the two commands. Really appreciate the help. Guess a VM is the way to go.