mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:21:59 +01:00
parent
156303261a
commit
aee2c78638
@ -1,5 +1,6 @@
|
||||
CONTAINERS=( "piler1" )
|
||||
CONFIG_DIR="/data/config"
|
||||
DOCKER_LIMIT=( --pids-limit 256 --memory 512M )
|
||||
|
||||
setup() {
|
||||
destroy_containers
|
||||
@ -18,6 +19,10 @@ start_telegraf() {
|
||||
}
|
||||
|
||||
launch_containers() {
|
||||
|
||||
log "starting syslog server"
|
||||
docker run -d --net=piler "${DOCKER_LIMIT[@]}" --name syslog.host sutoj/syslog
|
||||
|
||||
docker run -d --net=piler --name piler1 -e PILER_HOST="cust1.acts.hu" -p 80:80 -p 25:25 "$docker_image" 2>/dev/null
|
||||
wait_for_sleep_cycle_in_container "piler1"
|
||||
|
||||
|
@ -14,6 +14,15 @@ export LD_LIBRARY_PATH=../src
|
||||
|
||||
pushd "$SCRIPT_DIR"
|
||||
|
||||
setup_mysql() {
|
||||
service mysql start
|
||||
mysql -u piler -ppiler123 piler1 < ../util/db-mysql.sql
|
||||
}
|
||||
|
||||
if [[ -v BUILD_NUMBER ]]; then
|
||||
setup_mysql
|
||||
fi
|
||||
|
||||
./check_parser_utils
|
||||
./check_parser
|
||||
./check_rules
|
||||
|
Loading…
Reference in New Issue
Block a user