poad 2.5.9 → 2.5.10

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/global/init.js CHANGED
@@ -24,6 +24,7 @@ module.exports = async (args) => {
24
24
  config.project_uuid = generateUniqueId();
25
25
  await fs.mkdir(path.join(process.cwd(), 'poad', 'data'), { recursive: true });
26
26
  const ports = await findFreePorts(4);
27
+ config.engine = global.package.engine;
27
28
  config.db = {
28
29
  port: ports[0],
29
30
  };
package/global/install.js CHANGED
@@ -4,7 +4,7 @@ module.exports = async (args) => {
4
4
  const cliProgress = require('cli-progress');
5
5
 
6
6
  const docker = new Docker();
7
- const imageName = 'poadio/engine:0.5.2';
7
+ const imageName = 'poadio/engine:' + global.package.engine;
8
8
  const platform = 'linux/amd64';
9
9
 
10
10
  // Create a new progress bar
package/global/start.js CHANGED
@@ -20,7 +20,7 @@ module.exports = async (args) => {
20
20
  docker
21
21
  .createContainer({
22
22
  name: containerName,
23
- Image: 'poadio/engine:0.5.2',
23
+ Image: 'poadio/engine:' + config.engine,
24
24
  Tty: false,
25
25
  Env: [
26
26
  'OMNEEDIA_GATEWAY_URL=http://localhost:' + config.web.port,
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "poad",
3
- "version": "2.5.9",
3
+ "version": "2.5.10",
4
+ "engine": "0.5.3",
4
5
  "main": "index.js",
5
6
  "license": "MIT",
6
7
  "bin": {
@@ -0,0 +1,20 @@
1
+ project_id = "cli"
2
+ project_uuid = "yb3ds1bcwfaifz5s6j4g"
3
+ engine = "0.5.3"
4
+ [db]
5
+ port = 3356
6
+ [web]
7
+ port = 58170
8
+ [s3]
9
+ port = 52426
10
+ access_key = "0f94767ec7272a5f10cc6b9d0154b89d7f62e544283d01b2b9ae516f45fe41b0"
11
+ secret_key = "4102914c2de34646b6502c447a68f66ed5189c17bc8836e63d0f158e0943bf8f"
12
+ region = "local"
13
+ [inbucket]
14
+ port = 24038
15
+ [auth]
16
+ jwt_expiry = 3600
17
+ secret = "8c54c57efafd419788d56fbd54fd2f4d13bcdc0d50d7d9110b6aaf9a01758c2d"
18
+ anon = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InBvYWQiLCJpYXQiOjE3MjkzNjE5NDh9.OIv7JSYowOQimi4fSFZ3CZDzTUA1Eh6yuZNQSz-DQDI"
19
+ service = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZSIsImlzcyI6InBvYWQiLCJpYXQiOjE3MjkzNjE5NDh9.6xTSE2ZBQaaIIugAQkHE0ZMgmCiBCOa5P0aa6IT0hrg"
20
+ admin = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYWRtaW4iLCJpc3MiOiJwb2FkIiwiaWF0IjoxNzI5MzYxOTQ4fQ.jHDr_3Cwyz_HtJhyzc2UbGLjBRtEHpZ4MuOelwOCFzE"
package/poad.js CHANGED
@@ -16,7 +16,7 @@ const { findPoadDir } = require('./utils/findpoad');
16
16
 
17
17
  const packageJsonPath = path.join(__dirname, 'package.json');
18
18
 
19
- const package = require(packageJsonPath);
19
+ global.package = require(packageJsonPath);
20
20
  let args = process.argv.slice(2);
21
21
 
22
22
  // Function to check internet connection