Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
ceab9628
Commit
ceab9628
authored
Jun 21, 2022
by
Samruddhi Khandale
Committed by
GitHub
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Attempt to fix communication error on images smoke test (#52)"
This reverts commit
7b256bf5
.
parent
7b256bf5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
install.sh
src/ruby/install.sh
+6
-10
No files found.
src/ruby/install.sh
View file @
ceab9628
...
@@ -12,7 +12,6 @@ RUBY_VERSION=${VERSION:-"latest"}
...
@@ -12,7 +12,6 @@ RUBY_VERSION=${VERSION:-"latest"}
USERNAME
=
${
USERNAME
:-
"automatic"
}
USERNAME
=
${
USERNAME
:-
"automatic"
}
UPDATE_RC
=
${
UPDATE_RC
:-
"true"
}
UPDATE_RC
=
${
UPDATE_RC
:-
"true"
}
INSTALL_RUBY_TOOLS
=
${
INSTALL_RUBY_TOOLS
:-
"true"
}
INSTALL_RUBY_TOOLS
=
${
INSTALL_RUBY_TOOLS
:-
"true"
}
RVM_DIR
=
"/usr/local/rvm"
# Note: ruby-debug-ide will install the right version of debase if missing and
# Note: ruby-debug-ide will install the right version of debase if missing and
# installing debase directly fails on Ruby 3.1.0 as of 1/7/2022, so omitting.
# installing debase directly fails on Ruby 3.1.0 as of 1/7/2022, so omitting.
...
@@ -219,18 +218,13 @@ else
...
@@ -219,18 +218,13 @@ else
fi
fi
fi
fi
# Create rvm group as a system group to reduce the odds of conflict with local user UIDs
# Create rvm group as a system group to reduce the odds of conflict with local user UIDs
umask
0002
if
!
cat
/etc/group |
grep
-e
"^rvm:"
>
/dev/null 2>&1
;
then
if
!
cat
/etc/group |
grep
-e
"^rvm:"
>
/dev/null 2>&1
;
then
groupadd
-r
rvm
groupadd
-r
rvm
fi
fi
# Install rvm
# Install rvm
mkdir
-p
"
${
RVM_DIR
}
"
usermod
-aG
rvm
${
USERNAME
}
chown
-R
"
${
USERNAME
}
:rvm"
"
${
RVM_DIR
}
/"
chmod
-R
g+r+w
"
${
RVM_DIR
}
/"
curl
-sSL
https://get.rvm.io | bash
-s
stable
--ignore-dotfiles
${
RVM_INSTALL_ARGS
}
--with-default-gems
=
"
${
DEFAULT_GEMS
}
"
2>&1
curl
-sSL
https://get.rvm.io | bash
-s
stable
--ignore-dotfiles
${
RVM_INSTALL_ARGS
}
--with-default-gems
=
"
${
DEFAULT_GEMS
}
"
2>&1
source
${
RVM_DIR
}
/scripts/rvm
usermod
-aG
rvm
${
USERNAME
}
source
/usr/local/rvm/scripts/rvm
rvm fix-permissions system
rvm fix-permissions system
rm
-rf
${
GNUPGHOME
}
rm
-rf
${
GNUPGHOME
}
fi
fi
...
@@ -281,7 +275,7 @@ if [ "${SKIP_RBENV_RBUILD}" != "true" ]; then
...
@@ -281,7 +275,7 @@ if [ "${SKIP_RBENV_RBUILD}" != "true" ]; then
ln
-s
/usr/local/share/ruby-build /home/
${
USERNAME
}
/.rbenv/plugins/ruby-build
ln
-s
/usr/local/share/ruby-build /home/
${
USERNAME
}
/.rbenv/plugins/ruby-build
fi
fi
ln
-s
${
RVM_DIR
}
/rubies/default/bin/ruby
${
RVM_DIR
}
/gems/default/bin
ln
-s
/usr/local/rvm/rubies/default/bin/ruby /usr/local/rvm
/gems/default/bin
chown
-R
"
${
USERNAME
}
:rvm"
"/home/
${
USERNAME
}
/.rbenv/"
chown
-R
"
${
USERNAME
}
:rvm"
"/home/
${
USERNAME
}
/.rbenv/"
chmod
-R
g+r+w
"/home/
${
USERNAME
}
/.rbenv"
chmod
-R
g+r+w
"/home/
${
USERNAME
}
/.rbenv"
...
@@ -289,7 +283,9 @@ if [ "${SKIP_RBENV_RBUILD}" != "true" ]; then
...
@@ -289,7 +283,9 @@ if [ "${SKIP_RBENV_RBUILD}" != "true" ]; then
fi
fi
fi
fi
find
"
${
RVM_DIR
}
"
-type
d | xargs
-n
1
chmod
g+s
chown
-R
"
${
USERNAME
}
:rvm"
"/usr/local/rvm/"
chmod
-R
g+r+w
"/usr/local/rvm/"
find
"/usr/local/rvm/"
-type
d | xargs
-n
1
chmod
g+s
# Clean up
# Clean up
rvm cleanup all
rvm cleanup all
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment