TODO items:
- Add logstash and fileBeat done
- Add integration with ELK done
- Add MockMvc tests
- Optimize calls to DB
- Docker Timing problem
- logstash multifilters add tags
- Create MD documentation with buttons
- Push to GIT done
- Add spring sleuth and zipkin
- Create ansible for deployment
####### https://wiki.alpinelinux.org/wiki/Setting_the_timezone Setting the timezone Note: Only for NON uclibc installs!!! glibc based installs use different timezone setup.
apk add tzdata ls /usr/share/zoneinfo Suppose you want to use Brussels First copy the proper zone to localtime
cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime Now specify your timezone
echo "Europe/Brussels" > /etc/timezone date Result: Wed Mar 8 00:46:05 CET 2006
You can now remove the other timezones
apk del tzdata
##########
// TODO possibly this need to be automated with ansible for local build: Build app image
//TODO Add variables to ansible build docker script //TODO add jenkins image and configure to this repository.
docker build --rm --label airtraffic_with_FileBeat_TimeZone -t 'airtraffic_app:latest' .
Build mysql image docker build --rm --label airtraffic_mysql -t 'airtraffic_mysql:latest' . TODO Add creating the schema in MYSQL
Build ELK image docker build --rm --label airtraffic_elk -t 'airtraffic_elk:latest' . TODO Add copying the configuration file of logstash to ELK
Build sonarQube image docker build --rm --label airtraffic_sonar -t 'airtraffic_sonar:latest' .
To configure ELK logstash pattern use: http://grokdebug.herokuapp.com For example: 2017-01-07 13:15:07.732 INFO 29830 --- [pool-2-thread-1] u.i.s.Dump1090SheduledPollingService : QueryDump1090 200 2 %{TIMESTAMP_ISO8601:logtime}%{SPACE}%{LOGLEVEL:loglevel} %{SPACE}%{DATA:pid}---\s+[%{DATA:thread}]\s+%{DATA:class}\s+:\s+%{WORD:rest} %{SPACE}%{NUMBER:response} %{SPACE}%{NUMBER:flightsCount}