-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update nexus setup scripts, nginx config, portforwards
- Loading branch information
Showing
5 changed files
with
40 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
## Get the nexus3 admin password and write to disk | ||
if ! [ -f "admin.txt" ]; then | ||
ADMIN_PASSWORD=$(kubectl exec "$(tilt get kd nexus3 -ojsonpath='{.status.pods[0].name}')" -- cat /nexus-data/admin.password) | ||
echo "$ADMIN_PASSWORD" > admin.txt | ||
# Change the initial password to admin123 | ||
curl -ifu "admin:$ADMIN_PASSWORD" \ | ||
-X PUT \ | ||
-H 'Content-Type: text/plain' \ | ||
--data "admin123" \ | ||
http://localhost:80/service/rest/v1/security/users/admin/change-password | ||
fi | ||
ADMIN_PASSWORD=$(kubectl exec "$(tilt get kd nexus3 -ojsonpath='{.status.pods[0].name}')" -- cat /nexus-data/admin.password) | ||
echo "$ADMIN_PASSWORD" > admin.txt | ||
# Change the initial password to admin123 | ||
curl -ifu "admin:$ADMIN_PASSWORD" \ | ||
--fail \ | ||
-k \ | ||
-X PUT \ | ||
-H 'Content-Type: text/plain' \ | ||
--data "admin123" \ | ||
https://localhost:8443/service/rest/v1/security/users/admin/change-password |
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