-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from mountaindude/master
3.1.0 RC
- Loading branch information
Showing
36 changed files
with
1,123 additions
and
858 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: "2" # required to adjust maintainability checks | ||
checks: | ||
argument-count: | ||
config: | ||
threshold: 4 | ||
complex-logic: | ||
config: | ||
threshold: 4 | ||
file-lines: | ||
config: | ||
threshold: 250 | ||
method-complexity: | ||
config: | ||
threshold: 5 | ||
method-count: | ||
config: | ||
threshold: 20 | ||
method-lines: | ||
config: | ||
threshold: 25 | ||
nested-control-flow: | ||
config: | ||
threshold: 4 | ||
return-statements: | ||
config: | ||
threshold: 4 | ||
similar-code: | ||
config: | ||
threshold: # language-specific defaults. an override will affect all languages. | ||
identical-code: | ||
config: | ||
threshold: # language-specific defaults. an override will affect all languages. | ||
|
||
plugins: | ||
eslint: | ||
enabled: true | ||
# channel: "eslint-6" | ||
# csslint: | ||
# enabled: true | ||
markdownlint: | ||
enabled: true | ||
|
||
exclude_patterns: | ||
# - "config/" | ||
- "db/" | ||
- "dist/" | ||
- "features/" | ||
- "**/node_modules/" | ||
- "script/" | ||
- "**/spec/" | ||
- "**/test/" | ||
- "**/tests/" | ||
- "Tests/" | ||
- "**/vendor/" |
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ butler-docs/site/ | |
src/udp_client/node_modules/* | ||
npm-debug.log | ||
.DS_Store | ||
**/log |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
parserOptions: | ||
ecmaVersion: 6 | ||
ecmaVersion: 2020 | ||
env: | ||
node: true | ||
extends: 'eslint:recommended' | ||
|
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,3 +1,5 @@ | ||
# Build Docker image for Amd64 | ||
|
||
FROM node:12-stretch | ||
|
||
# Add metadata about the image | ||
|
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,29 @@ | ||
# Build Docker image for Arm64 | ||
|
||
FROM node:12-stretch | ||
|
||
# Add metadata about the image | ||
LABEL maintainer="Göran Sander [email protected]" | ||
LABEL description="Extensible micro service adding features that Qlik Sense do not offer out of the box." | ||
|
||
# Create app dir inside container | ||
WORKDIR /nodeapp | ||
|
||
# Install app dependencies separately (creating a separate layer for node_modules, effectively caching them between image rebuilds) | ||
COPY package.json . | ||
RUN npm install | ||
|
||
# Copy app's source files | ||
COPY . . | ||
|
||
# Create and use non-root user | ||
RUN groupadd -r nodejs \ | ||
&& useradd -m -r -g nodejs nodejs | ||
|
||
USER nodejs | ||
|
||
# Set up Docker healthcheck | ||
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD ["node", "docker-healthcheck.js"] | ||
|
||
CMD ["node", "butler.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Build Docker image for Arm64 | ||
|
||
FROM node:12-stretch | ||
|
||
# Add metadata about the image | ||
LABEL maintainer="Göran Sander [email protected]" | ||
LABEL description="Extensible micro service adding features that Qlik Sense do not offer out of the box." | ||
|
||
# Create app dir inside container | ||
WORKDIR /nodeapp | ||
|
||
# Install app dependencies separately (creating a separate layer for node_modules, effectively caching them between image rebuilds) | ||
COPY package.json . | ||
RUN npm install | ||
|
||
# Copy app's source files | ||
COPY . . | ||
|
||
# Create and use non-root user | ||
RUN groupadd -r nodejs \ | ||
&& useradd -m -r -g nodejs nodejs | ||
|
||
USER nodejs | ||
|
||
# Set up Docker healthcheck | ||
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD ["node", "docker-healthcheck.js"] | ||
|
||
CMD ["node", "butler.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: butler-claim0 | ||
name: butler-claim0 | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi | ||
status: {} |
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,58 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert | ||
kompose.controller.type: deployment | ||
kompose.service.export: "true" | ||
kompose.service.type: nodeport | ||
kompose.version: 1.21.0 () | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: butler | ||
name: butler | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: butler | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert | ||
kompose.controller.type: deployment | ||
kompose.service.export: "true" | ||
kompose.service.type: nodeport | ||
kompose.version: 1.21.0 () | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: butler | ||
spec: | ||
containers: | ||
- env: | ||
- name: NODE_ENV | ||
value: production | ||
image: ptarmiganlabs/butler:3.1.0 | ||
imagePullPolicy: "" | ||
name: butler | ||
ports: | ||
- containerPort: 8080 | ||
- containerPort: 9997 | ||
- containerPort: 9998 | ||
resources: {} | ||
volumeMounts: | ||
- mountPath: /nodeapp/config | ||
# name: butler-claim0 | ||
name: butler-config-volume | ||
restartPolicy: Always | ||
serviceAccountName: "" | ||
volumes: | ||
# - name: butler-claim0 | ||
# persistentVolumeClaim: | ||
# claimName: butler-claim0 | ||
- name: butler-config-volume | ||
configMap: | ||
name: production.yaml | ||
status: {} |
Oops, something went wrong.