-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: NVSHAS-9494 make manager SLSA capable
- Loading branch information
1 parent
3b2a5ea
commit 43e0aef
Showing
7 changed files
with
189 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
*.class | ||
*.log | ||
apis.yaml | ||
docker-compose.yml | ||
|
||
# sbt specific | ||
.cache | ||
.history | ||
.lib/ | ||
target/ | ||
lib_managed/ | ||
src_managed/ | ||
project/boot/ | ||
project/plugins/project/ | ||
|
||
# Scala-IDE specific | ||
.scala_dependencies | ||
.worksheet | ||
*.sc | ||
|
||
#IntelliJ specific | ||
.idea | ||
|
||
# eclipse specific | ||
*.pydevproject | ||
.project | ||
.metadata | ||
bin/** | ||
tmp/** | ||
tmp/**/* | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.classpath | ||
.settings/ | ||
.loadpath | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# Downloaded dependencies | ||
|
||
*.DS_Store | ||
.DS_Store | ||
|
||
.sass-cache | ||
.sass-cache/* | ||
|
||
.vscode/ | ||
admin/webapp/.bsp/ | ||
admin/webapp/websrc/.bsp/ | ||
token.json | ||
|
||
.metals | ||
admin/test/REST_API/output | ||
admin/webapp/root | ||
admin/webapp/.angular | ||
/.bsp/* | ||
/admin/.angular/ | ||
/admin/webapp/websrc/assets/mockdata | ||
/admin/webapp/package-lock.json | ||
admin/webapp/websrc/assets/i18n/en.json | ||
admin/webapp/websrc/assets/i18n/zh_cn.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
export CHROME_BIN=/usr/bin/google-chrome | ||
|
||
rm -rf admin/target | ||
pushd admin/webapp | ||
if [[ $# > 0 ]]; then | ||
case $1 in | ||
-d) | ||
mkdir -p /root/.ivy2 | ||
ln -s /prebuild/manager/cache /root/.ivy2/cache | ||
# ln -s /prebuild/manager/node_modules node_modules | ||
;; | ||
*) | ||
;; | ||
esac | ||
fi | ||
npm install --legacy-peer-deps 2>&1 | ||
if [ $? -eq 0 ]; then | ||
echo npm package installation SUCCEED | ||
else | ||
npm cache clean --force 2>&1 | ||
sleep 10 | ||
npm install 2>&1 | ||
if [ $? -eq 0 ]; then | ||
echo npm package installation SUCCEED | ||
else | ||
echo ================================ | ||
echo npm package installation FAILED | ||
echo ================================ | ||
exit 1 | ||
fi | ||
fi | ||
npm run build 2>&1 | ||
if [ $? -eq 0 ]; then | ||
echo UI build SUCCEED | ||
else | ||
echo ================================ | ||
echo UI build FAILED | ||
echo ================================ | ||
exit 1 | ||
fi | ||
# npm run unittest | ||
popd | ||
env JAVA_OPTS="-Xms2g -Xmx3g" sbt admin/assembly | ||
zip -d admin/target/scala-3.3.4/admin-assembly-1.0.jar rest-management-private-classpath\* | ||
rm -rf admin/webapp/root/.sass-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ prettytable==2.5.0 | |
requests==2.32.0 | ||
six==1.11.0 | ||
supervisor==4.2.5 | ||
urllib3==1.26.19 | ||
urllib3==1.26.19 | ||
|