Skip to content

Commit b6d1438

Browse files
author
Template builder
committed
Creating template
0 parents  commit b6d1438

File tree

20 files changed

+315
-0
lines changed

20 files changed

+315
-0
lines changed

.openshift/action_hooks/build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# This is a simple build script and will be executed on your CI system if
3+
# available. Otherwise it will execute while your application is stopped
4+
# before the deploy step. This script gets executed directly, so it
5+
# could be python, php, ruby, etc.

.openshift/action_hooks/deploy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# This deploy hook gets executed after dependencies are resolved and the
3+
# build hook has been run but before the application has been started back
4+
# up again. This script gets executed directly, so it could be python, php,
5+
# ruby, etc.

.openshift/action_hooks/post_deploy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# This is a simple post deploy hook executed after your application
3+
# is deployed and started. This script gets executed directly, so
4+
# it could be python, php, ruby, etc.

.openshift/action_hooks/pre_build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# This is a simple script and will be executed on your CI system if
3+
# available. Otherwise it will execute while your application is stopped
4+
# before the build step. This script gets executed directly, so it
5+
# could be python, php, ruby, etc.

.openshift/action_hooks/start

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# The logic to start up your application should be put in this
3+
# script. The application will work only if it binds to
4+
# $OPENSHIFT_INTERNAL_IP:8080
5+
nohup $OPENSHIFT_REPO_DIR/diy/testrubyserver.rb $OPENSHIFT_INTERNAL_IP $OPENSHIFT_REPO_DIR/diy > $OPENSHIFT_HOMEDIR/diy-0.1/logs/server.log 2>&1 &

.openshift/action_hooks/stop

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# The logic to stop your application should be put in this script.
3+
kill `ps -ef | grep testrubyserver.rb | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
4+
exit 0

.openshift/cron/README.cron

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Run scripts or jobs on a periodic basis
2+
=======================================
3+
Any scripts or jobs added to the minutely, hourly, daily, weekly or monthly
4+
directories will be run on a scheduled basis (frequency is as indicated by the
5+
name of the directory) using run-parts.
6+
7+
run-parts ignores any files that are hidden or dotfiles (.*) or backup
8+
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved}
9+
10+
The presence of two specially named files jobs.deny and jobs.allow controls
11+
how run-parts executes your scripts/jobs.
12+
jobs.deny ===> Prevents specific scripts or jobs from being executed.
13+
jobs.allow ===> Only execute the named scripts or jobs (all other/non-named
14+
scripts that exist in this directory are ignored).
15+
16+
The principles of jobs.deny and jobs.allow are the same as those of cron.deny
17+
and cron.allow and are described in detail at:
18+
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Automating_System_Tasks.html#s2-autotasks-cron-access
19+
20+
See: man crontab or above link for more details and see the the weekly/
21+
directory for an example.
22+

.openshift/cron/daily/.gitignore

Whitespace-only changes.

.openshift/cron/hourly/.gitignore

Whitespace-only changes.

.openshift/cron/minutely/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)