Skip to content

Commit 414388e

Browse files
tomhollingworthTom Hollingworth
andauthored
v2.0.5 (#44)
This minor patch updates the node version and libraries to latest to resolve any security fixes. Various code smells have also been fixed. The owning company has also changed. - Bump Revision - Change base docker image from node:12-alpine to node:20-alpine - Change classes with single constructor to a function for maintainability - Change multiple inline if statements to one per line for readabilty - Change `var` to `const` or `let` where applicable - Refactor setInterval to reduce cognitive complexity - Update docker metadata - Update mqtt from 4.3.8 to 5.10.1 - Update winston from 3.13.0 to 3.15.0 - Update standard from 14.3.4 to 17.1.2 - Update sonarqube-scanner 2.9.1 to 4.2.3 - Update README Co-authored-by: Tom Hollingworth <[email protected]>
1 parent 5e66ab1 commit 414388e

20 files changed

+3311
-2293
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
- name: Publish to Registry
1717
uses: elgohr/Publish-Docker-Github-Action@v5
1818
with:
19-
name: spruiktec/packml-simulator
19+
name: libremfg/packml-simulator
2020
username: ${{ secrets.DOCKER_USERNAME }}
2121
password: ${{ secrets.DOCKER_PASSWORD }}

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM node:12-alpine
1+
FROM node:20-alpine
22

33
# Labels
4-
LABEL maintainer="tom.hollingworth@spruiktec.com"
5-
LABEL org.opencontainers.image.authors="tom.hollingworth@spruiktec.com"
6-
LABEL org.opencontainers.image.source="https://github.com/Spruik/PackML-MQTT-Simulator"
7-
LABEL org.opencontainers.image.url="https://spruiktec.com/"
8-
LABEL org.opencontainers.image.vendor="Spruik Technologies LLC"
9-
LABEL org.opencontainers.image.version="2.0.4"
4+
LABEL maintainer="tom@rhize.com"
5+
LABEL org.opencontainers.image.authors="tom@rhize.com"
6+
LABEL org.opencontainers.image.source="https://github.com/libremfg/PackML-MQTT-Simulator"
7+
LABEL org.opencontainers.image.url="https://www.libremfg.com/"
8+
LABEL org.opencontainers.image.vendor="Libre Technologies Inc"
9+
LABEL org.opencontainers.image.version="2.0.5"
1010

1111
WORKDIR /machine
1212

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Spruik Technologies
3+
Copyright (c) 2024 Libre Technologies Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Tom Hollingworth <tom.hollingworth@spruiktec.com>
1+
Tom Hollingworth <tom@rhize.com>

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Start your container with environmental variables.
2222
#### Basic MQTT Structure
2323

2424
```shell
25-
$ docker run -it -e SITE=Site -e AREA=Area -e LINE=Line -e MQTT_URL=mqtt://broker.hivemq.com -m 30m spruiktec/packml-simulator
25+
$ docker run -it -e SITE=Site -e AREA=Area -e LINE=Line -e MQTT_URL=mqtt://broker.hivemq.com -m 30m libremfg/packml-simulator
2626
2020-06-22T03:13:49.301Z | info: Initializing
2727
2020-06-22T03:13:49.817Z | info: Connected to mqtt://broker.hivemq.com:1883
2828
2020-06-22T03:13:49.819Z | info: Site/Area/Line/Status/UnitModeCurrent : Production
@@ -33,7 +33,7 @@ Once up and running, use an MQTT client to publish to .../Command/Reset and .../
3333
#### SparkPlugB
3434

3535
```shell
36-
$ docker run -it -e CLIENT_TYPE=sparkplugb -e SITE=Site -e AREA=Area -e LINE=Line -e MQTT_URL=mqtt://broker.hivemq.com -m 30m spruiktec/packml-simulator
36+
$ docker run -it -e CLIENT_TYPE=sparkplugb -e SITE=Site -e AREA=Area -e LINE=Line -e MQTT_URL=mqtt://broker.hivemq.com -m 30m libremfg/packml-simulator
3737
2020-06-22T03:13:49.301Z | info: Initializing
3838
2020-06-22T03:13:49.817Z | info: Connected to mqtt://broker.hivemq.com:1883
3939
2020-06-22T03:13:49.819Z | info: Site/Area/Line/Status/UnitModeCurrent : Production
@@ -263,23 +263,23 @@ version: "2.4"
263263

264264
services:
265265
greenville-packaging-line1:
266-
image: spruiktec/packml-simulator
266+
image: libremfg/packml-simulator
267267
environment:
268268
SITE: Greenville
269269
AREA: Packaging
270270
LINE: 'Line 1'
271271
mem_limit: 30MB
272272

273273
greenville-packaging-line2:
274-
image: spruiktec/packml-simulator
274+
image: libremfg/packml-simulator
275275
environment:
276276
SITE: Greenville
277277
AREA: Packaging
278278
LINE: 'Line 2'
279279
mem_limit: 30MB
280280

281281
greenville-cnc-line1:
282-
image: spruiktec/packml-simulator
282+
image: libremfg/packml-simulator
283283
environment:
284284
SITE: Greenville
285285
AREA: CNC
@@ -293,12 +293,26 @@ services:
293293

294294
For any issue, there are fundamentally three ways an individual can contribute:
295295

296-
- By opening the issue for discussion: For instance, if you believe that you have uncovered a bug in, creating a new issue in the [GitHub issue tracker](https://github.com/Spruik/PackML-MQTT-Simulator/issues) is the way to report it.
296+
- By opening the issue for discussion: For instance, if you believe that you have uncovered a bug in, creating a new issue in the [GitHub issue tracker](https://github.com/libremfg/PackML-MQTT-Simulator/issues) is the way to report it.
297297
- By helping to triage the issue: This can be done either by providing supporting details (a test case that demonstrates a bug), or providing suggestions on how to address the issue.
298298
- By helping to resolve the issue: Typically, this is done either in the form of demonstrating that the issue reported is not a problem after all, or more often, by opening a Pull Request that changes some bit of something in the simulator in a concrete and reviewable manner.
299299

300300
## Changelog
301301

302+
- 2.0.5
303+
- Bump Revision
304+
- Change base docker image from node:12-alpine to node:20-alpine
305+
- Change classes with single constructor to a function for maintainability
306+
- Change multiple inline if statements to one per line for readabilty
307+
- Change `var` to `const` or `let` where applicable
308+
- Refactor setInterval to reduce cognitive complexity
309+
- Update docker metadata
310+
- Update mqtt from 4.3.8 to 5.10.1
311+
- Update winston from 3.13.0 to 3.15.0
312+
- Update standard from 14.3.4 to 17.1.2
313+
- Update sonarqube-scanner 2.9.1 to 4.2.3
314+
- Update README
315+
302316
- 2.0.4
303317
- Update README
304318
- Update mqtt from 4.2.8 to 4.3.8

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ These versions are currently being supported with security updates.
1111

1212
## Reporting a Vulnerability
1313

14-
Minor vulnerabilities can be reported as [issues](https://github.com/Spruik/PackML-MQTT-Simulator/issues). For major or servere vulnerabilities either contact [tomhollingworth](mailto:tom.hollingworth@spuiktec.com) directly, or raise an [issue](https://github.com/Spruik/PackML-MQTT-Simulator/issues). Turn around time for accepted security fixes are up to 2 weeks, with most completed within 3 days of reporting.
14+
Minor vulnerabilities can be reported as [issues](https://github.com/libremfg/PackML-MQTT-Simulator/issues). For major or servere vulnerabilities either contact [tomhollingworth](mailto:tom@rhize.com) directly, or raise an [issue](https://github.com/libremfg/PackML-MQTT-Simulator/issues). Turn around time for accepted security fixes are up to 2 weeks, with most completed within 3 days of reporting.

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: packml-sim
33
description: PackML Machine Simulator
44
type: application
55
version: 0.0.2
6-
appVersion: 2.0.4
6+
appVersion: 2.0.5

chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
replicaCount: 3
22
image:
3-
repository: spruiktec/packml-simulator
3+
repository: libremfg/packml-simulator
44
pullPolicy: IfNotPresent
55

66
config:

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "2.4"
22

33
services:
44
bathurst-packaging-line1:
5-
image: spruiktec/packml-simulator
5+
image: libremfg/packml-simulator
66
environment:
77
SITE: Bathurst
88
AREA: Packaging
@@ -13,7 +13,7 @@ services:
1313
mem_limit: 30MB
1414

1515
bathurst-packaging-line2:
16-
image: spruiktec/packml-simulator
16+
image: libremfg/packml-simulator
1717
environment:
1818
SITE: Bathurst
1919
AREA: Packaging
@@ -24,7 +24,7 @@ services:
2424
mem_limit: 30MB
2525

2626
greenville-cnc-line1:
27-
image: spruiktec/packml-simulator
27+
image: libremfg/packml-simulator
2828
environment:
2929
SITE: Greenville
3030
AREA: CNC

0 commit comments

Comments
 (0)