summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-12-17 17:04:25 -0700
committermo khan <mo.khan@gmail.com>2020-01-24 10:55:39 -0700
commit2ff2fb114e87ac65d744fcc1285a55af7f40beda (patch)
tree097a8dc8419dfb0a23ca5210910b77059c8e1df0 /run.sh
parenta21dfa78416544d56b41dc8a5529a8a41791dd34 (diff)
Cleanup redundant code and shrink image
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/run.sh b/run.sh
index 6a0b8db..82476b1 100755
--- a/run.sh
+++ b/run.sh
@@ -90,7 +90,7 @@ case "$LM_PYTHON_VERSION" in
*)
echo "python version not supported: $LM_PYTHON_VERSION" >&2
- exit 1
+ #exit 1
;;
esac
@@ -110,16 +110,17 @@ case "$COMMAND" in
pushd $APP_PATH > /dev/null
if [[ -z "${SETUP_CMD}" ]]; then
+ asdf install
# Before running license_finder, we need to install dependencies for the project.
if test -f Gemfile ; then
- if test -n "$rvm_recommended_ruby" ; then
+ #if test -n "$rvm_recommended_ruby" ; then
# Install the Ruby version RVM found in the project files
# This always end in the cryptic "bash: Searching: command not found" error but Ruby is installed
# So we ignore the error.
- $($rvm_recommended_ruby) 2>/dev/null || true
- rvm use .
- bundler_version=$(grep -A1 "BUNDLED WITH" Gemfile.lock | tail -n 1)
- gem install bundler -v "${bundler_version}" || gem install bundler
+ #$($rvm_recommended_ruby) 2>/dev/null || true
+ #rvm use .
+ #bundler_version=$(grep -A1 "BUNDLED WITH" Gemfile.lock | tail -n 1)
+ #gem install bundler -v "${bundler_version}" || gem install bundler
# rvm pulls outdated gems
# need this to update system bundler
# We need to install the license_finder gem into this Ruby version too.
@@ -148,7 +149,6 @@ case "$COMMAND" in
skip_prepare=true
fi
-
if find . -name "*.go" -printf "found" -quit |grep found >/dev/null ; then
if [[ ( ! -f glide.lock ) && ( ! -f vendor/manifest ) && (! -f Gopkg.lock ) && (! -f go.mod ) ]]; then
echo "running go get"