Skip to content

Commit

Permalink
support local-only install in build script (#5419)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellhenke committed Sep 22, 2021
1 parent 86c4f38 commit b5356b4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions deploy/build
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@ id
which bundle
# default bundle directory to shared directory
: ${BUNDLE_DIR=/srv/idp/shared/bundle}
: ${IDP_LOCAL_DEPENDENCIES=false}

# use system libxml2, not the one vendored with nokogiri
bundle config build.nokogiri --use-system-libraries
bundle config set --local deployment 'true'
bundle config set --local path $BUNDLE_DIR
bundle config set --local without 'deploy development doc test'

bundle install --jobs 4
bundle binstubs --all
if [ "$IDP_LOCAL_DEPENDENCIES" == "true" ]
then
bundle install --jobs 4 --local
yarn install --production --frozen-lockfile --offline
else
bundle install --jobs 4
yarn install --production --frozen-lockfile
fi

yarn install --production --frozen-lockfile
bundle binstubs --all

set +x

Expand Down

0 comments on commit b5356b4

Please sign in to comment.