|
| 1 | +# Neo CLI |
| 2 | + |
| 3 | +Dockerfile for an image with SAP Cloud Platform Tools for Neo. |
| 4 | +This image is intended to be used in Jenkins pipelines. |
| 5 | + |
| 6 | +## Download |
| 7 | + |
| 8 | +This image is published to Docker Hub and can be pulled via the command |
| 9 | + |
| 10 | +``` |
| 11 | +docker pull ppiper/neo-cli |
| 12 | +``` |
| 13 | + |
| 14 | +## Build |
| 15 | + |
| 16 | +To build this image locally, open a terminal in the directory of the Dockerfile an run |
| 17 | + |
| 18 | +``` |
| 19 | +docker build -t ppiper/neo-cli . |
| 20 | +``` |
| 21 | + |
| 22 | +## Usage |
| 23 | + |
| 24 | +Recommended usage of this image is via [`neoDeploy`](https://sap.github.io/jenkins-library/steps/neoDeploy/) pipeline step. |
| 25 | + |
| 26 | +For using the `neo.sh` tool via this image, it can be invoked like in this command |
| 27 | + |
| 28 | +``` |
| 29 | +docker run ppiper/neo-cli neo.sh help |
| 30 | +``` |
| 31 | + |
| 32 | +## Testing |
| 33 | + |
| 34 | +### Running as a Service |
| 35 | + |
| 36 | +See `.travis.yml` file for configuration. |
| 37 | + |
| 38 | +Configure the following variables (secrets) |
| 39 | + |
| 40 | +* `CX_INFRA_IT_CF_USERNAME` (user name for deployment to SAP Cloud Platform) |
| 41 | +* `CX_INFRA_IT_CF_PASSWORD` (password for deployment to SAP Cloud Platform) |
| 42 | + |
| 43 | +### Running locally |
| 44 | + |
| 45 | +Docker is required, and at least 4 GB of memory assigned to Docker. |
| 46 | + |
| 47 | +```bash |
| 48 | +export CX_INFRA_IT_CF_USERNAME="myusername" |
| 49 | +export CX_INFRA_IT_CF_PASSWORD="mypassword" |
| 50 | +./runTests.sh |
| 51 | +``` |
| 52 | + |
| 53 | +## License |
| 54 | + |
| 55 | +Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. |
| 56 | +This file is licensed under the Apache Software License, v. 2 except as noted |
| 57 | +otherwise in the [LICENSE file](https://github.com/SAP/devops-docker-images/blob/master/LICENSE). |
| 58 | + |
| 59 | +Please note that Docker images can contain other software which may be licensed under different licenses. This License file is also included in the Docker image. For any usage of built Docker images please make sure to check the licenses of the artifacts contained in the images. |
| 60 | + |
| 61 | +This image contains the [SAP Cloud Platform Tools for Neo](https://mvnrepository.com/artifact/com.sap.cloud/neo-javaee6-wp-maven-plugin). |
| 62 | +These tools are licensed under the [SAP DEVELOPER LICENSE AGREEMENT](https://tools.hana.ondemand.com/developer-license-3_1.txt). |
| 63 | +This License file is also included in the `/sdk` folder in the Docker image. |
| 64 | +For any usage of built Docker images please make sure to check the licenses of the artifacts contained in the images. |
0 commit comments