inforbox1.0

Here are the somedetails I tried about the infrabox.

Preparation:

1. Create SAP GitHub account using I-number, justmake sure your GitHub email match your own email


2. Create an infrabox test project, here I justfolk a test infrabox project from Steffen:

https://github.wdf.sap.corp/I345803/test

This is good fortesting as it contains the basic Dockerfile and infrabox.json

Trigger build jobusing the code update from GitHub:

1. Create a GitHub project on infrabox web site,and choose “the GitHub repository to connect” is the test project:

2. Clone the project locally, add a new testfile, commit the change, and push to the master branch

3. Then you will see the project is starting tobuild, sooner it will show the build details:

Ignore my firststopped build mission, click “2.1” and you can see more build and test logs:


Trigger build usingthe local command:

1. Create *Upload* type project ininfrabox web site, and then generate a token, and save it, which will be usedlater;

2. Create a local project with infrabox.json andDockerfile, here we can just reuse the folked project locally;

3. Install infraboxcli tool, guide: https://github.com/InfraBox/cli

4. If you installed docker, you can also triggerthe build job locally by running command “infrabox run” in the same folder offile infrabox.json

5. Donwload SAP Root Global CA and SAPNETCA_G2certificates file(.crt file) from SAP Global PKI Center: https://sapcerts.wdf.global.corp.sap/Default.aspx, Then merge together to one file called “ca.crt”. Avoidempty lines and make sure the order of the certificates is as follows: 1. SAPNet CA, 2. SAP Global Root CA. I made a copy on the attach;

6. Configure system environments for connectingto the project:

exportINFRABOX_URL=https://infrabox.datahub.only.sap

exportINFRABOX_CLI_TOKEN={token_generate_from_project_settings}

exportINFRABOX_CA_BUNDLE={absolute_path_of_ca.crt}

7. Execute command “infrabox push”, and you willsee the project will be zipped and upload to the infrabox server, then thebuild job will be triggered, and the build result will be shown sooner:


Note: If you create atoken on a GitHub project and use “infrabox push” command to trigger the buildjob, it will create a job, but keep on hanging till timeout(1 hour), make surethe GitHub project won’t be triggerd by local command.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值