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.