Local development with Docker?


(Zach Alexander) #1

I’d like to set up Docker locally (on OS X) to run development versions of my forums.

I’ve installed Docker, but I don’t really know where to go from here. Should I clone the Discourse docker image into /var/docker on my Mac, or create an Ubuntu VM first and do it there?


(Sam Saffron) #2

I plan to shift all my dev work into a docker container, but have not gotten around to it.

Once I have that done I will publish it so the rest of the community can enjoy it.

Setting up a dev image is quite involved. You could start with our base image but you would need a pile of extra stuff.


#3

That would be very nice…Thanks in advance.


(Zach Alexander) #4

I thought the whole point of Docker is that it packages the entire environment you need – curious what the pile of extra stuff is.

In the meantime, seems like it might be easiest for me to create a (remote) staging server and use that for development.


(Sam Saffron) #5

phantomjs, my vim config would be the 2 big ones off the cuff.