Skip to Content

SAP Cloud SDK local runtime in docker container

Dec 03, 2017 at 08:23 PM


avatar image
Former Member

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
  3 RUN apt-get update
  4 RUN apt-get install -y maven
  5 RUN mvn -DsdkInstallPath=sdk -Dincludes=tools/**,license/**,sdk.version
  6 RUN chmod -R 777 sdk
  7 RUN ["/sdk/tools/", "install-local", "-l", "server"]

During building of docker image I get an error:

Step 6/11 : RUN mvn -DsdkInstallPath=sdk
 ---> Running in f955456dfb30
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] --- neo-javaee7-wp-maven-plugin:1.12.17:install-local (default-cli) @ standalone-pom ---
[INFO] SAP Cloud Platform Console Client
[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] ------------------------------------------------------------------------
[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 (default-cli) on project standalone-pom: Command (install-local) returned error code 1 (see above for more information). -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
The command '/bin/sh -c mvn -DsdkInstallPath=sdk' returned a non-zero code: 1

I am probably missing something very obvious here. Why SDK does not run within Docker?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers