使用Cloud Engine时,在IBM云中可以访问的工作的OUPUT在哪里?
我正在学习使用IBM云,尤其是云引擎。我的兴趣是,由于每次运行所需的时间和内存,我无法在计算机上运行的作业。
我遵循此处介绍的示例。
我要做的下一件事是尝试运行一些简单的python代码,例如
for i in range(10):
print(i)
在云上。该代码位于GitHub存储库中,该存储库仅包含一个读数文件和源代码本身,仅作为实验运行的这两条线。
在云引擎内部,我进行了适当的更改以使用该源代码,然后进行以下操作:
- 选择“运行源代码”,提供适当的GitHub存储库。
- 选择创建“作业”。
- 指定构建详细信息时:
3.1。我在“源”部分中配置了分支的方向。
3.2。在“策略”中,我选择了云本机构建包,因为我没有dockerfile。
3.3。在“输出”中,我选择专有名称。
- 当我单击“创建”时,一切都很好。
之后,我运行代码,并且可以看到它成功运行,但后来我不知道在哪里可以看到结果。当我使用该应用程序进行示例时,它就像视频中一样容易,但是当使用作业时,我似乎找不到输出的去向。
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:
- Select "Run your source code", providing the appropriate github repository.
- Select create "Job".
- 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.
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要打开日志记录,然后从命令行运行来关注您的应用程序
。
本教程的步骤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
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/