-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
54 changed files
with
4,556 additions
and
2,046 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
extends: 'eslint-config-node-services' | ||
extends: 'eslint-config-wikimedia' | ||
|
||
parserOptions: | ||
ecmaVersion: 10 | ||
|
||
env: | ||
node: true | ||
|
||
rules: | ||
indent: | ||
- error | ||
- 4 | ||
- SwitchCase: 1 | ||
MemberExpression: off | ||
space-in-parens: [error, never] | ||
no-multi-spaces: off | ||
no-multiple-empty-lines: off | ||
one-var: off | ||
array-bracket-spacing: off | ||
computed-property-spacing: off | ||
no-unused-vars: [error, {args: none}] | ||
no-underscore-dangle: off | ||
comma-dangle: off | ||
camelcase: off | ||
key-spacing: off | ||
space-before-function-paren: off | ||
quote-props: off | ||
operator-linebreak: off | ||
max-statements-per-line: off | ||
brace-style: off |
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,13 @@ | ||
{ | ||
"exclude": [ | ||
"test/**", | ||
"lib/util.js", | ||
"lib/kafka.js", | ||
"lib/swagger-ui.js", | ||
"app.js" | ||
], | ||
"reporter": [ | ||
"text", | ||
"html" | ||
] | ||
} |
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,44 @@ | ||
# Blubber generates repeatable and consistent Dockerfiles | ||
# using multi stage docker images. | ||
# Each variant renders a different Dockerfile. | ||
# https://github.com/wikimedia/blubber | ||
version: v3 | ||
base: docker-registry.wikimedia.org/nodejs10-slim | ||
lives: | ||
in: /srv/service | ||
runs: | ||
environment: | ||
APP_BASE_PATH: /srv/service | ||
|
||
variants: | ||
# Base build image the other variants start from this. | ||
build: | ||
base: docker-registry.wikimedia.org/nodejs10-devel | ||
apt: { packages: [git, build-essential, python-dev, librdkafka-dev] } | ||
node: { requirements: [package.json] } | ||
runs: | ||
environment: | ||
BUILD_LIBRDKAFKA: 0 | ||
LINK: g++ | ||
# Runs npm test | ||
test: | ||
includes: [build] | ||
entrypoint: [npm, test] | ||
runs: { insecurely: true } | ||
# Same as production, but includes build artifacts and extra packages for debugging. | ||
development: | ||
includes: [build] | ||
apt: { packages: [librdkafka1, librdkafka++1, kafkacat, telnet, iputils-ping, procps, curl, vim] } | ||
runs: { insecurely: true } | ||
entrypoint: [node, server.js] | ||
# prep is used for copying from build to remove build artifacts | ||
# from the production image. | ||
prep: | ||
includes: [build] | ||
node: { env: production } | ||
production: | ||
copies: prep | ||
apt: { packages: [librdkafka1, librdkafka++1] } | ||
node: { env: production } | ||
runs: { environment: { UV_THREADPOOL_SIZE: 128 } } | ||
entrypoint: [node, server.js] |
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,7 @@ | ||
language: node_js | ||
|
||
sudo: false | ||
dist: xenial | ||
|
||
language: node_js | ||
node_js: | ||
- "6" | ||
- "8" | ||
- "node" | ||
- "10" | ||
|
||
after_success: npm run coveralls |
Oops, something went wrong.