Question: docker container: add symlink to /Users/www/[project] in /var/www to access and serve local files

Question

docker container: add symlink to /Users/www/[project] in /var/www to access and serve local files

Answers 0
Added at 2016-12-18 06:12
Tags
Question

I am trying to serve local CFML files on my mac via the Lucee docker container (https://hub.docker.com/r/lucee/lucee5/). I got so far as to mount the specific folder on my mac to a symlink within my docker images docker run -it imagename -v /Users/[username]/www/projectx:/code /bin/bash So on the bash in the docker image I now have /code. I then create a symlink ln -s /code projectx in my /var/www.

When I then serve the image running tomcat whilst also mounting the the folder

docker run -p 1337:8888 -v /Users/[username]/www/projectx:/code [imagename] catalina.sh run

I would expect to be able to access http://localhost:1337/projectx Unfortunately it can't find that folder. Probably since Lucee doesn't recognises or indexes the the files on run time?

Is this possible?

The outcome I am look at is developing my Coldfusion app on my MAC while running Lucee+mysql on my docker container and having the source code locally so that I don't have to play with samba shares or other ways to be able to edit the coldfusion files in my IDE. (Samba share stopped working when I upgraded to Sierra)

Answers
Source Show
◀ Wstecz