在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:SAP/InfraBox-cli开源软件地址:https://github.com/SAP/InfraBox-cli开源编程语言:Python 99.2%开源软件介绍:InfraBox CLIWith the InfraBox CLI you can run your InfraBox jobs on your local machine and configure your project. InstallTo install infraboxcli you need to have these requirements already installed:
Then simply run:
You can validate your installation by running:
List JobsIf you have a more complex project it may be helpful to list all available jobs in it. For this you may use:
It outputs the names of all available jobs. An example output may look like this:
Run a JobInfraBox CLI may be used to run you jobs on your local machine. It will also respect all the dependencies and run the jobs in the correct order. Available options are:
To run all jobs defined in your infrabox.json file simply do:
In case you have multiple jobs defined an want to run only one of them you can do:
Push a JobTo be able to use infrabox push you have to create a project in the InfraBox Dashboard and create an auth token for it. Auth Token and InfraBox API Host must be set as environment variables.
To push your local project simply do:
This will compress your local project and upload it to InfraBox. Now you can open the InfraBox Dashboard and navigate to your project. You should see the jobs running on InfraBox. You can also watch the console output of your pushed jobs locally. Just use the --show-console option.
Pull a JobIn case you would like to run a job which has been already executed on InfraBox you can use infrabox pull. It will download the docker container and all its inputs so you can the same container locally and investigate any issue.
You can find the exact command for each job on the job detail page of InfraBox under Run local SecretsIf you reference secrets in your job definition (i.e. as environment variable) then you can add a .infraboxsecrets.json file to your project right next to the .infrabox.json file. This file should then contain all your secrets referenced in your job definition as a simple object:
How to get supportIf you need help please post your questions to Stack Overflow. In case you found a bug please open a Github Issue. Follow us on Twitter: @Infra_Box or have look at our Slack channel infrabox.slack.com. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论