使用Cloud Engine时,在IBM云中可以访问的工作的OUPUT在哪里?

发布于 2025-02-11 10:48:32 字数 606 浏览 1 评论 0原文

我正在学习使用IBM云,尤其是云引擎。我的兴趣是,由于每次运行所需的时间和内存,我无法在计算机上运行的作业。

我遵循此处介绍的示例。

我要做的下一件事是尝试运行一些简单的python代码,例如

for i in range(10):
   print(i)

在云上。该代码位于GitHub存储库中,该存储库仅包含一个读数文件和源代码本身,仅作为实验运行的这两条线。

在云引擎内部,我进行了适当的更改以使用该源代码,然后进行以下操作:

  1. 选择“运行源代码”,提供适当的GitHub存储库。
  2. 选择创建“作业”。
  3. 指定构建详细信息时:

3.1。我在“源”部分中配置了分支的方向。

3.2。在“策略”中,我选择了云本机构建包,因为我没有dockerfile。

3.3。在“输出”中,我选择专有名称。

  1. 当我单击“创建”时,一切都很好。

之后,我运行代码,并且可以看到它成功运行,但后来我不知道在哪里可以看到结果。当我使用该应用程序进行示例时,它就像视频中一样容易,但是当使用作业时,我似乎找不到输出的去向。

I'm learning to use IBM Cloud, particularly the Cloud Engine. My interest is in running jobs that I cannot run in my computer due to the time and memory needed per run.

I have followed the example presented here https://www.youtube.com/results?search_query=ibm+cloud+run+source+code to run source code and it all goes well.

The next thing that I have done is to try to run some simple python code, say

for i in range(10):
   print(i)

on the cloud. The code is located in a github repository that contains only a readme file and the source code itself, only those two lines to run as an experiment.

Inside the Cloud Engine, I make the appropriate changes to use that source code and then, I do the following:

  1. Select "Run your source code", providing the appropriate github repository.
  2. Select create "Job".
  3. When specifying the build details:

3.1. I configure the directions of the branches in the section "Source".

3.2. In "Strategy", I select Cloud Native Buildpack, since I do not have a Dockerfile.

3.3. In "Output", I select the proper names.

  1. When I click on "Create", all goes well.

Afterwards, I run my code, and I can see that it runs successfully, but then I do not know where to see the results. When I ran the example with the application, it was just as easy as in the video, but when using a Job, I cannot seem to find where the output goes.

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

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

发布评论

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

评论(1

转身泪倾城 2025-02-18 10:48:32

您将需要打开日志记录,然后从命令行运行来关注您的应用程序

ibmcloud ce app logs -f --app <your app name>

本教程的步骤2显示了如何打开项目的日志记录 - https://developer..ibm.com/tutorials/mq-write-and-and-run-serverless-mq-papplications/

You will need to switch on logging, then follow your application by running

ibmcloud ce app logs -f --app <your app name>

from the command line.

Step 2 of this tutorial shows how to switch on logging for your project - https://developer.ibm.com/tutorials/mq-write-and-run-serverless-mq-applications/

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