poad 2.6.1 → 2.7.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/global/init.js +1 -1
- package/global/install.js +3 -2
- package/global/start.js +3 -1
- package/package.json +2 -2
package/global/init.js
CHANGED
package/global/install.js
CHANGED
|
@@ -5,7 +5,6 @@ module.exports = async (args) => {
|
|
|
5
5
|
|
|
6
6
|
const docker = new Docker();
|
|
7
7
|
const imageName = 'poadio/engine:' + global.package.engine;
|
|
8
|
-
const platform = 'linux/amd64';
|
|
9
8
|
|
|
10
9
|
// Create a new progress bar
|
|
11
10
|
const progressBar = new cliProgress.SingleBar(
|
|
@@ -15,7 +14,9 @@ module.exports = async (args) => {
|
|
|
15
14
|
|
|
16
15
|
console.log(chalk.bold('\nInstalling poad environment...'));
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
// Sans plateforme imposée, Docker tire la variante de la machine (amd64 ou
|
|
18
|
+
// arm64) : sur un Mac Apple Silicon, l'engine tourne sans émulation.
|
|
19
|
+
docker.pull(imageName, (err, stream) => {
|
|
19
20
|
if (err) {
|
|
20
21
|
console.error('Error pulling image:', err);
|
|
21
22
|
return;
|
package/global/start.js
CHANGED
|
@@ -26,6 +26,9 @@ module.exports = async (args) => {
|
|
|
26
26
|
Tty: false,
|
|
27
27
|
Env: [
|
|
28
28
|
'OMNEEDIA_GATEWAY_URL=http://localhost:' + config.web.port,
|
|
29
|
+
// Projet local : le service auth accepte les redirections vers
|
|
30
|
+
// http://localhost:* (désactivé par défaut, hors du CLI)
|
|
31
|
+
'OMNEEDIA_AUTH_ALLOW_LOCALHOST_REDIRECTS=true',
|
|
29
32
|
'DATA_VOLUME_MOUNTPOINT=/data',
|
|
30
33
|
'POSTGRES_PASSWORD=postgres',
|
|
31
34
|
'ADMIN_API_KEY=' + config.auth.admin,
|
|
@@ -52,7 +55,6 @@ module.exports = async (args) => {
|
|
|
52
55
|
Binds: [path.dirname(root) + '/data:/data'],
|
|
53
56
|
AutoRemove: true,
|
|
54
57
|
},
|
|
55
|
-
Platform: 'linux/amd64',
|
|
56
58
|
})
|
|
57
59
|
.then((container) => {
|
|
58
60
|
return container.start();
|