-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stefan Walther
committed
Dec 7, 2017
1 parent
71ea6a0
commit 962cd7d
Showing
17 changed files
with
257 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
|
||
# node.js | ||
node_modules | ||
.data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
help: ## Show this help. | ||
@echo '' | ||
@echo 'Available commands:' | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
@echo '' | ||
.PHONY: help | ||
|
||
gen-readme: ## Generate README.md (using docker-verb) | ||
docker run --rm -v ${PWD}:/opt/verb stefanwalther/verb | ||
.PHONY: gen-readme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
## Default Logstash configuration from logstash-docker. | ||
## from https://github.com/elastic/logstash-docker/blob/master/build/logstash/config/logstash.yml | ||
# | ||
http.host: "0.0.0.0" | ||
|
||
## Disable X-Pack | ||
## see https://www.elastic.co/guide/en/x-pack/current/xpack-settings.html | ||
## https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-enabling | ||
# | ||
xpack.monitoring.enabled: false | ||
|
||
# config.debug: true | ||
log.level: "info" | ||
# path.config: "/usr/share/logstash/pipeline" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
input { | ||
# gelf { | ||
# port => 12201 | ||
# } | ||
tcp { | ||
port => 10514 | ||
codec => json | ||
} | ||
# tcp { | ||
# port => 5000 | ||
# codec => json | ||
# } | ||
# udp { | ||
# port => 5000 | ||
# codec => json | ||
# } | ||
} | ||
|
||
filter { | ||
|
||
json { | ||
source => "message" | ||
} | ||
|
||
mutate { | ||
add_field => { | ||
"token" => "${LOGZ_ACCOUNT_TOKEN}" | ||
} | ||
} | ||
|
||
} | ||
|
||
output { | ||
stdout { | ||
codec => rubydebug | ||
} | ||
tcp { | ||
host => "listener.logz.io" | ||
port => 5050 | ||
codec => json_lines | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
version: '3.3' | ||
|
||
services: | ||
hello-world: | ||
docker-test: | ||
container_name: docker-test | ||
build: . | ||
command: ["npm", "run", "start:watch"] | ||
volumes: | ||
- ./src:/app/src | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '3.3' | ||
|
||
services: | ||
docker-test: | ||
build: . | ||
command: ["npm", "run", "start:watch"] | ||
volumes: | ||
- ./src:/app/src | ||
environment: | ||
- DOCKER_LABELS=true | ||
labels: | ||
- io.sammler.env=DEV | ||
- io.sammler.service=docker-test | ||
|
||
logstash: | ||
image: docker.elastic.co/logstash/logstash:5.2.2 | ||
ports: | ||
- "10514:10514" | ||
- "5000:5000" | ||
- "5000:5000/udp" | ||
- "12201" # gelf | ||
- "12201:12201/udp" # gelf udp port | ||
# expose: | ||
# - "12201" | ||
environment: | ||
- LOGSPOUT=ignore | ||
- DROP_NON_JSON=false | ||
- STDOUT=true | ||
- LS_JAVA_OPTS=-Xmx256m -Xms256m | ||
- LOGZ_ACCOUNT_TOKEN=${S5R_LOGZ_ACCOUNT_TOKEN} | ||
volumes: | ||
- ./.data/logstash/logs:/usr/share/logstash/logs | ||
- ./configs/logstash/pipeline/logstash.conf:/usr/share/logstash/pipeline/logstash.conf | ||
- ./configs/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Todos | ||
|
||
- [ ] Use read-pkg-up - makes more sense | ||
- [ ] Enable codecov | ||
- [ ] Enable codeclimate | ||
- [ ] Enable necessary badges | ||
- [ ] Use multistage builds to truly separate images | ||
- [ ] Use nodemon to watch changes locally | ||
- [ ] Optimize precommit (husky) to not run it if there were no changes in either .verb.md or in ./docs | ||
- [ ] Provide missing tests |
Oops, something went wrong.