From 90cf8dc234b8d43c92028bab52a0fbecff095f15 Mon Sep 17 00:00:00 2001 From: RoyShravani Date: Fri, 10 Jan 2025 13:30:24 +0530 Subject: [PATCH] adding local path to bundle config Signed-off-by: RoyShravani --- components/automate-cs-ocid/habitat/hooks/run | 5 ++--- components/automate-cs-ocid/habitat/plan.sh | 8 -------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/components/automate-cs-ocid/habitat/hooks/run b/components/automate-cs-ocid/habitat/hooks/run index 3734a4f4acc..43a289aea5c 100644 --- a/components/automate-cs-ocid/habitat/hooks/run +++ b/components/automate-cs-ocid/habitat/hooks/run @@ -11,9 +11,8 @@ cp "{{pkg.svc_config_path}}/tasks/oauth_application.rake" $(hab pkg path "chef/o cd {{pkgPathFor "chef/oc_id"}}/oc_id # Suspecting that the bundle path is not getting set correctly due to which .bundle is getting created in the root directory -# Set the BUNDLE_APP_CONFIG environment variable to a ocid directory -# export BUNDLE_APP_CONFIG="{{pkgPathFor "chef/oc_id"}}/oc_id/.bundle" -bundle config path "vendor/bundle" +# Suspecting that the bundle path is not getting set correctly due to which .bundle is getting created in the root directory +bundle config set --local path "vendor/bundle" export RAILS_ENV="{{cfg.rails_env}}" export RACK_ENV="{{cfg.rack_env}}" diff --git a/components/automate-cs-ocid/habitat/plan.sh b/components/automate-cs-ocid/habitat/plan.sh index 851100f6901..6e31a88ff2d 100644 --- a/components/automate-cs-ocid/habitat/plan.sh +++ b/components/automate-cs-ocid/habitat/plan.sh @@ -50,11 +50,3 @@ do_build() { do_install() { return 0 } - -do_end() { - if [ -d "/root/.bundle" ]; then - # Remove the .bundle directory - rm -rf /root/.bundle - echo ".bundle directory in /root has been removed." - fi -}