+created metactl.ci{env,web} spies + ignore pid files
This commit is contained in:
parent
e50e67fbf4
commit
8b9aae6f26
|
@ -1,4 +1,5 @@
|
||||||
/Dockerfile
|
/Dockerfile
|
||||||
/virtual/var/log
|
/virtual/var/log
|
||||||
/virtual/ci
|
/virtual/ci
|
||||||
/metactl/persistent/*
|
/metactl/persistent/*
|
||||||
|
/metactl/ci/*.pid
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
TMP="$(dirname `realpath $0`)";
|
||||||
|
TMP="`dirname $TMP`";
|
||||||
|
source $TMP/environment.sh;
|
||||||
|
|
||||||
|
#################################################
|
||||||
|
## ##
|
||||||
|
## Executed on 'env' Coninuous Integration ##
|
||||||
|
## ##
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
|
||||||
|
TRIGGER="`realpath $ROOT/../../virtual/ci/env`";
|
||||||
|
while [ -f $TRIGGER ]; do
|
||||||
|
|
||||||
|
sleep 1;
|
||||||
|
|
||||||
|
done;
|
||||||
|
|
||||||
|
# 1. Go to root directory
|
||||||
|
cd $ROOT/../..;
|
||||||
|
|
||||||
|
# 2. Pull sources
|
||||||
|
git pull origin master;
|
||||||
|
|
||||||
|
# 3. Stop environment
|
||||||
|
# 4. Rebuild environment
|
||||||
|
( make stop; make start );
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
TMP="$(dirname `realpath $0`)";
|
||||||
|
TMP="`dirname $TMP`";
|
||||||
|
source $TMP/environment.sh;
|
||||||
|
|
||||||
|
#################################################
|
||||||
|
## ##
|
||||||
|
## Executed on 'env' Coninuous Integration ##
|
||||||
|
## ##
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
|
||||||
|
TRIGGER="`realpath $ROOT/../../virtual/ci/web`";
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
|
||||||
|
|
||||||
|
while [ -f $TRIGGER ]; do
|
||||||
|
|
||||||
|
sleep 1;
|
||||||
|
|
||||||
|
done;
|
||||||
|
|
||||||
|
# 1. Go to root directory
|
||||||
|
cd $ROOT/../..;
|
||||||
|
|
||||||
|
# 2. Update submodule 'vhost'
|
||||||
|
git submodule update --remote;
|
||||||
|
|
||||||
|
# ...
|
||||||
|
|
||||||
|
# N. Recreate trigger
|
||||||
|
test ! -f $TRIGGER && touch $TRIGGER;
|
||||||
|
chmod o+rwx $TRIGGER;
|
||||||
|
|
||||||
|
sleep 1;
|
||||||
|
|
||||||
|
done;
|
Loading…
Reference in New Issue