I want to create docker container to test the application I am developing for SAP Cloud Platform.
My dockerfile is:
1 FROM openjdk:8-jdk 2 3 RUN apt-get update 4 RUN apt-get install -y maven 5 RUN mvn com.sap.cloud:neo-javaee7-wp-maven-plugin:1.12.17:install-sdk -DsdkInstallPath=sdk -Dincludes=tools/**,license/**,sdk.version 6 RUN chmod -R 777 sdk 7 RUN ["/sdk/tools/neo.sh", "install-local", "-l", "server"]
During building of docker image I get an error:
Step 6/11 : RUN mvn com.sap.cloud:neo-javaee7-wp-maven-plugin:1.12.17:install-local -DsdkInstallPath=sdk ---> Running in f955456dfb30 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- neo-javaee7-wp-maven-plugin:1.12.17:install-local (default-cli) @ standalone-pom --- [INFO] [INFO] SAP Cloud Platform Console Client [INFO] [INFO] [ERROR] [ERROR] [ERROR] (!) ERROR: Unable to determine SDK path. install-local must only be used inside the SAP Cloud Platform SDK for Neo environment. [ERROR] If you need help, provide the output of the command and attach the log directory [/sdk/tools/./log] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.060 s [INFO] Finished at: 2017-12-03T00:32:48+00:00 [INFO] Final Memory: 14M/96M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.sap.cloud:neo-javaee7-wp-maven-plugin:1.12.17:install-local (default-cli) on project standalone-pom: Command (install-local) returned error code 1 (see above for more information). -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException The command '/bin/sh -c mvn com.sap.cloud:neo-javaee7-wp-maven-plugin:1.12.17:install-local -DsdkInstallPath=sdk' returned a non-zero code: 1
I am probably missing something very obvious here. Why SDK does not run within Docker?
Add comment