mirror of
https://github.com/inspec/inspec
synced 2024-12-02 17:40:00 +00:00
8327e35473
Sticking to 3.0.6 for now.
38 lines
870 B
Bash
Executable file
38 lines
870 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "--- dependencies"
|
|
. .expeditor/buildkite/cache_support.sh
|
|
install_cache_deps sudo
|
|
|
|
echo "--- setting up user"
|
|
export LANG=C.UTF-8 LANGUAGE=C.UTF-8
|
|
useradd -m -U --uid 2000 normal
|
|
echo "normal ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/normal
|
|
|
|
echo "--- updating rubygems"
|
|
gem update -N --system 3.0.6 --force
|
|
|
|
echo "--- system details"
|
|
uname -a
|
|
gem env
|
|
bundle --version
|
|
mount
|
|
df /tmp
|
|
echo ${TMPDIR:-unknown}
|
|
|
|
echo "--- pull bundle cache"
|
|
pull_bundle
|
|
|
|
echo "--- bundle"
|
|
bundle config --local path vendor/bundle
|
|
bundle install --jobs=7 --retry=3 --without tools maintenance deploy
|
|
|
|
echo "--- push bundle cache"
|
|
push_bundle
|
|
|
|
echo "+++ bundle exec rake ${RAKE_TASK:-}"
|
|
# TODO: run this as non-root:
|
|
# chown -R normal:normal /home/normal /workdir
|
|
# su normal -c "bundle exec rake ${RAKE_TASK:-}"
|
|
# shellcheck disable=SC2086
|
|
bundle exec rake ${RAKE_TASK:-}
|