-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from Calcagiara/dhubDremioUserTestChangesKfpB…
…ucket feat(digitalhub): dremio now uses coder email and an automatically generated password; core tests now take the token from core directly; kubeflow-pipelines now uses a separate bucket
- Loading branch information
Showing
8 changed files
with
96 additions
and
75 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
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#!/usr/bin/env bash | ||
DIR="/opt/dremio/data/db" | ||
if [ -d "$DIR" ]; then | ||
echo "directory already exist" | ||
exit 0 | ||
else | ||
mkdir -p /opt/dremio/data/db | ||
tar xvf /tmp/init/dremio-backup.tar --directory /tmp | ||
/opt/dremio/bin/dremio-admin restore -d /tmp/dremio_backup_2023-07-06_12.02/ | ||
echo "$ADMIN_PASSWORD" | ||
/opt/dremio/bin/dremio-admin set-password -u admin -p "$ADMIN_PASSWORD" | ||
fi | ||
|
||
curl "http://${DREMIO_URL}:9047/apiv2/bootstrap/firstuser" -X PUT \ | ||
-H 'Authorization: _dremionull' -H 'Content-Type: application/json' \ | ||
-d '{ | ||
"userName": "'"$DREMIO_CODER_EMAIL"'", | ||
"password": "'"$ADMIN_PASSWORD"'", | ||
"firstName": "digitalhub", | ||
"lastName": "digitalhub", | ||
"email": "'"$DREMIO_CODER_EMAIL"'" | ||
}' |
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
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