Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Apr 7, 2024
1 parent 69742be commit fd7c0e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion TODO.labs
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?
6 changes: 5 additions & 1 deletion infra/scw/ssh.sh
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"
3 changes: 1 addition & 2 deletions infra/scw/txeh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ set -euxo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

OPENSHIFT_USER="openshift"
INSTANCE_NAME="openshiftlarge"
INSTANCE_TYPE="GP1-M"
INSTANCE_NAME="openshift"

instance_id=$(scw instance server list | grep "$INSTANCE_NAME" | awk '{print $1}')
ip_address=$(scw instance server wait "$instance_id" | grep PublicIP.Address | awk '{print $2}')
Expand Down

0 comments on commit fd7c0e7

Please sign in to comment.