cloudron 7.0.4 → 7.0.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/actions.js +16 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudron",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "license": "MIT",
5
5
  "description": "Cloudron Commandline Tool",
6
6
  "type": "module",
package/src/actions.js CHANGED
@@ -542,6 +542,7 @@ async function install(localOptions, cmd) {
542
542
 
543
543
  manifest = response.body.manifest;
544
544
  versionsUrl = response.body.versionsUrl;
545
+ console.log(`Using image ${manifest.dockerImage} (from versions url)`);
545
546
  } else {
546
547
  const result = await getManifest(options.appstoreId || '');
547
548
  manifest = result.manifest;
@@ -563,14 +564,19 @@ async function install(localOptions, cmd) {
563
564
  }
564
565
  });
565
566
 
566
- sourceArchiveFilePath = path.join(os.tmpdir(), `cloudron-source-${Date.now()}.tar`);
567
+ sourceArchiveFilePath = path.join(os.tmpdir(), `cloudron-source-${Date.now()}.tar.gz`);
567
568
  const sourceArchiveStream = fs.createWriteStream(sourceArchiveFilePath);
568
569
 
569
- const [tarError] = await safe(stream.pipeline(tarStream, sourceArchiveStream));
570
+ const [tarError] = await safe(stream.pipeline(tarStream, zlib.createGzip(), sourceArchiveStream));
570
571
  if (tarError) return exit(`Could not create source archive: ${tarError.message}`);
571
572
  } else {
572
573
  manifest.dockerImage = image;
574
+ const buildServiceConfig = config.getBuildServiceConfig();
575
+ const buildInfo = buildServiceConfig.type === 'remote' ? `remote - ${buildServiceConfig.url}` : 'local';
576
+ console.log(`Using image ${image} (built ${buildInfo})`);
573
577
  }
578
+ } else {
579
+ console.log(`Using image ${manifest.dockerImage} (from app store)`);
574
580
  }
575
581
  }
576
582
 
@@ -840,7 +846,7 @@ async function update(localOptions, cmd) {
840
846
  const image = options.image || config.getCwdConfig(sourceDir).dockerImage;
841
847
 
842
848
  if (!image) {
843
- console.log('No docker image detected. Creating source archive from this folder.');
849
+ console.log('No build detected. This package will be built on the server.');
844
850
 
845
851
  const dockerignoreFilePath = path.join(sourceDir, '.dockerignore');
846
852
  const ignoreMatcher = dockerignoreMatcher(dockerignoreFilePath);
@@ -851,13 +857,16 @@ async function update(localOptions, cmd) {
851
857
  }
852
858
  });
853
859
 
854
- sourceArchiveFilePath = path.join(os.tmpdir(), `cloudron-source-${Date.now()}.tar`);
860
+ sourceArchiveFilePath = path.join(os.tmpdir(), `cloudron-source-${Date.now()}.tar.gz`);
855
861
  const sourceArchiveStream = fs.createWriteStream(sourceArchiveFilePath);
856
862
 
857
- const [tarError] = await safe(stream.pipeline(tarStream, sourceArchiveStream));
863
+ const [tarError] = await safe(stream.pipeline(tarStream, zlib.createGzip(), sourceArchiveStream));
858
864
  if (tarError) return exit(`Could not create source archive: ${tarError.message}`);
859
865
  } else {
860
866
  manifest.dockerImage = image;
867
+ const buildServiceConfig = config.getBuildServiceConfig();
868
+ const buildInfo = buildServiceConfig.type === 'remote' ? `remote - ${buildServiceConfig.url}` : 'local';
869
+ console.log(`Using image ${image} (built ${buildInfo})`);
861
870
  }
862
871
 
863
872
  if (manifest.icon) {
@@ -866,6 +875,8 @@ async function update(localOptions, cmd) {
866
875
  data.icon = safe.fs.readFileSync(iconFilename, { encoding: 'base64' });
867
876
  if (!data.icon) return exit(`Could not read icon: ${iconFilename} message: ${safe.error.message}`);
868
877
  }
878
+ } else {
879
+ console.log(`Using image ${manifest.dockerImage} (from app store)`);
869
880
  }
870
881
 
871
882
  data = Object.assign(data, {