Skip to content

Commit

Permalink
make /usr/bin/mkdir available for installing gems into the vscode image
Browse files Browse the repository at this point in the history
Without this the rails/webdrivers installation into mcr.microsoft.com/vscode/devcontainers/base:bullseye fails with:

make DESTDIR\= sitearchdir\=./.gem.20230627-76-qe4u9x sitelibdir\=./.gem.20230627-76-qe4u9x install
make: /usr/bin/mkdir: No such file or directory
  • Loading branch information
tom-m committed Jun 27, 2023
1 parent d0d1f0a commit 6ab140b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN curl -sSL https://get.rvm.io | bash -s
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && rvm install 3.2.1"

# Install Rails
RUN ln -s /bin/mkdir /usr/bin/mkdir
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && gem install rails webdrivers"
RUN chown -R vscode /usr/local/rvm

Expand Down

0 comments on commit 6ab140b

Please sign in to comment.