@flowfuse/driver-docker 2.8.0 → 2.10.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,10 @@
1
+ #### 2.10.0: Release
2
+
3
+
4
+ #### 2.9.0: Release
5
+
6
+ - both storage options required (enabled & path) (#111) @hardillb
7
+
1
8
  #### 2.8.0: Release
2
9
 
3
10
  - First pass files api for docker (#108) @hardillb
package/docker.js CHANGED
@@ -102,7 +102,7 @@ const createContainer = async (project, domain) => {
102
102
  contOptions.Env.push('NODE_EXTRA_CA_CERTS=/usr/local/ssl-certs/chain.pem')
103
103
  }
104
104
 
105
- if (this._app.config.driver.options?.storage?.enabled || this._app.config.driver.options?.storage?.path) {
105
+ if (this._app.config.driver.options?.storage?.enabled && this._app.config.driver.options?.storage?.path) {
106
106
  try {
107
107
  const localPath = path.join('/opt/persistent-storage', project.id)
108
108
  console.log(`Creating dir in container ${localPath}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/driver-docker",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "Docker driver for FlowFuse",
5
5
  "main": "docker.js",
6
6
  "scripts": {