Xray Newbie- CLI的第一座码头扫描

发布于 2025-02-06 00:47:16 字数 576 浏览 2 评论 0原文

我从Jfrog Xray开始。 我使用GitHub凭据在Jfrog Cloud平台上创建了一个帐户。 我为身份验证创建了一个身份令牌。

我有一个只有终端的Linux盒子(无GUI)。 因为我从Github下载了一个项目,并从源代码构建了Docker映像。 现在,我可以使用命令sudo docker图像查看图像。

现在,我使用命令安装了jfrog cli,因此

curl -fL https://getcli.jfrog.io\?setup | sh 

安装了CLI,但是由于没有浏览器,因此与云的集成不会发生。

现在,我使用命令运行DOCKER扫描,

sudo jf docker scan <image-name> --url <url> --access-token <access-token>

我收到的错误如下所示

Get "api/v1/system/version": unsupported protocol scheme ""

谢谢

I'm starting with JFrog Xray.
I created an account on JFrog cloud platform using my Github credentials.
I created an identity token for authentication.

I have a linux box with only terminal (No GUI).
In that I downloaded a project from Github and built a docker image from the source code.
Now I can see the images using command sudo docker images.

Now I installed the JFrog CLI using command

curl -fL https://getcli.jfrog.io\?setup | sh 

The cli gets installed but as there is no browser, the integration with cloud does not happen.

Now I run the docker scan using the command

sudo jf docker scan <image-name> --url <url> --access-token <access-token>

The error I receive is as below

Get "api/v1/system/version": unsupported protocol scheme ""

Any help/ guidance is sincerely appreciated.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦屿孤独相伴 2025-02-13 00:47:16

curl -fl https://getcli.jfrog.io?setup | SH命令安装JFrog CLI,然后启动JF Setup命令。 JF设置命令执行以下操作:

  1. 打开默认浏览器,并允许您登录到云中的新的,免费的Jfrog环境。
  2. 使用新的Jfrog实例连接详细信息配置Jfrog CLI。

由于您的Linux框不包含浏览器,因此我认为步骤#1失败。

虽然不用担心 - 由于免费的Jfrog环境的设置需要浏览器,这是您可以用来设置环境并在Linux框中使用它的方法:

  1. 通过使用其他机器设置云中的免费JFrog环境安装了浏览器,使用此页面 - https://jfrog.com/start-free/#saas
  2. 登录到新的环境UI UI
  3. 转到左菜单面板上的“集成”
  4. 复制“ Jfrog Cli”安装命令,然后从Linux盒中运行它,

这应该可以安装JFrog CLI并使用您的新Jfrog环境进行设置。

The curl -fL https://getcli.jfrog.io?setup | sh command installs JFrog CLI and then initiates the jf setup command. The jf setup command does the following:

  1. Opens the default browser, and allows you to sign in to a new and free JFrog environment in the cloud.
  2. Configures JFrog CLI with the new JFrog instance connection details.

Since your Linux box includes no browser, I assume step #1 fails.

No worries though - Since the set up of a free JFrog environment requires a browser, here's what you can do to set up an environment and use it on your Linux box:

  1. Set up the free JFrog environment in the cloud from a different machine with a browser installed, using this page - https://jfrog.com/start-free/#saas
  2. Log into your new environment UI
  3. Go to "Integrations" on the left menu panel
  4. Copy the "JFrog CLI" installation command, and run it from your Linux box

This should get JFrog CLI installed and set up with your new JFrog environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文