@flowfuse/driver-docker 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 2.3.0: Release
2
+
3
+ - Only pull stack container if missing (#89) @hardillb
4
+
1
5
  #### 2.2.1: Release
2
6
 
3
7
  - Fix loading private CA certs in Instances (#87) @hardillb
package/docker.js CHANGED
@@ -98,8 +98,13 @@ const createContainer = async (project, domain) => {
98
98
 
99
99
  const containerList = await this._docker.listImages()
100
100
  let containerFound = false
101
+ let stackName = stack.container
102
+ // add ":latest" to stack containers with no tag
103
+ if (stackName.indexOf(':') === -1) {
104
+ stackName = stackName + ':latest'
105
+ }
101
106
  for (const cont of containerList) {
102
- if (cont.RepoTags.includes(stack.container)) {
107
+ if (cont.RepoTags.includes(stackName)) {
103
108
  containerFound = true
104
109
  break
105
110
  }
@@ -474,7 +479,7 @@ module.exports = {
474
479
  const properties = {
475
480
  cpu: 10,
476
481
  memory: 256,
477
- container: 'flowfuse/node-red',
482
+ container: 'flowfuse/node-red:latest',
478
483
  ...this._app.config.driver.options?.default_stack
479
484
  }
480
485
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/driver-docker",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Docker driver for FlowFuse",
5
5
  "main": "docker.js",
6
6
  "scripts": {