如何在Travis管道中安装头盔

时间:2020-08-14 03:23:12

标签: continuous-integration travis-ci kubernetes-helm helm-tls

我这样做是为了在travis工作中安装头盔

curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
sudo apt-get install apt-transport-https --yes
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm

并且当 helm init --client-only 命令在travis中运行时,它说

Not Really a helm install

有人可以帮我吗?

2 个答案:

答案 0 :(得分:1)

官方头盔指南中的Installing Helm一章说:

  1. here下载所需的版本
  2. 打开包装(tar -zxvf helm-v3.0.0-linux-amd64.tar.gz
  3. 在解压后的目录中找到helm二进制文件,并将其移至所需的目的地(mv Linux-amd64/helm /usr/local/bin/helm)。

从那里,您应该能够运行客户端和add the stable repohelm help

答案 1 :(得分:1)

此命令是在Travis管道中安装头盔的正确方法:

dash-extensions==0.0.28

然后您可以通过使用

进行检查
import dash
import dash_html_components as html
import pandas as pd

from dash.dependencies import Output, Input, State
from dash_extensions import Download
from dash_table import DataTable
from dash_extensions.snippets import send_data_frame

dt = DataTable(columns=[{"id": v, "name": v} for v in range(5)], data=[{v: v * 10 for v in range(5)}], id="table")
app = dash.Dash(prevent_initial_callbacks=True)
app.layout = html.Div([dt, html.Button("Download", id="btn"), Download(id="download")])


@app.callback(Output("download", "data"), [Input("btn", "n_clicks")], [State("table", "data")])
def download_table(n_clicks, data):
    df = pd.DataFrame.from_records(data)
    return send_data_frame(df.to_csv, "some_data.csv", index=False)


if __name__ == "__main__":
    app.run_server()