openshift-mlbparks issues with assemble script in order to import in mongodb
Issue
-
Please see the assemble script I used in order to import the data into mongoDB container.
The following issue can be seen in the build logs, the database is empty and the mongo import is not run.Source : https://github.com/frbre11/openshift3mlbparks
I0923 07:19:16.288824 1 sti.go:393] Copying all WAR and EAR artifacts from /home/jboss/source/deployments directory into /opt/eap/standalone/deployments for later deployment...
I0923 07:19:16.288857 1 sti.go:393] '/home/jboss/source/deployments/ROOT.war' -> '/opt/eap/standalone/deployments/ROOT.war'
I0923 07:19:16.288862 1 sti.go:393]
E0923 07:19:16.288825 1 sti.go:419] /tmp/scripts/assemble: line 151: mongo: command not found
I0923 07:19:16.288866 1 sti.go:393] imported the MLB stadium data
E0923 07:19:16.288883 1 sti.go:419] /tmp/scripts/assemble: line 151: mongo: command not found
E0923 07:19:16.288917 1 sti.go:419] /tmp/scripts/assemble: line 157: mongoimport: command not found
E0923 07:19:16.288924 1 sti.go:419] /tmp/scripts/assemble: line 160: mongo: command not found
E0923 07:19:16.288972 1 sti.go:419] /tmp/scripts/assemble: line 157: mongoimport: command not found
E0923 07:19:16.288984 1 sti.go:419] /tmp/scripts/assemble: line 160: mongo: command not found
I0923 07:19:16.487689 1 docker.go:473] Container exited
I0923 07:19:16.487713 1 docker.go:479] Invoking postExecution function
I0923 07:19:16.487734 1 sti.go:220] No .sti/environment provided (no environment file found in application sources)
I0923 07:19:16.487764 1 docker.go:513] Committing container with config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:false AttachStde
Environment
- Openshift v3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
