Skip to content

Commit 0454b42

Browse files
Moved binary downloads to build script
1 parent 7ff09e0 commit 0454b42

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.workshop/build

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
set -x
4+
5+
set -eo pipefail
6+
7+
# Use odo v1.0.0-beta1
8+
# ----------------
9+
curl -kLs https://github.com/openshift/odo/releases/download/v1.0.0-beta1/odo-linux-amd64 -o /opt/app-root/bin/odo-v1.0.0-beta1
10+
chmod 755 /opt/app-root/bin/odo-v1.0.0-beta1
11+
# ----------------
12+
# Also get odo latest binary built
13+
# ----------------
14+
curl -kLs https://dl.bintray.com/odo/odo/latest/linux-amd64/odo -o /opt/app-root/bin/odo-latest
15+
chmod 755 /opt/app-root/bin/odo-latest
16+
# ----------------
17+
18+
/opt/app-root/bin/odo-latest preference set UpdateNotification false

.workshop/setup

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ set -x
44

55
set -eo pipefail
66

7-
# Use odo v1.0.0-beta1
8-
# ----------------
9-
curl -kLs https://github.com/openshift/odo/releases/download/v1.0.0-beta1/odo-linux-amd64 -o /opt/app-root/bin/odo-v1.0.0-beta1
10-
chmod 755 /opt/app-root/bin/odo-v1.0.0-beta1
11-
# ----------------
12-
# Also get odo latest binary built
13-
# ----------------
14-
curl -kLs https://dl.bintray.com/odo/odo/latest/linux-amd64/odo -o /opt/app-root/bin/odo-latest
15-
chmod 755 /opt/app-root/bin/odo-latest
16-
# ----------------
17-
18-
/opt/app-root/bin/odo-latest preference set UpdateNotification false
19-
207
if [ x"$PROJECT_NAMESPACE" != x"" ]; then
218
# TODO: Change back to view once the issue is solved
229
oc policy add-role-to-user edit -z default -n "$PROJECT_NAMESPACE" || true

0 commit comments

Comments
 (0)