-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
4 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
* Check console for crc is working | ||
* add ssh tunner helper | ||
* check port in networkpolicy ingress www -> db (port should be aside db) | ||
* add QCM each morning | ||
* Use framapad to set up a re-usable document? |
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,10 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Display the ssh command to connect to the instance | ||
# ssh helper script | ||
|
||
set -euo pipefail | ||
|
||
instance_id=$(scw instance server list | grep openshift | awk '{print $1}') | ||
ip_address=$(scw instance server wait "$instance_id" | grep PublicIP.Address | awk '{print $2}') | ||
|
||
ink "Command to connect to the instance:" | ||
echo "ssh root@$ip_address" | ||
|
||
ink "Command to create a tunnel to the instance:" | ||
echo "ssh root@$ip_address -L 4040:localhost:4040 -N" |
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