Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F41923519
build.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
build.sh
View Options
#!/bin/sh
# -------------------------------------------------------------
# Install Rhyne-Wyse in a virtual environment
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: BSD-2-Clause
# Source file: roles/reports/rhyne-wyse/files/build.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
set
-e
VENV
=
/opt/rhyne-wyse/venv
TOOLS_ROOT_DIR
=
/opt/nasqueron-reports/tools
# -------------------------------------------------------------
# Initialize virtual environment
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
python3
-m
venv
$VENV
.
$VENV
/bin/activate
pip
install
--upgrade
pip
pip
install
setuptools
build
# -------------------------------------------------------------
# Build and install components
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
build_package_for_tool
()
{
cd
"
$TOOLS_ROOT_DIR
/
$1
"
python3
-m
build
latest_package
=
$(
find
dist
-name
'*.whl'
|
sort
|
tail
-n1
)
if
[
-z
"
$latest_package
"
]
;
then
echo
"[
$1
] No build artifact found in dist/"
>
&
2
exit
1
fi
pip
install
"
$latest_package
"
}
build_package_for_tool
secretsmith
build_package_for_tool
nasqueron-reports
build_package_for_tool
rhyne-wyse
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Aug 8, 03:03 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3942887
Default Alt Text
build.sh (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment