Back

Kanji Koohii is OpenSource

#26
Currently setting the open source repo to work with Docker, so setting up the environment and database will be easier.

Anyone has experience with Docker? I may have questions later if I run into a bump. I just have php7/apache and mysql services with docker-compose.
Reply
#27
I gave up on Docker because it uses a VM in OS X and file sharing is really slow.

I created a simple setup guide with MAMP for isolating php/mysql/apache environment on OS X.
Edited: 2017-06-16, 10:32 am
Reply
#28
(2017-06-16, 10:32 am)ファブリス Wrote: I gave up on Docker because it uses a VM in OS X and file sharing is really slow.

I created a simple setup guide with MAMP for isolating php/mysql/apache environment on OS X.

Do you mean file sharing to the Docker container on the local OS? You can set up your Dockerfile so that any files you need are copied into the image at container image build time. 

Personally, I've always found it easier to just spin up a dev Linux machine in AWS and use it as my Docker dev/build environment. You'll pay for that, obviously, but if you shut down the machine when you're not doing dev work you can keep monthly costs to within a few bucks.  

I have good experience w/ Docker and used to write tech docs/training for a Docker-related service. Let me know if you ever decide to try and take it back up.
Reply
JapanesePod101
#29
I can't work by copying files in the Docker container. I need quick edit & test cycles for front end development.

This project describes the issues with the standard Docker on OS X.

https://github.com/brikis98/docker-osx-dev

I tried it and it was kinda working but just a hassle with a separate terminal with all the rsync activity and god knows if it's 100% reliable and when a bug happens did it copy the file? Who knows.

Nah I won't waste any more time on this. There is practically no advantage seeing as MAMP works pretty much same as a container except it's pre-configured for apache / php / mysql obviously.
Reply
#30
(2017-06-16, 1:41 pm)ファブリス Wrote: I can't work by copying files in the Docker container. I need quick edit & test cycles for front end development.

This project describes the issues with the standard Docker on OS X.

https://github.com/brikis98/docker-osx-dev

I tried it and it was kinda working but just a hassle with a separate terminal with all the rsync activity and god knows if it's 100% reliable and when a bug happens did it copy the file? Who knows.

Nah I won't waste any more time on this. There is practically no advantage seeing as MAMP works pretty much same as a container except it's pre-configured for apache / php / mysql obviously.

Have you tried Docker For Mac (https://docs.docker.com/docker-for-mac/)? It seems the integration with the file system is a lot better on it.

"osxfs is a new shared file system solution, exclusive to Docker for Mac. osxfs provides a close-to-native user experience for bind mounting macOS file system trees into Docker containers."

By the way, I tried to run the Koohii code on Docker, but I couldn't configure it properly. I always get a "Configuration "config/databases.yml" does not exist or is unreadable." error.
Reply