Closed dstenger closed 5 years ago
Changes are here: https://github.com/opengeospatial/ets-wms13/tree/feature-issue%2361
@keshav-nangare
For me, the changes look fine.
I tested them successfully with mvn clean install docker:run -Pdocker
and was able to open TEAM Engine with ETS via http://localhost:8081/teamengine/.
Can you please describe your problems? Is Docker installed and executable by current OS user?
@dstenger
I have update docker and able to open TEAM Engine webapp with ETS. The issue is resolved now.
Thank you!
ksn@ubuntu:~/repo/ets-wms13$ mvn clean install docker:run -Pdocker
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.opengis.cite:ets-wms13:jar:1.25-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 125, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Conformance Test Suite - OGC Web Map Service 1.3.0 1.25-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ets-wms13 ---
[INFO] Deleting /home/ksn/repo/ets-wms13/target
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ ets-wms13 ---
[INFO] ShortRevision tag detected. The value is '10'.
[INFO] Executing: /bin/sh -c cd '/home/ksn/repo/ets-wms13' && 'git' 'rev-parse' '--verify' '--short=10' 'HEAD'
[INFO] Working directory: /home/ksn/repo/ets-wms13
[INFO] Storing buildNumber: 7a499a44c4 at timestamp: 1544002719125
[INFO] Storing buildScmBranch: feature-issue#61
[INFO]
[INFO] --- maven-dependency-plugin:3.0.0:copy-dependencies (default) @ ets-wms13 ---
[INFO] Copying testng-6.9.10.jar to /home/ksn/repo/ets-wms13/target/dependency/testng-6.9.10.jar
[INFO] Copying jersey-core-1.19.jar to /home/ksn/repo/ets-wms13/target/dependency/jersey-core-1.19.jar
[INFO] Copying jena-iri-3.1.0.jar to /home/ksn/repo/ets-wms13/target/dependency/jena-iri-3.1.0.jar
[INFO] Copying teamengine-web-5.3.war to /home/ksn/repo/ets-wms13/target/dependency/teamengine-web-5.3.war
[INFO] Copying jcommander-1.48.jar to /home/ksn/repo/ets-wms13/target/dependency/jcommander-1.48.jar
[INFO] Copying isorelax-20030108.jar to /home/ksn/repo/ets-wms13/target/dependency/isorelax-20030108.jar
[INFO] Copying derby-10.10.2.0.jar to /home/ksn/repo/ets-wms13/target/dependency/derby-10.10.2.0.jar
[INFO] Copying activation-1.1.jar to /home/ksn/repo/ets-wms13/target/dependency/activation-1.1.jar
[INFO] Copying javax.annotation-api-1.2-b03.jar to /home/ksn/repo/ets-wms13/target/dependency/javax.annotation-api-1.2-b03.jar
[INFO] Copying saxon9-9.0.0.8.jar to /home/ksn/repo/ets-wms13/target/dependency/saxon9-9.0.0.8.jar
[INFO] Copying jing-20091111.jar to /home/ksn/repo/ets-wms13/target/dependency/jing-20091111.jar
[INFO] Copying xercesImpl-2.11.0.jar to /home/ksn/repo/ets-wms13/target/dependency/xercesImpl-2.11.0.jar
[INFO] Copying xml-apis-1.4.01.jar to /home/ksn/repo/ets-wms13/target/dependency/xml-apis-1.4.01.jar
[INFO] Copying jena-core-3.1.0.jar to /home/ksn/repo/ets-wms13/target/dependency/jena-core-3.1.0.jar
[INFO] Copying slf4j-jdk14-1.7.21.jar to /home/ksn/repo/ets-wms13/target/dependency/slf4j-jdk14-1.7.21.jar
[INFO] Copying jstl-api-1.2.jar to /home/ksn/repo/ets-wms13/target/dependency/jstl-api-1.2.jar
[INFO] Copying commons-codec-1.10.jar to /home/ksn/repo/ets-wms13/target/dependency/commons-codec-1.10.jar
[INFO] Copying json-simple-1.1.1.jar to /home/ksn/repo/ets-wms13/target/dependency/json-simple-1.1.1.jar
[INFO] Copying jsr311-api-1.1.1.jar to /home/ksn/repo/ets-wms13/target/dependency/jsr311-api-1.1.1.jar
[INFO] Copying javax.servlet.jsp.jstl-1.2.3.jar to /home/ksn/repo/ets-wms13/target/dependency/javax.servlet.jsp.jstl-1.2.3.jar
[INFO] Copying joda-time-2.9.4.jar to /home/ksn/repo/ets-wms13/target/dependency/joda-time-2.9.4.jar
[INFO] Copying teamengine-resources-5.3.jar to /home/ksn/repo/ets-wms13/target/dependency/teamengine-resources-5.3.jar
[INFO] Copying teamengine-console-5.3-base.zip to /home/ksn/repo/ets-wms13/target/dependency/teamengine-console-5.3-base.zip
[INFO] Copying commons-cli-1.3.jar to /home/ksn/repo/ets-wms13/target/dependency/commons-cli-1.3.jar
[INFO] Copying hamcrest-core-1.3.jar to /home/ksn/repo/ets-wms13/target/dependency/hamcrest-core-1.3.jar
[INFO] Copying webservices-api-2.3.jar to /home/ksn/repo/ets-wms13/target/dependency/webservices-api-2.3.jar
[INFO] Copying teamengine-core-4.10.jar to /home/ksn/repo/ets-wms13/target/dependency/teamengine-core-4.10.jar
[INFO] Copying mimepull-1.9.3.jar to /home/ksn/repo/ets-wms13/target/dependency/mimepull-1.9.3.jar
[INFO] Copying jena-base-3.1.0.jar to /home/ksn/repo/ets-wms13/target/dependency/jena-base-3.1.0.jar
[INFO] Copying collection-0.6.jar to /home/ksn/repo/ets-wms13/target/dependency/collection-0.6.jar
[INFO] Copying junit-4.12.jar to /home/ksn/repo/ets-wms13/target/dependency/junit-4.12.jar
[INFO] Copying commons-io-2.2.jar to /home/ksn/repo/ets-wms13/target/dependency/commons-io-2.2.jar
[INFO] Copying jersey-servlet-1.19.jar to /home/ksn/repo/ets-wms13/target/dependency/jersey-servlet-1.19.jar
[INFO] Copying teamengine-spi-ctl-4.10.jar to /home/ksn/repo/ets-wms13/target/dependency/teamengine-spi-ctl-4.10.jar
[INFO] Copying jersey-multipart-1.19.jar to /home/ksn/repo/ets-wms13/target/dependency/jersey-multipart-1.19.jar
[INFO] Copying teamengine-realm-5.3.jar to /home/ksn/repo/ets-wms13/target/dependency/teamengine-realm-5.3.jar
[INFO] Copying teamengine-web-5.3-common-libs.zip to /home/ksn/repo/ets-wms13/target/dependency/teamengine-web-5.3-common-libs.zip
[INFO] Copying teamengine-spi-4.10.jar to /home/ksn/repo/ets-wms13/target/dependency/teamengine-spi-4.10.jar
[INFO] Copying servlet-api-2.5.jar to /home/ksn/repo/ets-wms13/target/dependency/servlet-api-2.5.jar
[INFO] Copying commons-fileupload-1.3.1.jar to /home/ksn/repo/ets-wms13/target/dependency/commons-fileupload-1.3.1.jar
[INFO] Copying mail-1.4.7.jar to /home/ksn/repo/ets-wms13/target/dependency/mail-1.4.7.jar
[INFO] Copying jena-shaded-guava-3.1.0.jar to /home/ksn/repo/ets-wms13/target/dependency/jena-shaded-guava-3.1.0.jar
[INFO] Copying xml-resolver-1.2.jar to /home/ksn/repo/ets-wms13/target/dependency/xml-resolver-1.2.jar
[INFO] Copying jersey-server-1.19.jar to /home/ksn/repo/ets-wms13/target/dependency/jersey-server-1.19.jar
[INFO] Copying webservices-rt-2.3.jar to /home/ksn/repo/ets-wms13/target/dependency/webservices-rt-2.3.jar
[INFO] Copying slf4j-api-1.7.20.jar to /home/ksn/repo/ets-wms13/target/dependency/slf4j-api-1.7.20.jar
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ets-wms13 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 118 resources
[INFO] Copying 15 resources to wms/1.3.0
[INFO] Copying 2 resources to doc/wms/1.25-SNAPSHOT
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ ets-wms13 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/ksn/repo/ets-wms13/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ets-wms13 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ ets-wms13 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/ksn/repo/ets-wms13/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ ets-wms13 ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-site-plugin:3.5.1:jar (site-package) @ ets-wms13 ---
[INFO] Rendering site with org.apache.maven.skins:maven-fluido-skin:jar:1.5 skin.
[INFO] Rendering 2 Doxia documents: 2 markdown
[INFO] Building jar: /home/ksn/repo/ets-wms13/target/ets-wms13-1.25-SNAPSHOT-site.jar
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ ets-wms13 ---
[INFO] Building jar: /home/ksn/repo/ets-wms13/target/ets-wms13-1.25-SNAPSHOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.6:single (default) @ ets-wms13 ---
[INFO] Reading assembly descriptor: /home/ksn/repo/ets-wms13/src/assembly/ctl.xml
[INFO] Adding site directory to assembly : /home/ksn/repo/ets-wms13/target/site
[INFO] Reading assembly descriptor: /home/ksn/repo/ets-wms13/src/assembly/aio.xml
[INFO] Reading assembly descriptor: /home/ksn/repo/ets-wms13/src/assembly/deps.xml
[WARNING] The assembly descriptor contains a filesystem-root relative reference, which is not cross platform compatible /site
[INFO] Building zip: /home/ksn/repo/ets-wms13/target/ets-wms13-1.25-SNAPSHOT-ctl.zip
[INFO] Building jar: /home/ksn/repo/ets-wms13/target/ets-wms13-1.25-SNAPSHOT-aio.jar
[INFO] Building zip: /home/ksn/repo/ets-wms13/target/ets-wms13-1.25-SNAPSHOT-deps.zip
[INFO] Building tar: /home/ksn/repo/ets-wms13/target/ets-wms13-1.25-SNAPSHOT-deps.tar.gz
[INFO]
[INFO] --- docker-maven-plugin:0.26.0:build (start) @ ets-wms13 ---
[INFO] Copying files to /home/ksn/repo/ets-wms13/target/docker/opengeospatial/ets-wms13/build/maven
[INFO] Building tar: /home/ksn/repo/ets-wms13/target/docker/opengeospatial/ets-wms13/tmp/docker-build.tar
[INFO] DOCKER> [opengeospatial/ets-wms13:latest]: Created docker-build.tar in 39 seconds
[INFO] DOCKER> [opengeospatial/ets-wms13:latest]: Built image sha256:79637
[INFO] DOCKER> [opengeospatial/ets-wms13:latest]: Tag with 1.25-SNAPSHOT-teamengine-5.3
[INFO]
[INFO] --- docker-maven-plugin:0.26.0:start (start) @ ets-wms13 ---
[INFO] DOCKER> [opengeospatial/ets-wms13:latest]: Start container 046a0f488d15
[INFO] DOCKER> [opengeospatial/ets-wms13:latest]: Waiting on url http://localhost:8081/teamengine with method HEAD for status 200..399.
[ERROR] DOCKER> [opengeospatial/ets-wms13:latest]: Container stopped with exit code 1 unexpectedly after 14869 ms while waiting on url http://localhost:8081/teamengine
[ERROR] DOCKER> Error occurred during container startup, shutting down...
[INFO] DOCKER> [opengeospatial/ets-wms13:latest]: Stop and removed container 046a0f488d15 after 0 ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:51 min
[INFO] Finished at: 2018-12-05T15:14:22+05:30
[INFO] Final Memory: 41M/233M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.26.0:start (start) on project ets-wms13: Execution start of goal io.fabric8:docker-maven-plugin:0.26.0:start failed: Start-Job failed with unexpected exception: [opengeospatial/ets-wms13:latest]: Container stopped with exit code 1 unexpectedly after 14869 ms while waiting on url http://localhost:8081/teamengine -> [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/PluginExecutionException
I also tried to execute Docker with Maven docker plugin: mvn clean install docker:run -Pdocker
It works as expected and I can access Web Browser Interface via http://localhost:8081/teamengine/.
Maybe, there is an environment/ OS specific problem?
We should check if Docker Maven plugin is working with Docker version 18.06.1-ce. I am currently using Docker version 1.13.1.
Please see: How to create Docker Images of test suites