bowhead icon indicating copy to clipboard operation
bowhead copied to clipboard

Offical docker image with volume mapping for user files

Open seertenedos opened this issue 8 years ago • 7 comments

WOndering if it would be possible to have an offical docker image pushed to dockerhub and then have value mappings people could set to local folders for the environment config and user files but still have all the non user files built into the image. Saves needing a docker environment for building and run one to run it like ECS or in my case my NAS.

seertenedos avatar Jan 03 '18 15:01 seertenedos

Hi. I've just published this suggestion to Joel in medium. All you need is to create your container with this sentence (i'm editing the existing one in create_docker file):

create_docker docker build -t bowhead docker/ && docker run --name=bowhead -p 127.0.0.1:8090:8080 -v /your/local/folder:/var/www/bowhead bowhead

So, basically you map your local folder to docker with -v /your/local/folder:/var/www/bowhead bowhead

Hope this help.

libasoles avatar Jan 04 '18 13:01 libasoles

Keep in min that because all application and backing services currently run in one container you still have to restart services when you modify sources...

I'm personally waiting for the good stuff that @joeldg is currently cooking up before going all out on dockerizing everything!

dhensen avatar Jan 04 '18 18:01 dhensen

What services? This is simple: you modify the code in your IDE, and the container code updates too. Then you run a command or fetch the Api. So, maybe you are thinking in a different scenario, but this works great in my localhost.

libasoles avatar Jan 04 '18 18:01 libasoles

I just pushed a ton of changes, and am going to get to the docker as soon as I get the new data services wrapped

rxmg-joeldg avatar Jan 05 '18 03:01 rxmg-joeldg

update: I literally spent all day building docker containers for my work, so I am def in good form for doing and getting an official Hub repo up.. more later

rxmg-joeldg avatar Jan 06 '18 07:01 rxmg-joeldg

sounds great

On Sat, Jan 6, 2018 at 6:25 PM, Joel De Gan [email protected] wrote:

update: I literally spent all day building docker containers for my work, so I am def in good form for doing and getting an official Hub repo up.. more later

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/joeldg/bowhead/issues/76#issuecomment-355729538, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYecT6GA-3cuKVk8uivXAuUh9BtNEXwks5tHx_qgaJpZM4RR2Tj .

seertenedos avatar Jan 06 '18 08:01 seertenedos

@libasoles all services defined to be running inside the container: mysql, redis, php-fpm and all workers started with supervisord. To me those are all separate services.

dhensen avatar Jan 06 '18 14:01 dhensen