Skip to content

Commit

Permalink
Fixes SDK version fetch for "Distributing" lab (#349)
Browse files Browse the repository at this point in the history
TL;DR
-----

Uses the SDK version directly in "Distributing" lab

Details
-------

Repairs a regression created by the switch from using the git tag ot the
registry tag to find the SDK version. When the code used the git tag we
had to strip the first character and with the registry version we don't.
This fix makes sure we don't strip it.
  • Loading branch information
crdant authored Sep 24, 2024
1 parent 1038c4a commit 5ee39bd
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ notes:
- type: text
contents: Let's get ready to use the Replicated SDK
tabs:
- title: Shell
- id: bzx3zxvqysjk
title: Shell
type: terminal
hostname: shell
difficulty: basic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

# save the entire session to check user inputs and outputs
set +e
tmux capture-pane -t shell -S -
SESSION=$(tmux save-buffer -)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

HOME_DIR=/home/replicant

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

### Assure the tmux session exists
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ notes:
- type: text
contents: Introducing the Replicated SDK into your application
tabs:
- title: Shell
- id: rrfhqxfoycp1
title: Shell
type: terminal
hostname: shell
- title: Manifest Editor
- id: nm09u4jztosq
title: Manifest Editor
type: code
hostname: shell
path: /home/replicant
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
export HOME_DIR=/home/replicant

result=0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
source /etc/profile.d/header.sh

# make sure the release directory is there
mkdir /home/replicant/release
Expand All @@ -10,4 +11,4 @@ chmod 755 /home/replicant/release

# get the current SDK version
replicated_sdk_version=$(get_replicated_sdk_version)
agent variable set REPLICATED_SDK_VERSION ${replicated_sdk_version#?}
agent variable set REPLICATED_SDK_VERSION ${replicated_sdk_version}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
export HOME_DIR=/home/replicant

### Assure the tmux session exists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ notes:
- type: text
contents: It's time to distribute our application with Replicated
tabs:
- title: Shell
- id: 5ftz4pxt99hc
title: Shell
type: terminal
hostname: shell
difficulty: basic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
source /etc/profile.d/header.sh

result=0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
source /etc/profile.d/header.sh
HOME_DIR=/home/replicant

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ notes:
- type: text
contents: Let's see how your customer installs an application
tabs:
- title: Shell
- id: xxbcjeqccdhc
title: Shell
type: terminal
hostname: shell
- title: Vendor Portal
- id: obpbspvxhqy8
title: Vendor Portal
type: website
url: https://vendor.replicated.com
new_window: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
source /etc/profile.d/header.sh

result=0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
source /etc/profile.d/header.sh

agent variable set SLACKERNEWS_DOMAIN get_slackernews_domain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
source /etc/profile.d/header.sh

# get the customer id, since it's the password for the Helm installation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail
source /etc/profile.d/header.sh

# get the application slug for the chart URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ notes:
- type: text
contents: Gaining insight into your customer's instance
tabs:
- title: Vendor Portal
- id: cvfdyilufsnl
title: Vendor Portal
type: website
url: https://vendor.replicated.com
new_window: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
Expand Down
4 changes: 3 additions & 1 deletion instruqt/distributing-with-replicated/track.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ lab_config:
overlay: false
width: 33
position: right
sidebar_enabled: true
feedback_recap_enabled: true
feedback_tab_enabled: false
loadingMessages: true
lab_v2: false
hideStopButton: false
checksum: "3447726368566940438"
checksum: "4234431804584561082"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

# simple SSH client setup so we can SSH to/from the shell

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail
set -euo pipefail

HOME_DIR=/home/replicant

Expand Down

0 comments on commit 5ee39bd

Please sign in to comment.