We are trying to setup SSH remote interpreter to the local docker container to debug Rails application.
We don't want to use remote Docker interpreter since we need our container to run in background, and want occasionally run debug sessions within running container.
We do have ssh server run in container and able to connect remote ruby interpreter to it, but we can't run/debug anything using it.
Other issue, we have an empty gem list in IDE for this interpreter.
We try to run the simplest possible setup now, generated Rails App Stub and standard ruby image:
RUN apt-get update && \
apt-get install -y --no-install-recommends \
RUN echo "root:root" | chpasswd
RUN sed -i -e '/PermitRootLogin/ s/ .*/ yes/' /etc/ssh/sshd_config
RUN mkdir /var/run/sshd
RUN gem install bundler --no-ri --no-rdoc
RUN mkdir -p /app
# copy src with Gemfile
ADD . /app
RUN bundle install
EXPOSE 3000 22
CMD ["/usr/sbin/sshd", "-D"]
Remote interpreter settings:
When we try to add this interpreter to Rails Run Configurations it fails to run with [No Rails found in SDK].
Again we do not try to use some special setup here, standard Ruby Image with bare generated rails scaffold app, so if you have a working setup it would be really awesome to see it.
So the questions are:
Is it possible to run such setup at all?
If so, what we were missing in our setup?
Build #RM-172.3544.29, built on July 28, 2017
Licensed to RubyMine Evaluator
Expiration date: September 7, 2017
JRE: 1.8.0_152-release-915-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
Thanks in advance