This page (revision-14) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:06 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
14 23-Apr-2022 17:06 15 KB Harry Metske to previous
13 23-Apr-2022 17:06 15 KB Harry Metske to previous | to last
12 23-Apr-2022 17:06 15 KB Harry Metske to previous | to last
11 23-Apr-2022 17:06 15 KB Harry Metske to previous | to last
10 23-Apr-2022 17:06 14 KB Harry Metske to previous | to last
9 23-Apr-2022 17:06 13 KB Harry Metske to previous | to last
8 23-Apr-2022 17:06 11 KB Harry Metske to previous | to last
7 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
6 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
5 23-Apr-2022 17:06 7 KB Harry Metske to previous | to last
4 23-Apr-2022 17:06 7 KB Harry Metske to previous | to last
3 23-Apr-2022 17:06 2 KB Harry Metske to previous | to last
2 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
1 23-Apr-2022 17:06 670 bytes Harry Metske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 239 changed one line
So created 2 additional scripts in our git repo:
So created 3 additional scripts in our git repo:
* .openshift/action_hooks/build
At line 246 added 9 lines
__build__
%%prettify
{{{
#!/bin/bash
gradle assemble
}}}
%%
At line 259 added one line
echo "current dir 1: `pwd`"
At line 261 added 2 lines
echo "current dir 2: `pwd`"
ls -la
At line 261 changed one line
nohup java -jar target/demoapp1-0.1.0.jar > ${OPENSHIFT_DIY_LOG_DIR}/demoapp1.log 2>&1 &
nohup java -jar build/libs/demoapp1-0.1.0.jar > ${OPENSHIFT_DIY_LOG_DIR}/demoapp1.log 2>&1 &
At line 265 removed one line
Then when we git push:
At line 279 added 2 lines
Then when we git push (1), this was before we had the bulid script :
At line 302 added one line
It tells us all success, but the app still fails (503 response). How to diagnose further, the UI does not show anything about status or logs. Let's try the ssh again.
At line 304 added one line
Then we added the build hook script and pushed again:
At line 306 added 31 lines
{{{
➜ demoapp1 git:(master) ✗ git push openshift master
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 497 bytes | 0 bytes/s, done.
Total 6 (delta 2), reused 0 (delta 0)
remote: Stopping DIY cartridge
remote: Building git ref 'master', commit 1ec49f3
remote: /var/lib/openshift/583f185e2d5271b8c6000069/app-root/runtime/repo/.openshift/action_hooks/build: line 2: gradle: command not found
remote: An error occurred executing 'gear postreceive' (exit code: 127)
remote: Error message: CLIENT_ERROR: Failed to execute action hook 'build' for 583f185e2d5271b8c6000069 application diy
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://583f185e2d5271b8c6000069@diy-computerhok.rhcloud.com/~/git/diy.git/
13bd4bc..1ec49f3 master -> master
}}}
There is no gradle available (only mvn. And which version:
{{{
[diy-computerhok.rhcloud.com 583f185e2d5271b8c6000069]\> mvn --version
Apache Maven 3.0.4 (r1232336; 2012-12-18 14:36:37-0500)
Maven home: /usr/share/java/apache-maven-3.0.4
Java version: 1.7.0_121, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.121/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-642.6.2.el6.x86_64", arch: "i386", family: "unix"
}}}
%%warning This is going nowhere.... we need something with containers%%