Skip to content

Commit

Permalink
Merge pull request #293 from skadefro/master
Browse files Browse the repository at this point in the history
Release 1.5.10
  • Loading branch information
skadefro authored Jan 2, 2025
2 parents e384be2 + 36552f1 commit 79ac098
Show file tree
Hide file tree
Showing 204 changed files with 17,968 additions and 51,427 deletions.
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ temp
letsencrypt
.cache
.npmrc
.openflowapicache
.scannerwork
docker-package.json
.env
Expand All @@ -14,4 +13,5 @@ sonar-scanner.properties
sonar-project.properties
crash.log
.devcontainer.old
.clinic
.clinic
docker-compose.yml
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ temp
letsencrypt
.cache
.npmrc
.openflowapicache
.scannerwork
docker-package.json
.env
Expand All @@ -17,4 +16,8 @@ crash.log
package-lock.json
*.heapsnapshot
/proto
.clinic
.clinic
docker-compose.yml
.aider*
/public
/public2
6 changes: 3 additions & 3 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"require": "./register.js",
"reporter": "dot"
}
"$schema": "https://json.schemastore.org/mocharc.json",
"require": ["./register.js","tsx"]
}
12 changes: 4 additions & 8 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,20 @@
.vscode
.npmrc
.cache
.openflowapicache
src
config
docs
node_modules
logs
package-lock.json
tsconfig.json
OpenFlow
OpenFlowNodeRED
temp
letsencrypt
webpack.config.js
gulpfile.js
OpenFlow.code-workspace
CONTRIBUTING
Dockerfile
docker-compose.yml
docker-compose-toolbox.yml
docker-compose-traefik.yml
docker-compose-traefik-letsencrypt.yml
sonar-project.properties
.nyc_output
.scannerwor
Expand All @@ -36,4 +30,6 @@ register.js
docker-package.json
.dockerignore
*.heapsnapshot
.clinic
.clinic
/public
/public2
2 changes: 1 addition & 1 deletion .nyrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"include": [
"OpenFlow/src/**/*.ts"
"src/**/*.ts"
],
"exclude": [
"node_modules/"
Expand Down
13 changes: 7 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"args": [],
"cwd": "${workspaceRoot}",
"envFile": "${workspaceFolder}/config/.env",
"name": "OpenFlow",
"name": "Core",
"outFiles": [
"${workspaceRoot}/dist/**/*",
"**/node_modules/@openiap/**/*",
],
"outputCapture": "std",
"program": "${workspaceRoot}/OpenFlow/src/index.ts",
"program": "${workspaceRoot}/src/index.ts",
"request": "launch",
"preLaunchTask": "tsc: watch - OpenFlow/tsconfig.json",
"preLaunchTask": "tsc: watch - tsconfig.json",
"runtimeArgs": [
"--inspect"
],
Expand All @@ -22,7 +22,8 @@
"stopOnEntry": false,
"type": "node",
"env": {
"otel_log_level": "info"
"otel_log_level": "info",
"GIT_DEBUG": "1"
},
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
Expand All @@ -34,11 +35,11 @@
"type": "node",
"request": "attach",
"name": "Attach to localhost",
"preLaunchTask": "tsc: watch - OpenFlow/tsconfig.json",
"preLaunchTask": "tsc: watch - tsconfig.json",
"address": "localhost",
"port": 5858,
"localRoot": "${workspaceFolder}/dist",
"remoteRoot": "/data"
"remoteRoot": "/app/dist"
}
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"options": [
"--proto_path=messages"
]
}
},
"compile-hero.disable-compile-files-on-did-save-code": true
}
74 changes: 0 additions & 74 deletions CODE_OF_CONDUCT.md

This file was deleted.

35 changes: 0 additions & 35 deletions CONTRIBUTING

This file was deleted.

43 changes: 22 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
FROM node:lts-alpine as builder
# --omit=optional
RUN npm install gulp typescript browserify tsify -g
# FROM node:lts-alpine
# FROM node:22.9.0-alpine3.20 AS base
# FROM node:lts-alpine3.16
FROM node:22.9-slim
# alpine
# RUN apk add --no-cache bash nano
# debian
RUN apt-get update && apt-get install -y nano git curl && rm -rf /var/lib/apt/lists/*

RUN mkdir /app
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY package.json /app/
# https://github.com/nodejs/docker-node/issues/1946#issuecomment-2459881919
# ENV NPM_VERSION=10.3.0
# RUN npm install -g npm@"${NPM_VERSION}" --omit=dev --production --no-audit --verbose --force

RUN npm install --omit=dev --production --no-audit --verbose --force
COPY . /app/
RUN gulp sass
RUN npm run build
COPY public /app/dist/public
COPY public.template /app/dist/public.template

RUN gulp
RUN tsc --build OpenFlow/tsconfig.json
WORKDIR /app/dist

FROM node:lts-alpine
ENV NODE_ENV=production
RUN apk add --no-cache bash nano
ENV HOME=.
EXPOSE 3000
EXPOSE 5858
WORKDIR /data
COPY --from=builder /app/package*.json .
COPY --from=builder /app/dist/ .
# RUN npm install --omit=dev
# RUN npm install mongodb
ENV HOME=.
RUN npm install --omit=dev --production

# ENTRYPOINT ["/usr/local/bin/node", "index.js"]
ENTRYPOINT ["/usr/local/bin/node", "--inspect=0.0.0.0:5858", "index.js"]

# docker buildx build --platform linux/amd64 -t openiap/openflow:edge . --push
# docker buildx build --platform linux/amd64 -t openiap/openflow:dev . --push
# docker buildx build --platform linux/amd64 -t openiap/openflow:dev . --push

# docker run -it --rm openiap/openflow:edge /bin/bash
5 changes: 0 additions & 5 deletions OpenFlow/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion OpenFlow/.npmignore

This file was deleted.

20 changes: 0 additions & 20 deletions OpenFlow/src/Auth.ts

This file was deleted.

Loading

0 comments on commit 79ac098

Please sign in to comment.