File tree Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,12 @@ ports:
34
34
- port : 8022
35
35
onOpen : ignore
36
36
tasks :
37
- - name : Install Preview Environment kube-context
37
+ - name : Preview environment configuration
38
+ before : |
39
+ leeway run dev/preview/previewctl:install
38
40
command : |
41
+ previewctl get-credentials
39
42
previewctl install-context --watch
40
- exit
41
- - name : Add Harvester kubeconfig
42
- command : |
43
- ./dev/preview/util/download-and-merge-harvester-kubeconfig.sh
44
- exit 0
45
43
- name : Installer dependencies
46
44
init : |
47
45
(cd install/installer && make deps)
Original file line number Diff line number Diff line change @@ -10,14 +10,12 @@ packages:
10
10
- dev/blowtorch:app
11
11
- dev/gpctl:app
12
12
- dev/loadgen:app
13
- - dev/preview/previewctl:cli
14
13
- dev/gp-gcloud:app
15
14
- name : dev-utils
16
15
type : docker
17
16
deps :
18
17
- dev/gpctl:app
19
18
- dev/kubecdl:app
20
- - dev/preview/previewctl:cli
21
19
- dev/gp-gcloud:app
22
20
argdeps :
23
21
- imageRepoBase
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ packages:
4
4
deps :
5
5
- dev/gpctl:app
6
6
- dev/kubecdl:app
7
- - dev/preview/previewctl:cli
8
7
argdeps :
9
8
- imageRepoBase
10
9
srcs :
Original file line number Diff line number Diff line change @@ -257,8 +257,7 @@ RUN brew install tmux tmuxinator
257
257
258
258
# Copy our own tools
259
259
ENV NEW_KUBECDL=1
260
- COPY dev-kubecdl--app/kubecdl dev-gpctl--app/gpctl dev-preview-previewctl--cli/previewctl /usr/bin/
260
+ COPY dev-kubecdl--app/kubecdl dev-gpctl--app/gpctl /usr/bin/
261
261
262
262
# Configure our tools' autocompletion
263
- RUN bash -c "echo . \<\( gpctl completion bash\) >> ~/.bashrc" && \
264
- bash -c "echo . \<\( previewctl completion bash\) >> ~/.bashrc"
263
+ RUN bash -c "echo . \<\( gpctl completion bash\) >> ~/.bashrc"
Original file line number Diff line number Diff line change @@ -9,4 +9,13 @@ packages:
9
9
- CGO_ENABLED=0
10
10
config :
11
11
packaging : app
12
- dontTest : false
12
+ scripts :
13
+ - name : install
14
+ description : Build and install previewctl into the current environment
15
+ deps :
16
+ - :cli
17
+ script : |
18
+ echo "Installing"
19
+ echo $PATH
20
+ # TODO: extract the path to the built previewctl binary from the PATH and move it to /usr/bin/
21
+ # TODO: echo . \<\(gpctl completion bash\) >> ~/.bashrc
You can’t perform that action at this time.
0 commit comments