Update dev setup with small improvements

- ripgrep (rg) and rsync can both be invoked from some
stx/docs tox targets and utilities.

 - override the default editor (nano) with vi.
In the future this will be driven by a yaml variable

- pass in --rebuild when stx-init-env is run.  The build
containers are not always up to date with the latest code.

Story: 2010547
Task: 47211
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I1e3b17d57fd537432bc3780759c8a47a2e3b2a5b
This commit is contained in:
Al Bailey 2023-02-28 18:29:46 +00:00
parent 5271eca7ed
commit 90d07a75d7
1 changed files with 5 additions and 1 deletions

View File

@ -79,10 +79,12 @@ $package_setup = <<PACKAGE_SETUP
# libxslt1-dev (config)
# ostree (update)
# python3-all-dev (config)
# ripgrep (docs)
# rsync (docs)
# ruby-dev (stx-puppet)
# ruby-rubygems (stx-puppet)
# tox (all)
apt-get install -y bc libffi-dev libldap2-dev libsasl2-dev libxml2-dev libxslt1-dev ostree python3-all-dev ruby-rubygems ruby-dev tox
apt-get install -y bc libffi-dev libldap2-dev libsasl2-dev libxml2-dev libxslt1-dev ostree python3-all-dev ripgrep rsync ruby-rubygems ruby-dev tox
# pip install some additional components that are helpful for development
pip3 install bindep
@ -164,6 +166,8 @@ $user_setup = <<-'USER_SETUP'
su - ${DEV_USER} -c "mkdir -p ${PATCHES_DIR}"
echo "export PATCHES_DIR=${PATCHES_DIR}" >> ${PROFILE}
# override default editor (nano)
echo "export EDITOR=vi" >> ${PROFILE}
# STX_BUILD_HOME is the same as the project workspace
MY_WORKSPACE="${MY_LOCALDISK}/WORKSPACE/${PROJECT}"