Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes SDK version fetch for "Distributing" lab #349

Merged
merged 4 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading