Issue regarding Docker development image

It should absolutely be in the docker image, care to do a PR to add it :wink: this is just a fallback for the time being to unblock you

2 Likes

Sure thing! A quick question though. I have added libsqlite3-dev installation in the discourse_dev Dockerfile. However, to install the mailcatcher I can see two potential places; 1) in the above mentioned Dockerfile or 2) the Gemfile of the main discourse repo inside the development group. Which one would be your pick?

https://github.com/discourse/discourse/blob/master/Gemfile#L149-L155

@sam, the following two PRs should do the trick.

https://github.com/discourse/discourse_docker/pull/317

https://github.com/discourse/discourse/pull/4598

5 Likes

@sam, I know you did not like the idea of adding mailcatcher dependency in the Gemfile of the main discourse repo and preferred to manually install it in the dev docker image. However, the fallback installation code from the bin/docker/mailcatcher of the main repo should go away. Would you like me to send a separate PR with just that change?

2 Likes

@sam, a new PR on its way.

https://github.com/discourse/discourse/pull/4601

2 Likes

Is anyone using the Docker image with an IDE like RubyMine?
I tried configuring the Docker image as remote SDK, but that’s really slow. And what’s the best way to configure remote debugging?

It looks like developing with Docker still doesn’t work without jumping through lots of hoops. I guess I’ll use my good, old Ubuntu VM with local rbenv a little longer.

2 Likes