Skip to content

bundle command not found when sshing into container #51

Closed
@anthonygreen

Description

@anthonygreen

Dockerfile

FROM ruby:latest

RUN apt-get update

RUN apt-get install -y openssh-server
RUN mkdir -p /var/run/sshd

RUN apt-get install -y --no-install-recommends openjdk-7-jdk
RUN apt-get install -y --no-install-recommends subversion

RUN adduser --quiet --disabled-login jenkins
RUN echo "jenkins:password" | chpasswd

RUN mkdir -p /home/jenkins/.subversion
RUN mkdir -p /home/jenkins/.ssl 
RUN mkdir -p /home/jenkins/.ssh

EXPOSE 22

CMD ["/usr/sbin/sshd", "-D"]

when I ssh in bundler is not listed amongst gem list

nor can any bundle command be run

sudo docker run -it --rm ruby:latest bundle --version

does state

Bundler version 1.10.6

though

so maybe some documentation on how it's supposed to work from within the container

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions