Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 45a19f5

Browse files
committed
Update Docker setup for ruby installation
1 parent c45285f commit 45a19f5

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.zshrc

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export PATH="$HOME/bin:/usr/local/bin:$PATH:$HOME/.local/bin:$PATH"
1313
# Path to your oh-my-zsh installation.
1414
export ZSH=$HOME/.oh-my-zsh
1515

16+
# Path xterm-256-color
17+
export TERM="xterm-256color"
18+
1619
# Set name of the theme to load. Optionally, if you set this to "random"
1720
# it'll load a random theme each time that oh-my-zsh is loaded.
1821
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

README.md

+4-13
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,17 @@ Painless Ruby Installation (Autoinstaller Ruby)
7878
# Prepare Install Ruby
7979
# -) copy .zshrc to /root
8080
# -) copy .bashrc to /root
81-
# -) copy installation scripts to /opt
8281
#-----------------------------------------------------------------------------
82+
RUN git clone https://github.com/zeroc0d3/ruby-installation /opt/ruby_installer
83+
8384
COPY ./rootfs/root/.zshrc /root/.zshrc
8485
COPY ./rootfs/root/.bashrc /root/.bashrc
85-
COPY ./rootfs/root/ruby.sh /etc/profile.d/ruby.sh
86-
COPY ./rootfs/root/install_ruby.sh /opt/install_ruby.sh
87-
COPY ./rootfs/root/reload_shell.sh /opt/reload_shell.sh
88-
RUN sudo /bin/sh /opt/install_ruby.sh
89-
90-
#-----------------------------------------------------------------------------
91-
# Copy package dependencies in Gemfile
92-
#-----------------------------------------------------------------------------
93-
COPY ./rootfs/root/Gemfile /opt/Gemfile
94-
COPY ./rootfs/root/Gemfile.lock /opt/Gemfile.lock
86+
RUN sudo /bin/sh /opt/ruby_installer/install_ruby.sh
9587
9688
#-----------------------------------------------------------------------------
9789
# Install Ruby Packages (rbenv/rvm)
9890
#-----------------------------------------------------------------------------
99-
COPY ./rootfs/root/gems.sh /opt/gems.sh
100-
RUN sudo /bin/sh /opt/gems.sh
91+
RUN sudo /bin/sh /opt/ruby_installer/gems.sh
10192
```
10293

10394
## Running Installation

0 commit comments

Comments
 (0)